{"action":"opened","number":444,"pull_request":{"url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/pulls/444","id":30993887,"html_url":"https://github.com/the-tcpdump-group/tcpdump/pull/444","diff_url":"https://github.com/the-tcpdump-group/tcpdump/pull/444.diff","patch_url":"https://github.com/the-tcpdump-group/tcpdump/pull/444.patch","issue_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/issues/444","number":444,"state":"open","locked":false,"title":"Add --limit-file-size.","user":{"login":"jaunix","id":11431624,"avatar_url":"https://avatars.githubusercontent.com/u/11431624?v=3","gravatar_id":"","url":"https://api.github.com/users/jaunix","html_url":"https://github.com/jaunix","followers_url":"https://api.github.com/users/jaunix/followers","following_url":"https://api.github.com/users/jaunix/following{/other_user}","gists_url":"https://api.github.com/users/jaunix/gists{/gist_id}","starred_url":"https://api.github.com/users/jaunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaunix/subscriptions","organizations_url":"https://api.github.com/users/jaunix/orgs","repos_url":"https://api.github.com/users/jaunix/repos","events_url":"https://api.github.com/users/jaunix/events{/privacy}","received_events_url":"https://api.github.com/users/jaunix/received_events","type":"User","site_admin":false},"body":"After reaching a specified output file size, do not write any further packets and then exit.\r\n\r\n    $ ./tcpdump -h\r\n    tcpdump version 4.8.0-PRE-GIT_2015_03_11\r\n    libpcap version 1.8.0-PRE-GIT_2015_03_07\r\n    OpenSSL 1.0.1e-fips 11 Feb 2013\r\n    Usage: tcpdump [-aAbdDefhHIJKlLnNOpqRStuUvxX#] [ -B size ] [ -c count ]\r\n                    [ -C file_size ] [ -E algo:secret ] [ -F file ] [ -G seconds ]\r\n                    [ -i interface ] [ -j tstamptype ] [ --limit-file-size max_size ]\r\n                    [ -M secret ] [ --number ]\r\n                    [ -Q in|out|inout ]\r\n                    [ -r file ] [ -s snaplen ] [ --time-stamp-precision precision ]\r\n                    [ --immediate-mode ] [ -T type ] [ --version ] [ -V file ]\r\n                    [ -w file ] [ -W filecount ] [ -y datalinktype ] [ -z command ]\r\n                    [ -Z user ] [ expression ]\r\n    $ ./tcpdump -r tests/mptcp.pcap -w /tmp/foo\r\n    reading from file tests/mptcp.pcap, link-type EN10MB (Ethernet)\r\n    $ ls -l /tmp/foo\r\n    -rw-rw-r--. 1 usera usera 39394 Mar 11 15:48 /tmp/foo\r\n    $ ./tcpdump -r tests/mptcp.pcap -w /tmp/foo --limit-file-size 10000\r\n    reading from file tests/mptcp.pcap, link-type EN10MB (Ethernet)\r\n    $ ls -l /tmp/foo\r\n    -rw-rw-r--. 1 usera usera 10244 Mar 11 15:49 /tmp/foo\r\n    $ ./tcpdump -r tests/mptcp.pcap -w /tmp/foo --limit-file-size 15k\r\n    reading from file tests/mptcp.pcap, link-type EN10MB (Ethernet)\r\n    $ ls -l /tmp/foo\r\n    -rw-rw-r--. 1 usera usera 15424 Mar 11 15:49 /tmp/foo\r\n    $ man -l tcpdump.1.in\r\n    snip\r\n           --limit-file-size=max_size\r\n                  Once the capture file exceeds max_size do not capture any further packets.  Default format is     bytes, but suffixes k, m, g and t can be used to denote kilobytes, megabytes, gigabytes and terabytes respectively.\r\n    snip\r\n           To capture all packets to a file named /tmp/cap and exit after capturing 5 gigabytes\r\n                  tcpdump --limit-file-size 5g -w /tmp/cap\r\n    $","created_at":"2015-03-11T22:59:09Z","updated_at":"2015-03-11T22:59:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e844cf5d2123a39b4914042cf76e5ec38cfa56ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/pulls/444/commits","review_comments_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/pulls/444/comments","review_comment_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/pulls/comments{/number}","comments_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/issues/444/comments","statuses_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/statuses/0d0ad3f08e072a0763ffc9309441ff37ff00a1f6","head":{"label":"jaunix:file-limit","ref":"file-limit","sha":"0d0ad3f08e072a0763ffc9309441ff37ff00a1f6","user":{"login":"jaunix","id":11431624,"avatar_url":"https://avatars.githubusercontent.com/u/11431624?v=3","gravatar_id":"","url":"https://api.github.com/users/jaunix","html_url":"https://github.com/jaunix","followers_url":"https://api.github.com/users/jaunix/followers","following_url":"https://api.github.com/users/jaunix/following{/other_user}","gists_url":"https://api.github.com/users/jaunix/gists{/gist_id}","starred_url":"https://api.github.com/users/jaunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaunix/subscriptions","organizations_url":"https://api.github.com/users/jaunix/orgs","repos_url":"https://api.github.com/users/jaunix/repos","events_url":"https://api.github.com/users/jaunix/events{/privacy}","received_events_url":"https://api.github.com/users/jaunix/received_events","type":"User","site_admin":false},"repo":{"id":32044585,"name":"tcpdump","full_name":"jaunix/tcpdump","owner":{"login":"jaunix","id":11431624,"avatar_url":"https://avatars.githubusercontent.com/u/11431624?v=3","gravatar_id":"","url":"https://api.github.com/users/jaunix","html_url":"https://github.com/jaunix","followers_url":"https://api.github.com/users/jaunix/followers","following_url":"https://api.github.com/users/jaunix/following{/other_user}","gists_url":"https://api.github.com/users/jaunix/gists{/gist_id}","starred_url":"https://api.github.com/users/jaunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaunix/subscriptions","organizations_url":"https://api.github.com/users/jaunix/orgs","repos_url":"https://api.github.com/users/jaunix/repos","events_url":"https://api.github.com/users/jaunix/events{/privacy}","received_events_url":"https://api.github.com/users/jaunix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jaunix/tcpdump","description":"the TCPdump network dissector","fork":true,"url":"https://api.github.com/repos/jaunix/tcpdump","forks_url":"https://api.github.com/repos/jaunix/tcpdump/forks","keys_url":"https://api.github.com/repos/jaunix/tcpdump/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jaunix/tcpdump/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jaunix/tcpdump/teams","hooks_url":"https://api.github.com/repos/jaunix/tcpdump/hooks","issue_events_url":"https://api.github.com/repos/jaunix/tcpdump/issues/events{/number}","events_url":"https://api.github.com/repos/jaunix/tcpdump/events","assignees_url":"https://api.github.com/repos/jaunix/tcpdump/assignees{/user}","branches_url":"https://api.github.com/repos/jaunix/tcpdump/branches{/branch}","tags_url":"https://api.github.com/repos/jaunix/tcpdump/tags","blobs_url":"https://api.github.com/repos/jaunix/tcpdump/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jaunix/tcpdump/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jaunix/tcpdump/git/refs{/sha}","trees_url":"https://api.github.com/repos/jaunix/tcpdump/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jaunix/tcpdump/statuses/{sha}","languages_url":"https://api.github.com/repos/jaunix/tcpdump/languages","stargazers_url":"https://api.github.com/repos/jaunix/tcpdump/stargazers","contributors_url":"https://api.github.com/repos/jaunix/tcpdump/contributors","subscribers_url":"https://api.github.com/repos/jaunix/tcpdump/subscribers","subscription_url":"https://api.github.com/repos/jaunix/tcpdump/subscription","commits_url":"https://api.github.com/repos/jaunix/tcpdump/commits{/sha}","git_commits_url":"https://api.github.com/repos/jaunix/tcpdump/git/commits{/sha}","comments_url":"https://api.github.com/repos/jaunix/tcpdump/comments{/number}","issue_comment_url":"https://api.github.com/repos/jaunix/tcpdump/issues/comments{/number}","contents_url":"https://api.github.com/repos/jaunix/tcpdump/contents/{+path}","compare_url":"https://api.github.com/repos/jaunix/tcpdump/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jaunix/tcpdump/merges","archive_url":"https://api.github.com/repos/jaunix/tcpdump/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jaunix/tcpdump/downloads","issues_url":"https://api.github.com/repos/jaunix/tcpdump/issues{/number}","pulls_url":"https://api.github.com/repos/jaunix/tcpdump/pulls{/number}","milestones_url":"https://api.github.com/repos/jaunix/tcpdump/milestones{/number}","notifications_url":"https://api.github.com/repos/jaunix/tcpdump/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jaunix/tcpdump/labels{/name}","releases_url":"https://api.github.com/repos/jaunix/tcpdump/releases{/id}","created_at":"2015-03-11T22:28:30Z","updated_at":"2015-03-11T22:28:33Z","pushed_at":"2015-03-11T22:52:59Z","git_url":"git://github.com/jaunix/tcpdump.git","ssh_url":"git@github.com:jaunix/tcpdump.git","clone_url":"https://github.com/jaunix/tcpdump.git","svn_url":"https://github.com/jaunix/tcpdump","homepage":"http://www.tcpdump.org/","size":22387,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"the-tcpdump-group:master","ref":"master","sha":"b63073388b54272d37aac4da61cca99636b8107a","user":{"login":"the-tcpdump-group","id":4154908,"avatar_url":"https://avatars.githubusercontent.com/u/4154908?v=3","gravatar_id":"","url":"https://api.github.com/users/the-tcpdump-group","html_url":"https://github.com/the-tcpdump-group","followers_url":"https://api.github.com/users/the-tcpdump-group/followers","following_url":"https://api.github.com/users/the-tcpdump-group/following{/other_user}","gists_url":"https://api.github.com/users/the-tcpdump-group/gists{/gist_id}","starred_url":"https://api.github.com/users/the-tcpdump-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-tcpdump-group/subscriptions","organizations_url":"https://api.github.com/users/the-tcpdump-group/orgs","repos_url":"https://api.github.com/users/the-tcpdump-group/repos","events_url":"https://api.github.com/users/the-tcpdump-group/events{/privacy}","received_events_url":"https://api.github.com/users/the-tcpdump-group/received_events","type":"Organization","site_admin":false},"repo":{"id":9435882,"name":"tcpdump","full_name":"the-tcpdump-group/tcpdump","owner":{"login":"the-tcpdump-group","id":4154908,"avatar_url":"https://avatars.githubusercontent.com/u/4154908?v=3","gravatar_id":"","url":"https://api.github.com/users/the-tcpdump-group","html_url":"https://github.com/the-tcpdump-group","followers_url":"https://api.github.com/users/the-tcpdump-group/followers","following_url":"https://api.github.com/users/the-tcpdump-group/following{/other_user}","gists_url":"https://api.github.com/users/the-tcpdump-group/gists{/gist_id}","starred_url":"https://api.github.com/users/the-tcpdump-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-tcpdump-group/subscriptions","organizations_url":"https://api.github.com/users/the-tcpdump-group/orgs","repos_url":"https://api.github.com/users/the-tcpdump-group/repos","events_url":"https://api.github.com/users/the-tcpdump-group/events{/privacy}","received_events_url":"https://api.github.com/users/the-tcpdump-group/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/the-tcpdump-group/tcpdump","description":"the TCPdump network dissector","fork":false,"url":"https://api.github.com/repos/the-tcpdump-group/tcpdump","forks_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/forks","keys_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/keys{/key_id}","collaborators_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/teams","hooks_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/hooks","issue_events_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/issues/events{/number}","events_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/events","assignees_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/assignees{/user}","branches_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/branches{/branch}","tags_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/tags","blobs_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/git/refs{/sha}","trees_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/git/trees{/sha}","statuses_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/statuses/{sha}","languages_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/languages","stargazers_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/stargazers","contributors_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/contributors","subscribers_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/subscribers","subscription_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/subscription","commits_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/commits{/sha}","git_commits_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/git/commits{/sha}","comments_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/comments{/number}","issue_comment_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/issues/comments{/number}","contents_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/contents/{+path}","compare_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/compare/{base}...{head}","merges_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/merges","archive_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/downloads","issues_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/issues{/number}","pulls_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/pulls{/number}","milestones_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/milestones{/number}","notifications_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/labels{/name}","releases_url":"https://api.github.com/repos/the-tcpdump-group/tcpdump/releases{/id}","created_at":"2013-04-14T21:46:15Z","updated_at":"2015-03-11T21:01:21Z","pushed_at":"2015-03-11T21:01:21Z","git_url":"git://github.com/the-tcpdump-group/tcpdump.git","ssh_url":"git@github.com:the-tcpdump-group/tcpdump.git","clone_url":"https://github.com/the-tcpdump-group/tcpdump.git","svn_url":"https://github.com/the-tcpdump-group/tcpdump","homepage":"http://www.tcpdump.org/","size":22387,"stargazers_count":162,"watchers_count":162,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":144,"mirror_url":null,"open_issues_count":27,"forks":144,"open_issues":27,"watchers":162,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/the-tcpdump-group/tcpdump/pulls/444"},"html":{"href":"https://github.com/the-tcpdump-group/tcpdump/pull/444"},"issue":{"href":"https://api.github.com/repos/the-tcpdump-group/tcpdump/issues/444"},"comments":{"href":"https://api.github.com/repos/the-tcpdump-group/tcpdump/issues/444/comments"},"review_comments":{"href":"https://api.github.com/repos/the-tcpdump-group/tcpdump/pulls/444/comments"},"review_comment":{"href":"https://api.github.com/repos/the-tcpdump-group/tcpdump/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/the-tcpdump-group/tcpdump/pulls/444/commits"},"statuses":{"href":"https://api.github.com/repos/the-tcpdump-group/tcpdump/statuses/0d0ad3f08e072a0763ffc9309441ff37ff00a1f6"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":97,"deletions":2,"changed_files":3}}