{"action":"created","comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/27214346","id":27214346,"diff_hunk":"@@ -0,0 +1,230 @@\n+/*\n+ * Copyright (C) 2015 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     net_ng_udp\n+ * @{\n+ *\n+ * @file\n+ * @brief       UDP implementation\n+ *\n+ * @author      Hauke Petersen <hauke.petersen@fu-berlin.de>\n+ * @}\n+ */\n+\n+#include <stdint.h>\n+#include <errno.h>\n+\n+#include \"kernel.h\"\n+#include \"byteorder.h\"\n+#include \"msg.h\"\n+#include \"thread.h\"\n+#include \"net/ng_udp.h\"\n+#include \"net/ng_netbase.h\"\n+\n+#define ENABLE_DEBUG    (0)\n+#include \"debug.h\"\n+\n+/**\n+ * @brief   Save the UDP's thread PID for later reference\n+ */\n+static kernel_pid_t _pid = KERNEL_PID_UNDEF;\n+\n+/**\n+ * @brief   Allocate memory for the UDP thread's stack\n+ */\n+static char _stack[NG_UDP_STACK_SIZE];\n+\n+/**\n+ * @brief   Calculate the UDP checksum dependent on the network protocol\n+ *\n+ * @note    If the checksum turns out to be 0x0000, the function returns 0xffff\n+ *          as specified in RFC768\n+ *\n+ * @param[in] pkt           pointer to the packet in the packet buffer\n+ * @param[in] pseudo_hdr    pointer to the network layer header\n+ * @param[in] payload       pointer to the payload\n+ *\n+ * @return                  the checksum of the pkt\n+ * @return                  0 on error\n+ */\n+uint16_t _calc_csum(ng_pktsnip_t *hdr, ng_pktsnip_t *pseudo_hdr,\n+                    ng_pktsnip_t *payload)\n+{\n+    switch (pseudo_hdr->type) {\n+#ifdef MODULE_NG_IPV6\n+        case NG_NETTYPE_IPV6:\n+            return _calc_csum_ipv6(hdr, pseudo_hdr, payload);\n+#endif\n+        default:\n+            return -ENOENT;\n+    }\n+}\n+\n+uint16_t _calc_csum_ipv6(ng_pktsnip_t *udp, ng_pktsnip_t *ip,\n+                         ng_pktsnip_t *payload)\n+{\n+    uint16_t csum = 0;\n+\n+    /* process the payload */\n+    for (int i = 0; i < (payload->size / 2); i++) {\n+        csum ^= ((uint16_t *)(payload->data))[i];\n+    }\n+    if (payload->size & 1) {\n+        csum ^= ((uint16_t)((uint8_t *)(payload->data))[payload->size - 1]) << 8;\n+    }\n+    /* process applicable UDP header bytes */\n+    csum ^= ((uint16_t *)(udp->data))[0];\n+    csum ^= ((uint16_t *)(udp->data))[1];\n+    csum ^= ((uint16_t *)(udp->data))[2];\n+    /* process ipv6 pseudo header */\n+    for (int i = 0; i < 20; i++) {\n+        csum ^= ((uint16_t *)(ip->data))[i];\n+    }\n+    /* invert checksum if 0 */\n+    if (csum == 0) {\n+        return 0xffff;\n+    }\n+    return csum;\n+}\n+\n+void _receive(ng_pktsnip_t *pkt)\n+{\n+    ng_pktsnip_t *udp;\n+    ng_udp_hdr_t *hdr;\n+    uint16_t csum;\n+    uint32_t port;\n+    ng_netreg_entry_t *sendto;\n+\n+    /* mark UDP header */\n+    pkt = ng_pktbuf_start_write(pkt);\n+    if (pkt == NULL) {\n+        DEBUG(\"udp: unable to get write access to packet\\n\");\n+        return;\n+    }\n+    udp = ng_pktbuf_add(pkt, pkt->data, NG_UDP_HDR_LENGTH, NG_NETTYPE_UNDEF);\n+    if (udp == NULL) {\n+        DEBUG(\"udp: error marking UDP header, dropping packet\\n\");\n+        ng_pktbuf_release(pkt);\n+        return;\n+    }\n+    hdr = (ng_udp_hdr_t *)udp->data;\n+\n+    /* validate checksum */\n+    csum = _calc_csum(udp, udp->next, pkt);\n+    if (hdr->checksum != csum) {\n+        DEBUG(\"udp: received packet with invalid checksum, dropping it\\n\");\n+        ng_pktbuf_release(pkt);\n+        return;\n+    }\n+\n+    /* get port (netreg demux context) */\n+    port = (uint32_t)NTOHS(hdr->dst_port);\n+\n+    /* send payload to receivers */\n+    sendto = ng_netreg_lookup(NG_NETTYPE_UDP, port);\n+    if (sendto == NULL) {\n+        DEBUG(\"udp: unable to forward packet as no one is interested in it\\n\");\n+        ng_pktbuf_release(pkt);\n+        return;\n+    }\n+    ng_pktbuf_hold(pkt, ng_netreg_num(NG_NETTYPE_UDP, port) - 1);\n+    while (sendto != NULL) {\n+        ng_netapi_receive(sendto->pid, pkt);\n+        sendto = ng_netreg_getnext(sendto);\n+    }\n+}\n+\n+void _send(ng_pktsnip_t *pkt)\n+{\n+    ng_udp_hdr_t *hdr;\n+    ng_netreg_entry_t *sendto;\n+\n+    /* get udp snip and hdr */\n+    hdr = (ng_udp_hdr_t *)pkt->next->data;\n+    /* fill in size field */\n+    hdr->length = HTONS(pkt->next->next->size + NG_UDP_HDR_LENGTH);\n+\n+    /* and forward packet to the network layer */\n+    sendto = ng_netreg_lookup(pkt->type, NG_NETREG_DEMUX_CTX_ALL);\n+    /* throw away packet if no one is interested */\n+    if (sendto == NULL) {\n+        DEBUG(\"udp: cannot send packet because network layer not found\\n\");\n+        ng_pktbuf_release(pkt);\n+        return;\n+    }\n+    /* send packet to network layer */\n+    ng_pktbuf_hold(pkt, ng_netreg_num(pkt->type, NG_NETREG_DEMUX_CTX_ALL) - 1);\n+    while (sendto != NULL) {\n+        ng_netapi_send(sendto->pid, pkt);\n+        sendto = ng_netreg_getnext(sendto);\n+    }\n+}\n+\n+void *_event_loop(void *arg)\n+{\n+    (void)arg;\n+    msg_t msg;\n+    msg_t msg_queue[NG_UDP_MSG_QUEUE_SIZE];\n+\n+    /* initialize message queue */\n+    msg_init_queue(msg_queue, NG_UDP_MSG_QUEUE_SIZE);\n+\n+    /* dispatch NETAPI messages */\n+    while (1) {\n+        msg_receive(&msg);\n+        switch (msg.type) {\n+            case NG_NETAPI_MSG_TYPE_RCV:\n+                DEBUG(\"udp: NG_NETAPI_MSG_TYPE_RCV\\n\");\n+                _receive((ng_pktsnip_t *)msg.content.ptr);\n+                break;\n+            case NG_NETAPI_MSG_TYPE_SND:\n+                DEBUG(\"udp: NG_NETAPI_MSG_TYPE_SND\\n\");\n+                _send((ng_pktsnip_t *)msg.content.ptr);\n+                break;\n+            default:\n+                DEBUG(\"udp: received unidentified message\\n\");\n+                break;\n+        }\n+    }\n+\n+    /* never reached */\n+    return NULL;\n+}\n+\n+int ng_udp_calculate_csum(ng_pktsnip_t *hdr)\n+{\n+    uint16_t csum;\n+    ng_udp_hdr_t *udp;\n+\n+    if (hdr == NULL || hdr->next == NULL) {\n+        return -EFAULT;\n+    }\n+    if (hdr->type != NG_NETTYPE_UDP) {\n+        return -EBADMSG;","path":"sys/net/transport_layer/ng_udp/ng_udp.c","position":215,"original_position":209,"commit_id":"274110fe0e74a535136619bb3f8785a5bb176840","original_commit_id":"b44b0d260dd3310264c8a26351f880b6d41fe06d","user":{"login":"haukepetersen","id":620834,"avatar_url":"https://avatars.githubusercontent.com/u/620834?v=3","gravatar_id":"","url":"https://api.github.com/users/haukepetersen","html_url":"https://github.com/haukepetersen","followers_url":"https://api.github.com/users/haukepetersen/followers","following_url":"https://api.github.com/users/haukepetersen/following{/other_user}","gists_url":"https://api.github.com/users/haukepetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/haukepetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haukepetersen/subscriptions","organizations_url":"https://api.github.com/users/haukepetersen/orgs","repos_url":"https://api.github.com/users/haukepetersen/repos","events_url":"https://api.github.com/users/haukepetersen/events{/privacy}","received_events_url":"https://api.github.com/users/haukepetersen/received_events","type":"User","site_admin":false},"body":"should be ok now.","created_at":"2015-03-26T14:00:41Z","updated_at":"2015-03-26T14:00:41Z","html_url":"https://github.com/RIOT-OS/RIOT/pull/2430#discussion_r27214346","pull_request_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2430","_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/27214346"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/2430#discussion_r27214346"},"pull_request":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2430"}}},"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2430","id":29051195,"html_url":"https://github.com/RIOT-OS/RIOT/pull/2430","diff_url":"https://github.com/RIOT-OS/RIOT/pull/2430.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/2430.patch","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2430","number":2430,"state":"open","locked":false,"title":"net: added ng_udp implementation","user":{"login":"haukepetersen","id":620834,"avatar_url":"https://avatars.githubusercontent.com/u/620834?v=3","gravatar_id":"","url":"https://api.github.com/users/haukepetersen","html_url":"https://github.com/haukepetersen","followers_url":"https://api.github.com/users/haukepetersen/followers","following_url":"https://api.github.com/users/haukepetersen/following{/other_user}","gists_url":"https://api.github.com/users/haukepetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/haukepetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haukepetersen/subscriptions","organizations_url":"https://api.github.com/users/haukepetersen/orgs","repos_url":"https://api.github.com/users/haukepetersen/repos","events_url":"https://api.github.com/users/haukepetersen/events{/privacy}","received_events_url":"https://api.github.com/users/haukepetersen/received_events","type":"User","site_admin":false},"body":"this PR depends on many other `ng_` PRs, will detail them out once this PR gets in a state of being testable/reviewable. I will try to provide a first approach for a socket implementation to make this code better understandable.\r\n\r\nWhile writing this code, I came across some issues we should think about:\r\n ~~1. how do we handle the checksum calculation when sending data and the src address is still unknown?~~\r\n ~~2. where do we get the source port from, if not using sockets but talking directly to UDP via NETAPI?~~\r\n\r\nUPDATE: This implementation is now ready for testing","created_at":"2015-02-10T22:26:08Z","updated_at":"2015-03-26T14:00:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05501dfccc9904b15b0ac79a037780945139d7c7","assignee":{"login":"authmillenon","id":675644,"avatar_url":"https://avatars.githubusercontent.com/u/675644?v=3","gravatar_id":"","url":"https://api.github.com/users/authmillenon","html_url":"https://github.com/authmillenon","followers_url":"https://api.github.com/users/authmillenon/followers","following_url":"https://api.github.com/users/authmillenon/following{/other_user}","gists_url":"https://api.github.com/users/authmillenon/gists{/gist_id}","starred_url":"https://api.github.com/users/authmillenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/authmillenon/subscriptions","organizations_url":"https://api.github.com/users/authmillenon/orgs","repos_url":"https://api.github.com/users/authmillenon/repos","events_url":"https://api.github.com/users/authmillenon/events{/privacy}","received_events_url":"https://api.github.com/users/authmillenon/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/11","html_url":"https://github.com/RIOT-OS/RIOT/milestones/Network%20Stack%20Task%20Force","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/11/labels","id":968921,"number":11,"title":"Network Stack Task Force","description":"The goal of this milestone is to implement the redesign of the network stack.\r\n\r\nTodo list at #2278.","creator":{"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},"open_issues":24,"closed_issues":41,"state":"open","created_at":"2015-02-06T16:04:53Z","updated_at":"2015-03-26T09:33:07Z","due_on":"2015-04-07T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2430/commits","review_comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2430/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/2430/comments","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/274110fe0e74a535136619bb3f8785a5bb176840","head":{"label":"haukepetersen:ng_udp","ref":"ng_udp","sha":"274110fe0e74a535136619bb3f8785a5bb176840","user":{"login":"haukepetersen","id":620834,"avatar_url":"https://avatars.githubusercontent.com/u/620834?v=3","gravatar_id":"","url":"https://api.github.com/users/haukepetersen","html_url":"https://github.com/haukepetersen","followers_url":"https://api.github.com/users/haukepetersen/followers","following_url":"https://api.github.com/users/haukepetersen/following{/other_user}","gists_url":"https://api.github.com/users/haukepetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/haukepetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haukepetersen/subscriptions","organizations_url":"https://api.github.com/users/haukepetersen/orgs","repos_url":"https://api.github.com/users/haukepetersen/repos","events_url":"https://api.github.com/users/haukepetersen/events{/privacy}","received_events_url":"https://api.github.com/users/haukepetersen/received_events","type":"User","site_admin":false},"repo":{"id":13741766,"name":"RIOT","full_name":"haukepetersen/RIOT","owner":{"login":"haukepetersen","id":620834,"avatar_url":"https://avatars.githubusercontent.com/u/620834?v=3","gravatar_id":"","url":"https://api.github.com/users/haukepetersen","html_url":"https://github.com/haukepetersen","followers_url":"https://api.github.com/users/haukepetersen/followers","following_url":"https://api.github.com/users/haukepetersen/following{/other_user}","gists_url":"https://api.github.com/users/haukepetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/haukepetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haukepetersen/subscriptions","organizations_url":"https://api.github.com/users/haukepetersen/orgs","repos_url":"https://api.github.com/users/haukepetersen/repos","events_url":"https://api.github.com/users/haukepetersen/events{/privacy}","received_events_url":"https://api.github.com/users/haukepetersen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haukepetersen/RIOT","description":"RIOT OS -  The revolutionary IoT OS","fork":true,"url":"https://api.github.com/repos/haukepetersen/RIOT","forks_url":"https://api.github.com/repos/haukepetersen/RIOT/forks","keys_url":"https://api.github.com/repos/haukepetersen/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haukepetersen/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haukepetersen/RIOT/teams","hooks_url":"https://api.github.com/repos/haukepetersen/RIOT/hooks","issue_events_url":"https://api.github.com/repos/haukepetersen/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/haukepetersen/RIOT/events","assignees_url":"https://api.github.com/repos/haukepetersen/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/haukepetersen/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/haukepetersen/RIOT/tags","blobs_url":"https://api.github.com/repos/haukepetersen/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haukepetersen/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haukepetersen/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/haukepetersen/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haukepetersen/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/haukepetersen/RIOT/languages","stargazers_url":"https://api.github.com/repos/haukepetersen/RIOT/stargazers","contributors_url":"https://api.github.com/repos/haukepetersen/RIOT/contributors","subscribers_url":"https://api.github.com/repos/haukepetersen/RIOT/subscribers","subscription_url":"https://api.github.com/repos/haukepetersen/RIOT/subscription","commits_url":"https://api.github.com/repos/haukepetersen/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/haukepetersen/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/haukepetersen/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/haukepetersen/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/haukepetersen/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/haukepetersen/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haukepetersen/RIOT/merges","archive_url":"https://api.github.com/repos/haukepetersen/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haukepetersen/RIOT/downloads","issues_url":"https://api.github.com/repos/haukepetersen/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/haukepetersen/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/haukepetersen/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/haukepetersen/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haukepetersen/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/haukepetersen/RIOT/releases{/id}","created_at":"2013-10-21T12:31:38Z","updated_at":"2015-03-02T09:15:38Z","pushed_at":"2015-03-26T13:54:21Z","git_url":"git://github.com/haukepetersen/RIOT.git","ssh_url":"git@github.com:haukepetersen/RIOT.git","clone_url":"https://github.com/haukepetersen/RIOT.git","svn_url":"https://github.com/haukepetersen/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":17810,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RIOT-OS:master","ref":"master","sha":"a5cf137cc4bf70dba5b697ca644e69f4390ec5ed","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-03-26T12:45:15Z","pushed_at":"2015-03-26T13:54:22Z","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":90421,"stargazers_count":304,"watchers_count":304,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":249,"mirror_url":null,"open_issues_count":323,"forks":249,"open_issues":323,"watchers":304,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2430"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/2430"},"issue":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2430"},"comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2430/comments"},"review_comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2430/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/2430/commits"},"statuses":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/274110fe0e74a535136619bb3f8785a5bb176840"}}}}