{"action":"created","comment":{"url":"https://api.github.com/repos/iovisor/bcc/pulls/comments/78471430","id":78471430,"diff_hunk":"@@ -107,6 +111,8 @@\n     u16 dport = 0;\n     bpf_probe_read(&dport, sizeof(dport), &skp->__sk_common.skc_dport);\n \n+    FILTER_PORT","path":"tools/tcpconnect.py","position":49,"original_position":49,"commit_id":"9f5ec8edc703843e16d17d41bd97f214dac7ef26","original_commit_id":"9f5ec8edc703843e16d17d41bd97f214dac7ef26","user":{"login":"chantra","id":24572,"avatar_url":"https://avatars.githubusercontent.com/u/24572?v=3","gravatar_id":"","url":"https://api.github.com/users/chantra","html_url":"https://github.com/chantra","followers_url":"https://api.github.com/users/chantra/followers","following_url":"https://api.github.com/users/chantra/following{/other_user}","gists_url":"https://api.github.com/users/chantra/gists{/gist_id}","starred_url":"https://api.github.com/users/chantra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chantra/subscriptions","organizations_url":"https://api.github.com/users/chantra/orgs","repos_url":"https://api.github.com/users/chantra/repos","events_url":"https://api.github.com/users/chantra/events{/privacy}","received_events_url":"https://api.github.com/users/chantra/received_events","type":"User","site_admin":false},"body":"yeah, struct sock is not fully initialized on entry.","created_at":"2016-09-12T23:07:47Z","updated_at":"2016-09-12T23:07:48Z","html_url":"https://github.com/iovisor/bcc/pull/689#discussion_r78471430","pull_request_url":"https://api.github.com/repos/iovisor/bcc/pulls/689","_links":{"self":{"href":"https://api.github.com/repos/iovisor/bcc/pulls/comments/78471430"},"html":{"href":"https://github.com/iovisor/bcc/pull/689#discussion_r78471430"},"pull_request":{"href":"https://api.github.com/repos/iovisor/bcc/pulls/689"}}},"pull_request":{"url":"https://api.github.com/repos/iovisor/bcc/pulls/689","id":84808718,"html_url":"https://github.com/iovisor/bcc/pull/689","diff_url":"https://github.com/iovisor/bcc/pull/689.diff","patch_url":"https://github.com/iovisor/bcc/pull/689.patch","issue_url":"https://api.github.com/repos/iovisor/bcc/issues/689","number":689,"state":"open","locked":false,"title":"[tcpconnect] filter traced connection based on destination ports","user":{"login":"chantra","id":24572,"avatar_url":"https://avatars.githubusercontent.com/u/24572?v=3","gravatar_id":"","url":"https://api.github.com/users/chantra","html_url":"https://github.com/chantra","followers_url":"https://api.github.com/users/chantra/followers","following_url":"https://api.github.com/users/chantra/following{/other_user}","gists_url":"https://api.github.com/users/chantra/gists{/gist_id}","starred_url":"https://api.github.com/users/chantra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chantra/subscriptions","organizations_url":"https://api.github.com/users/chantra/orgs","repos_url":"https://api.github.com/users/chantra/repos","events_url":"https://api.github.com/users/chantra/events{/privacy}","received_events_url":"https://api.github.com/users/chantra/received_events","type":"User","site_admin":false},"body":"Test:\r\nWhile running:\r\nwhile [ 1 ]; do nc -w 1 100.127.0.1 80; nc -w 1 100.127.0.1 81; done\r\n\r\nroot@vagrant:/mnt/bcc# ./tools/tcpconnect.py\r\nPID    COMM         IP SADDR            DADDR            DPORT\r\n19978  nc           4  10.0.2.15        100.127.0.1      80\r\n19979  nc           4  10.0.2.15        100.127.0.1      81\r\n19980  nc           4  10.0.2.15        100.127.0.1      80\r\n19981  nc           4  10.0.2.15        100.127.0.1      81\r\nroot@vagrant:/mnt/bcc# ./tools/tcpconnect.py  -P 80\r\nPID    COMM         IP SADDR            DADDR            DPORT\r\n19987  nc           4  10.0.2.15        100.127.0.1      80\r\n19989  nc           4  10.0.2.15        100.127.0.1      80\r\n19991  nc           4  10.0.2.15        100.127.0.1      80\r\n19993  nc           4  10.0.2.15        100.127.0.1      80\r\n19995  nc           4  10.0.2.15        100.127.0.1      80\r\nroot@vagrant:/mnt/bcc# ./tools/tcpconnect.py  -P 80 81\r\nPID    COMM         IP SADDR            DADDR            DPORT\r\n8725   nc           4  10.0.2.15        100.127.0.1      80\r\n8726   nc           4  10.0.2.15        100.127.0.1      81\r\n8727   nc           4  10.0.2.15        100.127.0.1      80\r\n8728   nc           4  10.0.2.15        100.127.0.1      81\r\n8729   nc           4  10.0.2.15        100.127.0.1      80\r\n\r\nFixes #681","created_at":"2016-09-12T02:41:25Z","updated_at":"2016-09-12T23:07:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d79087ed7aee31c02f9083b5525c0e64d31010f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/iovisor/bcc/pulls/689/commits","review_comments_url":"https://api.github.com/repos/iovisor/bcc/pulls/689/comments","review_comment_url":"https://api.github.com/repos/iovisor/bcc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iovisor/bcc/issues/689/comments","statuses_url":"https://api.github.com/repos/iovisor/bcc/statuses/9f5ec8edc703843e16d17d41bd97f214dac7ef26","head":{"label":"chantra:tcpconnect_port","ref":"tcpconnect_port","sha":"9f5ec8edc703843e16d17d41bd97f214dac7ef26","user":{"login":"chantra","id":24572,"avatar_url":"https://avatars.githubusercontent.com/u/24572?v=3","gravatar_id":"","url":"https://api.github.com/users/chantra","html_url":"https://github.com/chantra","followers_url":"https://api.github.com/users/chantra/followers","following_url":"https://api.github.com/users/chantra/following{/other_user}","gists_url":"https://api.github.com/users/chantra/gists{/gist_id}","starred_url":"https://api.github.com/users/chantra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chantra/subscriptions","organizations_url":"https://api.github.com/users/chantra/orgs","repos_url":"https://api.github.com/users/chantra/repos","events_url":"https://api.github.com/users/chantra/events{/privacy}","received_events_url":"https://api.github.com/users/chantra/received_events","type":"User","site_admin":false},"repo":{"id":63364829,"name":"bcc","full_name":"chantra/bcc","owner":{"login":"chantra","id":24572,"avatar_url":"https://avatars.githubusercontent.com/u/24572?v=3","gravatar_id":"","url":"https://api.github.com/users/chantra","html_url":"https://github.com/chantra","followers_url":"https://api.github.com/users/chantra/followers","following_url":"https://api.github.com/users/chantra/following{/other_user}","gists_url":"https://api.github.com/users/chantra/gists{/gist_id}","starred_url":"https://api.github.com/users/chantra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chantra/subscriptions","organizations_url":"https://api.github.com/users/chantra/orgs","repos_url":"https://api.github.com/users/chantra/repos","events_url":"https://api.github.com/users/chantra/events{/privacy}","received_events_url":"https://api.github.com/users/chantra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chantra/bcc","description":"BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more","fork":true,"url":"https://api.github.com/repos/chantra/bcc","forks_url":"https://api.github.com/repos/chantra/bcc/forks","keys_url":"https://api.github.com/repos/chantra/bcc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chantra/bcc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chantra/bcc/teams","hooks_url":"https://api.github.com/repos/chantra/bcc/hooks","issue_events_url":"https://api.github.com/repos/chantra/bcc/issues/events{/number}","events_url":"https://api.github.com/repos/chantra/bcc/events","assignees_url":"https://api.github.com/repos/chantra/bcc/assignees{/user}","branches_url":"https://api.github.com/repos/chantra/bcc/branches{/branch}","tags_url":"https://api.github.com/repos/chantra/bcc/tags","blobs_url":"https://api.github.com/repos/chantra/bcc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chantra/bcc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chantra/bcc/git/refs{/sha}","trees_url":"https://api.github.com/repos/chantra/bcc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chantra/bcc/statuses/{sha}","languages_url":"https://api.github.com/repos/chantra/bcc/languages","stargazers_url":"https://api.github.com/repos/chantra/bcc/stargazers","contributors_url":"https://api.github.com/repos/chantra/bcc/contributors","subscribers_url":"https://api.github.com/repos/chantra/bcc/subscribers","subscription_url":"https://api.github.com/repos/chantra/bcc/subscription","commits_url":"https://api.github.com/repos/chantra/bcc/commits{/sha}","git_commits_url":"https://api.github.com/repos/chantra/bcc/git/commits{/sha}","comments_url":"https://api.github.com/repos/chantra/bcc/comments{/number}","issue_comment_url":"https://api.github.com/repos/chantra/bcc/issues/comments{/number}","contents_url":"https://api.github.com/repos/chantra/bcc/contents/{+path}","compare_url":"https://api.github.com/repos/chantra/bcc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chantra/bcc/merges","archive_url":"https://api.github.com/repos/chantra/bcc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chantra/bcc/downloads","issues_url":"https://api.github.com/repos/chantra/bcc/issues{/number}","pulls_url":"https://api.github.com/repos/chantra/bcc/pulls{/number}","milestones_url":"https://api.github.com/repos/chantra/bcc/milestones{/number}","notifications_url":"https://api.github.com/repos/chantra/bcc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chantra/bcc/labels{/name}","releases_url":"https://api.github.com/repos/chantra/bcc/releases{/id}","deployments_url":"https://api.github.com/repos/chantra/bcc/deployments","created_at":"2016-07-14T19:43:43Z","updated_at":"2016-07-14T19:43:44Z","pushed_at":"2016-09-12T15:57:11Z","git_url":"git://github.com/chantra/bcc.git","ssh_url":"git@github.com:chantra/bcc.git","clone_url":"https://github.com/chantra/bcc.git","svn_url":"https://github.com/chantra/bcc","homepage":"","size":3034,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"iovisor:master","ref":"master","sha":"01992b8e8d921dd8cdcd8c2116ac23feb41393be","user":{"login":"iovisor","id":12766186,"avatar_url":"https://avatars.githubusercontent.com/u/12766186?v=3","gravatar_id":"","url":"https://api.github.com/users/iovisor","html_url":"https://github.com/iovisor","followers_url":"https://api.github.com/users/iovisor/followers","following_url":"https://api.github.com/users/iovisor/following{/other_user}","gists_url":"https://api.github.com/users/iovisor/gists{/gist_id}","starred_url":"https://api.github.com/users/iovisor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iovisor/subscriptions","organizations_url":"https://api.github.com/users/iovisor/orgs","repos_url":"https://api.github.com/users/iovisor/repos","events_url":"https://api.github.com/users/iovisor/events{/privacy}","received_events_url":"https://api.github.com/users/iovisor/received_events","type":"Organization","site_admin":false},"repo":{"id":34921116,"name":"bcc","full_name":"iovisor/bcc","owner":{"login":"iovisor","id":12766186,"avatar_url":"https://avatars.githubusercontent.com/u/12766186?v=3","gravatar_id":"","url":"https://api.github.com/users/iovisor","html_url":"https://github.com/iovisor","followers_url":"https://api.github.com/users/iovisor/followers","following_url":"https://api.github.com/users/iovisor/following{/other_user}","gists_url":"https://api.github.com/users/iovisor/gists{/gist_id}","starred_url":"https://api.github.com/users/iovisor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iovisor/subscriptions","organizations_url":"https://api.github.com/users/iovisor/orgs","repos_url":"https://api.github.com/users/iovisor/repos","events_url":"https://api.github.com/users/iovisor/events{/privacy}","received_events_url":"https://api.github.com/users/iovisor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iovisor/bcc","description":"BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more","fork":false,"url":"https://api.github.com/repos/iovisor/bcc","forks_url":"https://api.github.com/repos/iovisor/bcc/forks","keys_url":"https://api.github.com/repos/iovisor/bcc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iovisor/bcc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iovisor/bcc/teams","hooks_url":"https://api.github.com/repos/iovisor/bcc/hooks","issue_events_url":"https://api.github.com/repos/iovisor/bcc/issues/events{/number}","events_url":"https://api.github.com/repos/iovisor/bcc/events","assignees_url":"https://api.github.com/repos/iovisor/bcc/assignees{/user}","branches_url":"https://api.github.com/repos/iovisor/bcc/branches{/branch}","tags_url":"https://api.github.com/repos/iovisor/bcc/tags","blobs_url":"https://api.github.com/repos/iovisor/bcc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iovisor/bcc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iovisor/bcc/git/refs{/sha}","trees_url":"https://api.github.com/repos/iovisor/bcc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iovisor/bcc/statuses/{sha}","languages_url":"https://api.github.com/repos/iovisor/bcc/languages","stargazers_url":"https://api.github.com/repos/iovisor/bcc/stargazers","contributors_url":"https://api.github.com/repos/iovisor/bcc/contributors","subscribers_url":"https://api.github.com/repos/iovisor/bcc/subscribers","subscription_url":"https://api.github.com/repos/iovisor/bcc/subscription","commits_url":"https://api.github.com/repos/iovisor/bcc/commits{/sha}","git_commits_url":"https://api.github.com/repos/iovisor/bcc/git/commits{/sha}","comments_url":"https://api.github.com/repos/iovisor/bcc/comments{/number}","issue_comment_url":"https://api.github.com/repos/iovisor/bcc/issues/comments{/number}","contents_url":"https://api.github.com/repos/iovisor/bcc/contents/{+path}","compare_url":"https://api.github.com/repos/iovisor/bcc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iovisor/bcc/merges","archive_url":"https://api.github.com/repos/iovisor/bcc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iovisor/bcc/downloads","issues_url":"https://api.github.com/repos/iovisor/bcc/issues{/number}","pulls_url":"https://api.github.com/repos/iovisor/bcc/pulls{/number}","milestones_url":"https://api.github.com/repos/iovisor/bcc/milestones{/number}","notifications_url":"https://api.github.com/repos/iovisor/bcc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iovisor/bcc/labels{/name}","releases_url":"https://api.github.com/repos/iovisor/bcc/releases{/id}","deployments_url":"https://api.github.com/repos/iovisor/bcc/deployments","created_at":"2015-05-01T19:52:32Z","updated_at":"2016-09-12T03:45:55Z","pushed_at":"2016-09-12T19:00:38Z","git_url":"git://github.com/iovisor/bcc.git","ssh_url":"git@github.com:iovisor/bcc.git","clone_url":"https://github.com/iovisor/bcc.git","svn_url":"https://github.com/iovisor/bcc","homepage":"","size":3985,"stargazers_count":1603,"watchers_count":1603,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":198,"mirror_url":null,"open_issues_count":90,"forks":198,"open_issues":90,"watchers":1603,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iovisor/bcc/pulls/689"},"html":{"href":"https://github.com/iovisor/bcc/pull/689"},"issue":{"href":"https://api.github.com/repos/iovisor/bcc/issues/689"},"comments":{"href":"https://api.github.com/repos/iovisor/bcc/issues/689/comments"},"review_comments":{"href":"https://api.github.com/repos/iovisor/bcc/pulls/689/comments"},"review_comment":{"href":"https://api.github.com/repos/iovisor/bcc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iovisor/bcc/pulls/689/commits"},"statuses":{"href":"https://api.github.com/repos/iovisor/bcc/statuses/9f5ec8edc703843e16d17d41bd97f214dac7ef26"}}}}
{"actor":{"display_login":"chantra"}}