{"action":"opened","number":23,"pull_request":{"url":"https://api.github.com/repos/Igalia/snabbswitch/pulls/23","id":45350136,"html_url":"https://github.com/Igalia/snabbswitch/pull/23","diff_url":"https://github.com/Igalia/snabbswitch/pull/23.diff","patch_url":"https://github.com/Igalia/snabbswitch/pull/23.patch","issue_url":"https://api.github.com/repos/Igalia/snabbswitch/issues/23","number":23,"state":"open","locked":false,"title":"Import packet generation tool","user":{"login":"aperezdc","id":723451,"avatar_url":"https://avatars.githubusercontent.com/u/723451?v=3","gravatar_id":"","url":"https://api.github.com/users/aperezdc","html_url":"https://github.com/aperezdc","followers_url":"https://api.github.com/users/aperezdc/followers","following_url":"https://api.github.com/users/aperezdc/following{/other_user}","gists_url":"https://api.github.com/users/aperezdc/gists{/gist_id}","starred_url":"https://api.github.com/users/aperezdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aperezdc/subscriptions","organizations_url":"https://api.github.com/users/aperezdc/orgs","repos_url":"https://api.github.com/users/aperezdc/repos","events_url":"https://api.github.com/users/aperezdc/events{/privacy}","received_events_url":"https://api.github.com/users/aperezdc/received_events","type":"User","site_admin":false},"body":"The `pktgen` tool is to be used to generate pcap files which contain traffic patterns modelled after those which can be found in actual networks. The generated pcap files can then be used to test the different applications using them.\r\n\r\nThis first version of the tool supports only generating a stream of TCP packets from one machine to another (with their corresponding ACKs flowing in the opposite direction) which model a file download. The average size of the packets, destination/source address/port, and other parameters can be configured using command line flags.\r\n\r\nAs an example, the following generates 20 packets (10 with data, plus 10 with the ACKs) into the `http-like.pcap` file, with an average packet size of 300±25 bytes:\r\n\r\n```bash\r\npktgen --src-port=80 --packet-size=300 --packet-size-vary=25 \\\r\n       --packet-count=10 http-like.pcap\r\n```","created_at":"2015-09-17T22:31:28Z","updated_at":"2015-09-17T22:31:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Igalia/snabbswitch/pulls/23/commits","review_comments_url":"https://api.github.com/repos/Igalia/snabbswitch/pulls/23/comments","review_comment_url":"https://api.github.com/repos/Igalia/snabbswitch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Igalia/snabbswitch/issues/23/comments","statuses_url":"https://api.github.com/repos/Igalia/snabbswitch/statuses/bcd59d6ed9ac06893a711e972920dcb4be0d7be8","head":{"label":"aperezdc:ipv6_encap_pktgen","ref":"ipv6_encap_pktgen","sha":"bcd59d6ed9ac06893a711e972920dcb4be0d7be8","user":{"login":"aperezdc","id":723451,"avatar_url":"https://avatars.githubusercontent.com/u/723451?v=3","gravatar_id":"","url":"https://api.github.com/users/aperezdc","html_url":"https://github.com/aperezdc","followers_url":"https://api.github.com/users/aperezdc/followers","following_url":"https://api.github.com/users/aperezdc/following{/other_user}","gists_url":"https://api.github.com/users/aperezdc/gists{/gist_id}","starred_url":"https://api.github.com/users/aperezdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aperezdc/subscriptions","organizations_url":"https://api.github.com/users/aperezdc/orgs","repos_url":"https://api.github.com/users/aperezdc/repos","events_url":"https://api.github.com/users/aperezdc/events{/privacy}","received_events_url":"https://api.github.com/users/aperezdc/received_events","type":"User","site_admin":false},"repo":{"id":42684771,"name":"snabbswitch","full_name":"aperezdc/snabbswitch","owner":{"login":"aperezdc","id":723451,"avatar_url":"https://avatars.githubusercontent.com/u/723451?v=3","gravatar_id":"","url":"https://api.github.com/users/aperezdc","html_url":"https://github.com/aperezdc","followers_url":"https://api.github.com/users/aperezdc/followers","following_url":"https://api.github.com/users/aperezdc/following{/other_user}","gists_url":"https://api.github.com/users/aperezdc/gists{/gist_id}","starred_url":"https://api.github.com/users/aperezdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aperezdc/subscriptions","organizations_url":"https://api.github.com/users/aperezdc/orgs","repos_url":"https://api.github.com/users/aperezdc/repos","events_url":"https://api.github.com/users/aperezdc/events{/privacy}","received_events_url":"https://api.github.com/users/aperezdc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aperezdc/snabbswitch","description":"Snabb Switch: Fast open source packet processing","fork":true,"url":"https://api.github.com/repos/aperezdc/snabbswitch","forks_url":"https://api.github.com/repos/aperezdc/snabbswitch/forks","keys_url":"https://api.github.com/repos/aperezdc/snabbswitch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aperezdc/snabbswitch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aperezdc/snabbswitch/teams","hooks_url":"https://api.github.com/repos/aperezdc/snabbswitch/hooks","issue_events_url":"https://api.github.com/repos/aperezdc/snabbswitch/issues/events{/number}","events_url":"https://api.github.com/repos/aperezdc/snabbswitch/events","assignees_url":"https://api.github.com/repos/aperezdc/snabbswitch/assignees{/user}","branches_url":"https://api.github.com/repos/aperezdc/snabbswitch/branches{/branch}","tags_url":"https://api.github.com/repos/aperezdc/snabbswitch/tags","blobs_url":"https://api.github.com/repos/aperezdc/snabbswitch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aperezdc/snabbswitch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aperezdc/snabbswitch/git/refs{/sha}","trees_url":"https://api.github.com/repos/aperezdc/snabbswitch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aperezdc/snabbswitch/statuses/{sha}","languages_url":"https://api.github.com/repos/aperezdc/snabbswitch/languages","stargazers_url":"https://api.github.com/repos/aperezdc/snabbswitch/stargazers","contributors_url":"https://api.github.com/repos/aperezdc/snabbswitch/contributors","subscribers_url":"https://api.github.com/repos/aperezdc/snabbswitch/subscribers","subscription_url":"https://api.github.com/repos/aperezdc/snabbswitch/subscription","commits_url":"https://api.github.com/repos/aperezdc/snabbswitch/commits{/sha}","git_commits_url":"https://api.github.com/repos/aperezdc/snabbswitch/git/commits{/sha}","comments_url":"https://api.github.com/repos/aperezdc/snabbswitch/comments{/number}","issue_comment_url":"https://api.github.com/repos/aperezdc/snabbswitch/issues/comments{/number}","contents_url":"https://api.github.com/repos/aperezdc/snabbswitch/contents/{+path}","compare_url":"https://api.github.com/repos/aperezdc/snabbswitch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aperezdc/snabbswitch/merges","archive_url":"https://api.github.com/repos/aperezdc/snabbswitch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aperezdc/snabbswitch/downloads","issues_url":"https://api.github.com/repos/aperezdc/snabbswitch/issues{/number}","pulls_url":"https://api.github.com/repos/aperezdc/snabbswitch/pulls{/number}","milestones_url":"https://api.github.com/repos/aperezdc/snabbswitch/milestones{/number}","notifications_url":"https://api.github.com/repos/aperezdc/snabbswitch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aperezdc/snabbswitch/labels{/name}","releases_url":"https://api.github.com/repos/aperezdc/snabbswitch/releases{/id}","created_at":"2015-09-17T22:13:46Z","updated_at":"2015-09-17T22:13:48Z","pushed_at":"2015-09-17T22:29:17Z","git_url":"git://github.com/aperezdc/snabbswitch.git","ssh_url":"git@github.com:aperezdc/snabbswitch.git","clone_url":"https://github.com/aperezdc/snabbswitch.git","svn_url":"https://github.com/aperezdc/snabbswitch","homepage":"","size":5388,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"Igalia:ipv6_encap","ref":"ipv6_encap","sha":"8138bd9d1c75121ee7441562f182ad3c54567b6d","user":{"login":"Igalia","id":1576566,"avatar_url":"https://avatars.githubusercontent.com/u/1576566?v=3","gravatar_id":"","url":"https://api.github.com/users/Igalia","html_url":"https://github.com/Igalia","followers_url":"https://api.github.com/users/Igalia/followers","following_url":"https://api.github.com/users/Igalia/following{/other_user}","gists_url":"https://api.github.com/users/Igalia/gists{/gist_id}","starred_url":"https://api.github.com/users/Igalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igalia/subscriptions","organizations_url":"https://api.github.com/users/Igalia/orgs","repos_url":"https://api.github.com/users/Igalia/repos","events_url":"https://api.github.com/users/Igalia/events{/privacy}","received_events_url":"https://api.github.com/users/Igalia/received_events","type":"Organization","site_admin":false},"repo":{"id":34452469,"name":"snabbswitch","full_name":"Igalia/snabbswitch","owner":{"login":"Igalia","id":1576566,"avatar_url":"https://avatars.githubusercontent.com/u/1576566?v=3","gravatar_id":"","url":"https://api.github.com/users/Igalia","html_url":"https://github.com/Igalia","followers_url":"https://api.github.com/users/Igalia/followers","following_url":"https://api.github.com/users/Igalia/following{/other_user}","gists_url":"https://api.github.com/users/Igalia/gists{/gist_id}","starred_url":"https://api.github.com/users/Igalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igalia/subscriptions","organizations_url":"https://api.github.com/users/Igalia/orgs","repos_url":"https://api.github.com/users/Igalia/repos","events_url":"https://api.github.com/users/Igalia/events{/privacy}","received_events_url":"https://api.github.com/users/Igalia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Igalia/snabbswitch","description":"Snabb Switch: Fast open source packet processing","fork":true,"url":"https://api.github.com/repos/Igalia/snabbswitch","forks_url":"https://api.github.com/repos/Igalia/snabbswitch/forks","keys_url":"https://api.github.com/repos/Igalia/snabbswitch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Igalia/snabbswitch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Igalia/snabbswitch/teams","hooks_url":"https://api.github.com/repos/Igalia/snabbswitch/hooks","issue_events_url":"https://api.github.com/repos/Igalia/snabbswitch/issues/events{/number}","events_url":"https://api.github.com/repos/Igalia/snabbswitch/events","assignees_url":"https://api.github.com/repos/Igalia/snabbswitch/assignees{/user}","branches_url":"https://api.github.com/repos/Igalia/snabbswitch/branches{/branch}","tags_url":"https://api.github.com/repos/Igalia/snabbswitch/tags","blobs_url":"https://api.github.com/repos/Igalia/snabbswitch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Igalia/snabbswitch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Igalia/snabbswitch/git/refs{/sha}","trees_url":"https://api.github.com/repos/Igalia/snabbswitch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Igalia/snabbswitch/statuses/{sha}","languages_url":"https://api.github.com/repos/Igalia/snabbswitch/languages","stargazers_url":"https://api.github.com/repos/Igalia/snabbswitch/stargazers","contributors_url":"https://api.github.com/repos/Igalia/snabbswitch/contributors","subscribers_url":"https://api.github.com/repos/Igalia/snabbswitch/subscribers","subscription_url":"https://api.github.com/repos/Igalia/snabbswitch/subscription","commits_url":"https://api.github.com/repos/Igalia/snabbswitch/commits{/sha}","git_commits_url":"https://api.github.com/repos/Igalia/snabbswitch/git/commits{/sha}","comments_url":"https://api.github.com/repos/Igalia/snabbswitch/comments{/number}","issue_comment_url":"https://api.github.com/repos/Igalia/snabbswitch/issues/comments{/number}","contents_url":"https://api.github.com/repos/Igalia/snabbswitch/contents/{+path}","compare_url":"https://api.github.com/repos/Igalia/snabbswitch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Igalia/snabbswitch/merges","archive_url":"https://api.github.com/repos/Igalia/snabbswitch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Igalia/snabbswitch/downloads","issues_url":"https://api.github.com/repos/Igalia/snabbswitch/issues{/number}","pulls_url":"https://api.github.com/repos/Igalia/snabbswitch/pulls{/number}","milestones_url":"https://api.github.com/repos/Igalia/snabbswitch/milestones{/number}","notifications_url":"https://api.github.com/repos/Igalia/snabbswitch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Igalia/snabbswitch/labels{/name}","releases_url":"https://api.github.com/repos/Igalia/snabbswitch/releases{/id}","created_at":"2015-04-23T11:35:43Z","updated_at":"2015-04-27T13:26:53Z","pushed_at":"2015-09-17T22:31:28Z","git_url":"git://github.com/Igalia/snabbswitch.git","ssh_url":"git@github.com:Igalia/snabbswitch.git","clone_url":"https://github.com/Igalia/snabbswitch.git","svn_url":"https://github.com/Igalia/snabbswitch","homepage":"","size":5388,"stargazers_count":1,"watchers_count":1,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Igalia/snabbswitch/pulls/23"},"html":{"href":"https://github.com/Igalia/snabbswitch/pull/23"},"issue":{"href":"https://api.github.com/repos/Igalia/snabbswitch/issues/23"},"comments":{"href":"https://api.github.com/repos/Igalia/snabbswitch/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/Igalia/snabbswitch/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/Igalia/snabbswitch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Igalia/snabbswitch/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/Igalia/snabbswitch/statuses/bcd59d6ed9ac06893a711e972920dcb4be0d7be8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":101,"deletions":0,"changed_files":1}}