{"action":"created","comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/22858821","id":22858821,"diff_hunk":"@@ -0,0 +1,305 @@\n+/*\n+ * Copyright (C) 2014 Freie Universität Berlin\n+ *\n+ * This file is subject to the terms and conditions of the GNU Lesser\n+ * General Public License v2.1. See the file LICENSE in the top level\n+ * directory for more details.\n+ */\n+\n+/**\n+ * @ingroup     nhdp\n+ * @{\n+ *\n+ * @file\n+ * @brief       Implementation of NHDP's core functionality\n+ *\n+ * @author      Fabian Nack <nack@inf.fu-berlin.de>\n+ *\n+ * @}\n+ */\n+\n+#include \"msg.h\"\n+#include \"netapi.h\"\n+#include \"thread.h\"\n+#include \"utlist.h\"\n+\n+#include \"rfc5444/rfc5444_writer.h\"\n+\n+#include \"lib_table.h\"\n+#include \"iib_table.h\"\n+#include \"nib_table.h\"\n+#include \"nhdp.h\"\n+#include \"nhdp_address.h\"\n+#include \"nhdp_writer.h\"\n+#include \"nhdp_reader.h\"\n+\n+char nhdp_stack[NHDP_STACK_SIZE];","path":"sys/net/routing/nhdp/nhdp.c","position":36,"original_position":36,"commit_id":"f541d76fe3110fc0467816ce8540f902f68cdeec","original_commit_id":"3beca9d456cc7e09b48847736e6e5a4a7496cca3","user":{"login":"OlegHahm","id":1590423,"avatar_url":"https://avatars.githubusercontent.com/u/1590423?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegHahm","html_url":"https://github.com/OlegHahm","followers_url":"https://api.github.com/users/OlegHahm/followers","following_url":"https://api.github.com/users/OlegHahm/following{/other_user}","gists_url":"https://api.github.com/users/OlegHahm/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegHahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegHahm/subscriptions","organizations_url":"https://api.github.com/users/OlegHahm/orgs","repos_url":"https://api.github.com/users/OlegHahm/repos","events_url":"https://api.github.com/users/OlegHahm/events{/privacy}","received_events_url":"https://api.github.com/users/OlegHahm/received_events","type":"User","site_admin":false},"body":"> I think he means to exchange it in l69 where I currently create the thread with:\r\n\r\nYes, sorry for the confusion. I reviewed while commuting and had a lossy Internet connection, so I noted down the comments off-line and pasted them later on - apparently I noted down the wrong line number in this case.","created_at":"2015-01-13T12:32:28Z","updated_at":"2015-01-13T12:32:28Z","html_url":"https://github.com/RIOT-OS/RIOT/pull/2159#discussion_r22858821","pull_request_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2159","_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/22858821"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/2159#discussion_r22858821"},"pull_request":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2159"}}},"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2159","id":25658965,"html_url":"https://github.com/RIOT-OS/RIOT/pull/2159","diff_url":"https://github.com/RIOT-OS/RIOT/pull/2159.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/2159.patch","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2159","number":2159,"state":"open","locked":false,"title":"sys/net: Add NHDP protocol implementation","user":{"login":"fnack","id":830814,"avatar_url":"https://avatars.githubusercontent.com/u/830814?v=3","gravatar_id":"","url":"https://api.github.com/users/fnack","html_url":"https://github.com/fnack","followers_url":"https://api.github.com/users/fnack/followers","following_url":"https://api.github.com/users/fnack/following{/other_user}","gists_url":"https://api.github.com/users/fnack/gists{/gist_id}","starred_url":"https://api.github.com/users/fnack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnack/subscriptions","organizations_url":"https://api.github.com/users/fnack/orgs","repos_url":"https://api.github.com/users/fnack/repos","events_url":"https://api.github.com/users/fnack/events{/privacy}","received_events_url":"https://api.github.com/users/fnack/received_events","type":"User","site_admin":false},"body":"This PR introduces the MANET Neighborhood Discovery Protocol specified in [RFC 6130](https://tools.ietf.org/html/rfc6130). The implementation is based on oonf_api and utlist. It introduces a single thread for protocol message sending and receiving.\r\n\r\nIt is still work in progress in some parts and needs thoroughly testing. TODOs include:\r\n- [x] Cleanup timed out information base entries\r\n- [ ] Optimize list loops\r\n- [ ] Provide a simple example application\r\n- [x] Add proper documentation","created_at":"2014-12-08T11:06:02Z","updated_at":"2015-01-13T12:32:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1dc7bcf409933de9370240d0237dcf7c045f1c5","assignee":{"login":"OlegHahm","id":1590423,"avatar_url":"https://avatars.githubusercontent.com/u/1590423?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegHahm","html_url":"https://github.com/OlegHahm","followers_url":"https://api.github.com/users/OlegHahm/followers","following_url":"https://api.github.com/users/OlegHahm/following{/other_user}","gists_url":"https://api.github.com/users/OlegHahm/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegHahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegHahm/subscriptions","organizations_url":"https://api.github.com/users/OlegHahm/orgs","repos_url":"https://api.github.com/users/OlegHahm/repos","events_url":"https://api.github.com/users/OlegHahm/events{/privacy}","received_events_url":"https://api.github.com/users/OlegHahm/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2159/commits","review_comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2159/comments","review_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/{number}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2159/comments","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/f541d76fe3110fc0467816ce8540f902f68cdeec","head":{"label":"fnack:nhdp_prot","ref":"nhdp_prot","sha":"f541d76fe3110fc0467816ce8540f902f68cdeec","user":{"login":"fnack","id":830814,"avatar_url":"https://avatars.githubusercontent.com/u/830814?v=3","gravatar_id":"","url":"https://api.github.com/users/fnack","html_url":"https://github.com/fnack","followers_url":"https://api.github.com/users/fnack/followers","following_url":"https://api.github.com/users/fnack/following{/other_user}","gists_url":"https://api.github.com/users/fnack/gists{/gist_id}","starred_url":"https://api.github.com/users/fnack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnack/subscriptions","organizations_url":"https://api.github.com/users/fnack/orgs","repos_url":"https://api.github.com/users/fnack/repos","events_url":"https://api.github.com/users/fnack/events{/privacy}","received_events_url":"https://api.github.com/users/fnack/received_events","type":"User","site_admin":false},"repo":{"id":21584728,"name":"RIOT","full_name":"fnack/RIOT","owner":{"login":"fnack","id":830814,"avatar_url":"https://avatars.githubusercontent.com/u/830814?v=3","gravatar_id":"","url":"https://api.github.com/users/fnack","html_url":"https://github.com/fnack","followers_url":"https://api.github.com/users/fnack/followers","following_url":"https://api.github.com/users/fnack/following{/other_user}","gists_url":"https://api.github.com/users/fnack/gists{/gist_id}","starred_url":"https://api.github.com/users/fnack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnack/subscriptions","organizations_url":"https://api.github.com/users/fnack/orgs","repos_url":"https://api.github.com/users/fnack/repos","events_url":"https://api.github.com/users/fnack/events{/privacy}","received_events_url":"https://api.github.com/users/fnack/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fnack/RIOT","description":"RIOT -  The friendly OS for IoT","fork":true,"url":"https://api.github.com/repos/fnack/RIOT","forks_url":"https://api.github.com/repos/fnack/RIOT/forks","keys_url":"https://api.github.com/repos/fnack/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fnack/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fnack/RIOT/teams","hooks_url":"https://api.github.com/repos/fnack/RIOT/hooks","issue_events_url":"https://api.github.com/repos/fnack/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/fnack/RIOT/events","assignees_url":"https://api.github.com/repos/fnack/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/fnack/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/fnack/RIOT/tags","blobs_url":"https://api.github.com/repos/fnack/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fnack/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fnack/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/fnack/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fnack/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/fnack/RIOT/languages","stargazers_url":"https://api.github.com/repos/fnack/RIOT/stargazers","contributors_url":"https://api.github.com/repos/fnack/RIOT/contributors","subscribers_url":"https://api.github.com/repos/fnack/RIOT/subscribers","subscription_url":"https://api.github.com/repos/fnack/RIOT/subscription","commits_url":"https://api.github.com/repos/fnack/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/fnack/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/fnack/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/fnack/RIOT/issues/comments/{number}","contents_url":"https://api.github.com/repos/fnack/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/fnack/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fnack/RIOT/merges","archive_url":"https://api.github.com/repos/fnack/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fnack/RIOT/downloads","issues_url":"https://api.github.com/repos/fnack/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/fnack/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/fnack/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/fnack/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fnack/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/fnack/RIOT/releases{/id}","created_at":"2014-07-07T20:00:48Z","updated_at":"2015-01-13T08:03:32Z","pushed_at":"2015-01-13T10:35:39Z","git_url":"git://github.com/fnack/RIOT.git","ssh_url":"git@github.com:fnack/RIOT.git","clone_url":"https://github.com/fnack/RIOT.git","svn_url":"https://github.com/fnack/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":14517,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RIOT-OS:master","ref":"master","sha":"b435a488fa09da87524f1e32b997a21ecb375d6f","user":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"repo":{"id":7370241,"name":"RIOT","full_name":"RIOT-OS/RIOT","owner":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RIOT-OS/RIOT","description":"RIOT -  The friendly OS for IoT","fork":false,"url":"https://api.github.com/repos/RIOT-OS/RIOT","forks_url":"https://api.github.com/repos/RIOT-OS/RIOT/forks","keys_url":"https://api.github.com/repos/RIOT-OS/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RIOT-OS/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RIOT-OS/RIOT/teams","hooks_url":"https://api.github.com/repos/RIOT-OS/RIOT/hooks","issue_events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/events","assignees_url":"https://api.github.com/repos/RIOT-OS/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/RIOT-OS/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/tags","blobs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/RIOT-OS/RIOT/languages","stargazers_url":"https://api.github.com/repos/RIOT-OS/RIOT/stargazers","contributors_url":"https://api.github.com/repos/RIOT-OS/RIOT/contributors","subscribers_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscribers","subscription_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscription","commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments/{number}","contents_url":"https://api.github.com/repos/RIOT-OS/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/RIOT-OS/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RIOT-OS/RIOT/merges","archive_url":"https://api.github.com/repos/RIOT-OS/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RIOT-OS/RIOT/downloads","issues_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/RIOT-OS/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/RIOT-OS/RIOT/releases{/id}","created_at":"2012-12-29T20:38:40Z","updated_at":"2015-01-12T20:33:22Z","pushed_at":"2015-01-12T20:33:21Z","git_url":"git://github.com/RIOT-OS/RIOT.git","ssh_url":"git@github.com:RIOT-OS/RIOT.git","clone_url":"https://github.com/RIOT-OS/RIOT.git","svn_url":"https://github.com/RIOT-OS/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":80831,"stargazers_count":226,"watchers_count":226,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":194,"mirror_url":null,"open_issues_count":257,"forks":194,"open_issues":257,"watchers":226,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2159"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/2159"},"issue":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2159"},"comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2159/comments"},"review_comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2159/comments"},"review_comment":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2159/commits"},"statuses":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/f541d76fe3110fc0467816ce8540f902f68cdeec"}}}}