{"action":"created","comment":{"url":"https://api.github.com/repos/NEAT-project/neat/pulls/comments/93635231","pull_request_review_id":14166855,"id":93635231,"diff_hunk":"@@ -2050,6 +2050,47 @@ void uvpollable_cb(uv_poll_t *handle, int status, int events)\n \n }\n \n+int neat_getlpaddrs(struct neat_ctx*  ctx,\n+                    struct neat_flow* flow,\n+                    struct sockaddr** addrs,\n+                    const int         local)\n+{\n+    if( (flow->socket->stack == NEAT_STACK_SCTP) ||\n+        (flow->socket->stack == NEAT_STACK_SCTP_UDP) ) {\n+#if defined(USRSCTP_SUPPORT)\n+        if(local) {\n+            return(usrsctp_getladdrs(flow->socket->usrsctp_socket, 0, addrs));\n+        }\n+        else {\n+            return(usrsctp_getpaddrs(flow->socket->usrsctp_socket, 0, addrs));\n+        }\n+#else\n+        if(local) {","path":"neat_core.c","position":28,"original_position":28,"commit_id":"bed9e78208fab863d5ef49b4732d3bc3f8d53901","original_commit_id":"bed9e78208fab863d5ef49b4732d3bc3f8d53901","user":{"login":"tuexen","id":62450,"avatar_url":"https://avatars.githubusercontent.com/u/62450?v=3","gravatar_id":"","url":"https://api.github.com/users/tuexen","html_url":"https://github.com/tuexen","followers_url":"https://api.github.com/users/tuexen/followers","following_url":"https://api.github.com/users/tuexen/following{/other_user}","gists_url":"https://api.github.com/users/tuexen/gists{/gist_id}","starred_url":"https://api.github.com/users/tuexen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuexen/subscriptions","organizations_url":"https://api.github.com/users/tuexen/orgs","repos_url":"https://api.github.com/users/tuexen/repos","events_url":"https://api.github.com/users/tuexen/events{/privacy}","received_events_url":"https://api.github.com/users/tuexen/received_events","type":"User","site_admin":false},"body":"Use if (","created_at":"2016-12-22T14:48:05Z","updated_at":"2016-12-22T14:48:05Z","html_url":"https://github.com/NEAT-project/neat/pull/248#discussion_r93635231","pull_request_url":"https://api.github.com/repos/NEAT-project/neat/pulls/248","_links":{"self":{"href":"https://api.github.com/repos/NEAT-project/neat/pulls/comments/93635231"},"html":{"href":"https://github.com/NEAT-project/neat/pull/248#discussion_r93635231"},"pull_request":{"href":"https://api.github.com/repos/NEAT-project/neat/pulls/248"}}},"pull_request":{"url":"https://api.github.com/repos/NEAT-project/neat/pulls/248","id":99106124,"html_url":"https://github.com/NEAT-project/neat/pull/248","diff_url":"https://github.com/NEAT-project/neat/pull/248.diff","patch_url":"https://github.com/NEAT-project/neat/pull/248.patch","issue_url":"https://api.github.com/repos/NEAT-project/neat/issues/248","number":248,"state":"open","locked":false,"title":"Added neat getlpaddrs() function to query local/remote addresses","user":{"login":"dreibh","id":1830768,"avatar_url":"https://avatars.githubusercontent.com/u/1830768?v=3","gravatar_id":"","url":"https://api.github.com/users/dreibh","html_url":"https://github.com/dreibh","followers_url":"https://api.github.com/users/dreibh/followers","following_url":"https://api.github.com/users/dreibh/following{/other_user}","gists_url":"https://api.github.com/users/dreibh/gists{/gist_id}","starred_url":"https://api.github.com/users/dreibh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreibh/subscriptions","organizations_url":"https://api.github.com/users/dreibh/orgs","repos_url":"https://api.github.com/users/dreibh/repos","events_url":"https://api.github.com/users/dreibh/events{/privacy}","received_events_url":"https://api.github.com/users/dreibh/received_events","type":"User","site_admin":false},"body":"Added new NEAT Core API function to query local/remote addresses:\r\nint neat_getlpaddrs(struct neat_ctx*  ctx,\r\n                    struct neat_flow* flow,\r\n                    struct sockaddr** addrs,\r\n                    const int         local)\r\n","created_at":"2016-12-22T13:42:21Z","updated_at":"2016-12-22T14:48:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66a468693b29c3e9ccd16fbe335fca50c41065c8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NEAT-project/neat/pulls/248/commits","review_comments_url":"https://api.github.com/repos/NEAT-project/neat/pulls/248/comments","review_comment_url":"https://api.github.com/repos/NEAT-project/neat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NEAT-project/neat/issues/248/comments","statuses_url":"https://api.github.com/repos/NEAT-project/neat/statuses/bed9e78208fab863d5ef49b4732d3bc3f8d53901","head":{"label":"NEAT-project:dreibh/neat-getlpaddrs","ref":"dreibh/neat-getlpaddrs","sha":"bed9e78208fab863d5ef49b4732d3bc3f8d53901","user":{"login":"NEAT-project","id":11886744,"avatar_url":"https://avatars.githubusercontent.com/u/11886744?v=3","gravatar_id":"","url":"https://api.github.com/users/NEAT-project","html_url":"https://github.com/NEAT-project","followers_url":"https://api.github.com/users/NEAT-project/followers","following_url":"https://api.github.com/users/NEAT-project/following{/other_user}","gists_url":"https://api.github.com/users/NEAT-project/gists{/gist_id}","starred_url":"https://api.github.com/users/NEAT-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NEAT-project/subscriptions","organizations_url":"https://api.github.com/users/NEAT-project/orgs","repos_url":"https://api.github.com/users/NEAT-project/repos","events_url":"https://api.github.com/users/NEAT-project/events{/privacy}","received_events_url":"https://api.github.com/users/NEAT-project/received_events","type":"Organization","site_admin":false},"repo":{"id":33730163,"name":"neat","full_name":"NEAT-project/neat","owner":{"login":"NEAT-project","id":11886744,"avatar_url":"https://avatars.githubusercontent.com/u/11886744?v=3","gravatar_id":"","url":"https://api.github.com/users/NEAT-project","html_url":"https://github.com/NEAT-project","followers_url":"https://api.github.com/users/NEAT-project/followers","following_url":"https://api.github.com/users/NEAT-project/following{/other_user}","gists_url":"https://api.github.com/users/NEAT-project/gists{/gist_id}","starred_url":"https://api.github.com/users/NEAT-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NEAT-project/subscriptions","organizations_url":"https://api.github.com/users/NEAT-project/orgs","repos_url":"https://api.github.com/users/NEAT-project/repos","events_url":"https://api.github.com/users/NEAT-project/events{/privacy}","received_events_url":"https://api.github.com/users/NEAT-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NEAT-project/neat","description":"A New, Evolutive API and Transport-Layer Architecture for the Internet","fork":false,"url":"https://api.github.com/repos/NEAT-project/neat","forks_url":"https://api.github.com/repos/NEAT-project/neat/forks","keys_url":"https://api.github.com/repos/NEAT-project/neat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NEAT-project/neat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NEAT-project/neat/teams","hooks_url":"https://api.github.com/repos/NEAT-project/neat/hooks","issue_events_url":"https://api.github.com/repos/NEAT-project/neat/issues/events{/number}","events_url":"https://api.github.com/repos/NEAT-project/neat/events","assignees_url":"https://api.github.com/repos/NEAT-project/neat/assignees{/user}","branches_url":"https://api.github.com/repos/NEAT-project/neat/branches{/branch}","tags_url":"https://api.github.com/repos/NEAT-project/neat/tags","blobs_url":"https://api.github.com/repos/NEAT-project/neat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NEAT-project/neat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NEAT-project/neat/git/refs{/sha}","trees_url":"https://api.github.com/repos/NEAT-project/neat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NEAT-project/neat/statuses/{sha}","languages_url":"https://api.github.com/repos/NEAT-project/neat/languages","stargazers_url":"https://api.github.com/repos/NEAT-project/neat/stargazers","contributors_url":"https://api.github.com/repos/NEAT-project/neat/contributors","subscribers_url":"https://api.github.com/repos/NEAT-project/neat/subscribers","subscription_url":"https://api.github.com/repos/NEAT-project/neat/subscription","commits_url":"https://api.github.com/repos/NEAT-project/neat/commits{/sha}","git_commits_url":"https://api.github.com/repos/NEAT-project/neat/git/commits{/sha}","comments_url":"https://api.github.com/repos/NEAT-project/neat/comments{/number}","issue_comment_url":"https://api.github.com/repos/NEAT-project/neat/issues/comments{/number}","contents_url":"https://api.github.com/repos/NEAT-project/neat/contents/{+path}","compare_url":"https://api.github.com/repos/NEAT-project/neat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NEAT-project/neat/merges","archive_url":"https://api.github.com/repos/NEAT-project/neat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NEAT-project/neat/downloads","issues_url":"https://api.github.com/repos/NEAT-project/neat/issues{/number}","pulls_url":"https://api.github.com/repos/NEAT-project/neat/pulls{/number}","milestones_url":"https://api.github.com/repos/NEAT-project/neat/milestones{/number}","notifications_url":"https://api.github.com/repos/NEAT-project/neat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NEAT-project/neat/labels{/name}","releases_url":"https://api.github.com/repos/NEAT-project/neat/releases{/id}","deployments_url":"https://api.github.com/repos/NEAT-project/neat/deployments","created_at":"2015-04-10T13:33:46Z","updated_at":"2016-12-02T08:19:46Z","pushed_at":"2016-12-22T14:29:13Z","git_url":"git://github.com/NEAT-project/neat.git","ssh_url":"git@github.com:NEAT-project/neat.git","clone_url":"https://github.com/NEAT-project/neat.git","svn_url":"https://github.com/NEAT-project/neat","homepage":"https://www.neat-project.org/","size":2718,"stargazers_count":19,"watchers_count":19,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":52,"forks":2,"open_issues":52,"watchers":19,"default_branch":"master"}},"base":{"label":"NEAT-project:master","ref":"master","sha":"932a9b2a81a3e1787168f8dc3e4c4c95ba2672d0","user":{"login":"NEAT-project","id":11886744,"avatar_url":"https://avatars.githubusercontent.com/u/11886744?v=3","gravatar_id":"","url":"https://api.github.com/users/NEAT-project","html_url":"https://github.com/NEAT-project","followers_url":"https://api.github.com/users/NEAT-project/followers","following_url":"https://api.github.com/users/NEAT-project/following{/other_user}","gists_url":"https://api.github.com/users/NEAT-project/gists{/gist_id}","starred_url":"https://api.github.com/users/NEAT-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NEAT-project/subscriptions","organizations_url":"https://api.github.com/users/NEAT-project/orgs","repos_url":"https://api.github.com/users/NEAT-project/repos","events_url":"https://api.github.com/users/NEAT-project/events{/privacy}","received_events_url":"https://api.github.com/users/NEAT-project/received_events","type":"Organization","site_admin":false},"repo":{"id":33730163,"name":"neat","full_name":"NEAT-project/neat","owner":{"login":"NEAT-project","id":11886744,"avatar_url":"https://avatars.githubusercontent.com/u/11886744?v=3","gravatar_id":"","url":"https://api.github.com/users/NEAT-project","html_url":"https://github.com/NEAT-project","followers_url":"https://api.github.com/users/NEAT-project/followers","following_url":"https://api.github.com/users/NEAT-project/following{/other_user}","gists_url":"https://api.github.com/users/NEAT-project/gists{/gist_id}","starred_url":"https://api.github.com/users/NEAT-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NEAT-project/subscriptions","organizations_url":"https://api.github.com/users/NEAT-project/orgs","repos_url":"https://api.github.com/users/NEAT-project/repos","events_url":"https://api.github.com/users/NEAT-project/events{/privacy}","received_events_url":"https://api.github.com/users/NEAT-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NEAT-project/neat","description":"A New, Evolutive API and Transport-Layer Architecture for the Internet","fork":false,"url":"https://api.github.com/repos/NEAT-project/neat","forks_url":"https://api.github.com/repos/NEAT-project/neat/forks","keys_url":"https://api.github.com/repos/NEAT-project/neat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NEAT-project/neat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NEAT-project/neat/teams","hooks_url":"https://api.github.com/repos/NEAT-project/neat/hooks","issue_events_url":"https://api.github.com/repos/NEAT-project/neat/issues/events{/number}","events_url":"https://api.github.com/repos/NEAT-project/neat/events","assignees_url":"https://api.github.com/repos/NEAT-project/neat/assignees{/user}","branches_url":"https://api.github.com/repos/NEAT-project/neat/branches{/branch}","tags_url":"https://api.github.com/repos/NEAT-project/neat/tags","blobs_url":"https://api.github.com/repos/NEAT-project/neat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NEAT-project/neat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NEAT-project/neat/git/refs{/sha}","trees_url":"https://api.github.com/repos/NEAT-project/neat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NEAT-project/neat/statuses/{sha}","languages_url":"https://api.github.com/repos/NEAT-project/neat/languages","stargazers_url":"https://api.github.com/repos/NEAT-project/neat/stargazers","contributors_url":"https://api.github.com/repos/NEAT-project/neat/contributors","subscribers_url":"https://api.github.com/repos/NEAT-project/neat/subscribers","subscription_url":"https://api.github.com/repos/NEAT-project/neat/subscription","commits_url":"https://api.github.com/repos/NEAT-project/neat/commits{/sha}","git_commits_url":"https://api.github.com/repos/NEAT-project/neat/git/commits{/sha}","comments_url":"https://api.github.com/repos/NEAT-project/neat/comments{/number}","issue_comment_url":"https://api.github.com/repos/NEAT-project/neat/issues/comments{/number}","contents_url":"https://api.github.com/repos/NEAT-project/neat/contents/{+path}","compare_url":"https://api.github.com/repos/NEAT-project/neat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NEAT-project/neat/merges","archive_url":"https://api.github.com/repos/NEAT-project/neat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NEAT-project/neat/downloads","issues_url":"https://api.github.com/repos/NEAT-project/neat/issues{/number}","pulls_url":"https://api.github.com/repos/NEAT-project/neat/pulls{/number}","milestones_url":"https://api.github.com/repos/NEAT-project/neat/milestones{/number}","notifications_url":"https://api.github.com/repos/NEAT-project/neat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NEAT-project/neat/labels{/name}","releases_url":"https://api.github.com/repos/NEAT-project/neat/releases{/id}","deployments_url":"https://api.github.com/repos/NEAT-project/neat/deployments","created_at":"2015-04-10T13:33:46Z","updated_at":"2016-12-02T08:19:46Z","pushed_at":"2016-12-22T14:29:13Z","git_url":"git://github.com/NEAT-project/neat.git","ssh_url":"git@github.com:NEAT-project/neat.git","clone_url":"https://github.com/NEAT-project/neat.git","svn_url":"https://github.com/NEAT-project/neat","homepage":"https://www.neat-project.org/","size":2718,"stargazers_count":19,"watchers_count":19,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":52,"forks":2,"open_issues":52,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NEAT-project/neat/pulls/248"},"html":{"href":"https://github.com/NEAT-project/neat/pull/248"},"issue":{"href":"https://api.github.com/repos/NEAT-project/neat/issues/248"},"comments":{"href":"https://api.github.com/repos/NEAT-project/neat/issues/248/comments"},"review_comments":{"href":"https://api.github.com/repos/NEAT-project/neat/pulls/248/comments"},"review_comment":{"href":"https://api.github.com/repos/NEAT-project/neat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NEAT-project/neat/pulls/248/commits"},"statuses":{"href":"https://api.github.com/repos/NEAT-project/neat/statuses/bed9e78208fab863d5ef49b4732d3bc3f8d53901"}}}}
{"actor":{"display_login":"tuexen"}}