{"action":"created","comment":{"url":"https://api.github.com/repos/libpnet/libpnet/pulls/comments/66887553","id":66887553,"diff_hunk":"@@ -0,0 +1,125 @@\n+// Copyright (c) 2016 Robert Collins <robertc@robertcollins.net>\n+//\n+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or\n+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license\n+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your\n+// option. This file may not be copied, modified, or distributed\n+// except according to those terms.\n+\n+#[cfg(test)]\n+use packet::Packet;\n+\n+use packet::PrimitiveValues;\n+\n+use pnet_macros_support::types::*;\n+\n+/// GRE Packet.\n+///\n+/// Note that routing information from RFC 1701 is not implemented, packets\n+/// with routing_present true will have incorrect payload lengths.","path":"src/packet/gre.rs.in","position":null,"original_position":19,"commit_id":"f3c7d8761c019609534ac270d6b260e404e75aeb","original_commit_id":"e177b0d3ce1aabb7e1cbb06183988018ec0d793b","user":{"login":"rbtcollins","id":499678,"avatar_url":"https://avatars.githubusercontent.com/u/499678?v=3","gravatar_id":"","url":"https://api.github.com/users/rbtcollins","html_url":"https://github.com/rbtcollins","followers_url":"https://api.github.com/users/rbtcollins/followers","following_url":"https://api.github.com/users/rbtcollins/following{/other_user}","gists_url":"https://api.github.com/users/rbtcollins/gists{/gist_id}","starred_url":"https://api.github.com/users/rbtcollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbtcollins/subscriptions","organizations_url":"https://api.github.com/users/rbtcollins/orgs","repos_url":"https://api.github.com/users/rbtcollins/repos","events_url":"https://api.github.com/users/rbtcollins/events{/privacy}","received_events_url":"https://api.github.com/users/rbtcollins/received_events","type":"User","site_admin":false},"body":"I'll leave it as is for now then :).","created_at":"2016-06-13T23:35:16Z","updated_at":"2016-06-13T23:35:16Z","html_url":"https://github.com/libpnet/libpnet/pull/197#discussion_r66887553","pull_request_url":"https://api.github.com/repos/libpnet/libpnet/pulls/197","_links":{"self":{"href":"https://api.github.com/repos/libpnet/libpnet/pulls/comments/66887553"},"html":{"href":"https://github.com/libpnet/libpnet/pull/197#discussion_r66887553"},"pull_request":{"href":"https://api.github.com/repos/libpnet/libpnet/pulls/197"}}},"pull_request":{"url":"https://api.github.com/repos/libpnet/libpnet/pulls/197","id":73492805,"html_url":"https://github.com/libpnet/libpnet/pull/197","diff_url":"https://github.com/libpnet/libpnet/pull/197.diff","patch_url":"https://github.com/libpnet/libpnet/pull/197.patch","issue_url":"https://api.github.com/repos/libpnet/libpnet/issues/197","number":197,"state":"open","locked":false,"title":"Basic implementation of GRE packets.","user":{"login":"rbtcollins","id":499678,"avatar_url":"https://avatars.githubusercontent.com/u/499678?v=3","gravatar_id":"","url":"https://api.github.com/users/rbtcollins","html_url":"https://github.com/rbtcollins","followers_url":"https://api.github.com/users/rbtcollins/followers","following_url":"https://api.github.com/users/rbtcollins/following{/other_user}","gists_url":"https://api.github.com/users/rbtcollins/gists{/gist_id}","starred_url":"https://api.github.com/users/rbtcollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbtcollins/subscriptions","organizations_url":"https://api.github.com/users/rbtcollins/orgs","repos_url":"https://api.github.com/users/rbtcollins/repos","events_url":"https://api.github.com/users/rbtcollins/events{/privacy}","received_events_url":"https://api.github.com/users/rbtcollins/received_events","type":"User","site_admin":false},"body":"Its a little complex due to the optional fields.","created_at":"2016-06-12T10:22:39Z","updated_at":"2016-06-13T23:35:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d274d4e05d9cd03ba8bae3e82dcf64dbc1415750","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/libpnet/libpnet/pulls/197/commits","review_comments_url":"https://api.github.com/repos/libpnet/libpnet/pulls/197/comments","review_comment_url":"https://api.github.com/repos/libpnet/libpnet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/libpnet/libpnet/issues/197/comments","statuses_url":"https://api.github.com/repos/libpnet/libpnet/statuses/f3c7d8761c019609534ac270d6b260e404e75aeb","head":{"label":"rbtcollins:master","ref":"master","sha":"f3c7d8761c019609534ac270d6b260e404e75aeb","user":{"login":"rbtcollins","id":499678,"avatar_url":"https://avatars.githubusercontent.com/u/499678?v=3","gravatar_id":"","url":"https://api.github.com/users/rbtcollins","html_url":"https://github.com/rbtcollins","followers_url":"https://api.github.com/users/rbtcollins/followers","following_url":"https://api.github.com/users/rbtcollins/following{/other_user}","gists_url":"https://api.github.com/users/rbtcollins/gists{/gist_id}","starred_url":"https://api.github.com/users/rbtcollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbtcollins/subscriptions","organizations_url":"https://api.github.com/users/rbtcollins/orgs","repos_url":"https://api.github.com/users/rbtcollins/repos","events_url":"https://api.github.com/users/rbtcollins/events{/privacy}","received_events_url":"https://api.github.com/users/rbtcollins/received_events","type":"User","site_admin":false},"repo":{"id":60961092,"name":"libpnet","full_name":"rbtcollins/libpnet","owner":{"login":"rbtcollins","id":499678,"avatar_url":"https://avatars.githubusercontent.com/u/499678?v=3","gravatar_id":"","url":"https://api.github.com/users/rbtcollins","html_url":"https://github.com/rbtcollins","followers_url":"https://api.github.com/users/rbtcollins/followers","following_url":"https://api.github.com/users/rbtcollins/following{/other_user}","gists_url":"https://api.github.com/users/rbtcollins/gists{/gist_id}","starred_url":"https://api.github.com/users/rbtcollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbtcollins/subscriptions","organizations_url":"https://api.github.com/users/rbtcollins/orgs","repos_url":"https://api.github.com/users/rbtcollins/repos","events_url":"https://api.github.com/users/rbtcollins/events{/privacy}","received_events_url":"https://api.github.com/users/rbtcollins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rbtcollins/libpnet","description":"Cross-platform, low level networking using the Rust programming language.","fork":true,"url":"https://api.github.com/repos/rbtcollins/libpnet","forks_url":"https://api.github.com/repos/rbtcollins/libpnet/forks","keys_url":"https://api.github.com/repos/rbtcollins/libpnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rbtcollins/libpnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rbtcollins/libpnet/teams","hooks_url":"https://api.github.com/repos/rbtcollins/libpnet/hooks","issue_events_url":"https://api.github.com/repos/rbtcollins/libpnet/issues/events{/number}","events_url":"https://api.github.com/repos/rbtcollins/libpnet/events","assignees_url":"https://api.github.com/repos/rbtcollins/libpnet/assignees{/user}","branches_url":"https://api.github.com/repos/rbtcollins/libpnet/branches{/branch}","tags_url":"https://api.github.com/repos/rbtcollins/libpnet/tags","blobs_url":"https://api.github.com/repos/rbtcollins/libpnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rbtcollins/libpnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rbtcollins/libpnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/rbtcollins/libpnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rbtcollins/libpnet/statuses/{sha}","languages_url":"https://api.github.com/repos/rbtcollins/libpnet/languages","stargazers_url":"https://api.github.com/repos/rbtcollins/libpnet/stargazers","contributors_url":"https://api.github.com/repos/rbtcollins/libpnet/contributors","subscribers_url":"https://api.github.com/repos/rbtcollins/libpnet/subscribers","subscription_url":"https://api.github.com/repos/rbtcollins/libpnet/subscription","commits_url":"https://api.github.com/repos/rbtcollins/libpnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/rbtcollins/libpnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/rbtcollins/libpnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/rbtcollins/libpnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/rbtcollins/libpnet/contents/{+path}","compare_url":"https://api.github.com/repos/rbtcollins/libpnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rbtcollins/libpnet/merges","archive_url":"https://api.github.com/repos/rbtcollins/libpnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rbtcollins/libpnet/downloads","issues_url":"https://api.github.com/repos/rbtcollins/libpnet/issues{/number}","pulls_url":"https://api.github.com/repos/rbtcollins/libpnet/pulls{/number}","milestones_url":"https://api.github.com/repos/rbtcollins/libpnet/milestones{/number}","notifications_url":"https://api.github.com/repos/rbtcollins/libpnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rbtcollins/libpnet/labels{/name}","releases_url":"https://api.github.com/repos/rbtcollins/libpnet/releases{/id}","deployments_url":"https://api.github.com/repos/rbtcollins/libpnet/deployments","created_at":"2016-06-12T10:21:50Z","updated_at":"2016-06-12T10:21:52Z","pushed_at":"2016-06-12T16:46:29Z","git_url":"git://github.com/rbtcollins/libpnet.git","ssh_url":"git@github.com:rbtcollins/libpnet.git","clone_url":"https://github.com/rbtcollins/libpnet.git","svn_url":"https://github.com/rbtcollins/libpnet","homepage":"","size":623,"stargazers_count":0,"watchers_count":0,"language":"Rust","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":"libpnet:master","ref":"master","sha":"0b9272ab0efecff9eb91802b3da8cb4938df8630","user":{"login":"libpnet","id":8604237,"avatar_url":"https://avatars.githubusercontent.com/u/8604237?v=3","gravatar_id":"","url":"https://api.github.com/users/libpnet","html_url":"https://github.com/libpnet","followers_url":"https://api.github.com/users/libpnet/followers","following_url":"https://api.github.com/users/libpnet/following{/other_user}","gists_url":"https://api.github.com/users/libpnet/gists{/gist_id}","starred_url":"https://api.github.com/users/libpnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libpnet/subscriptions","organizations_url":"https://api.github.com/users/libpnet/orgs","repos_url":"https://api.github.com/users/libpnet/repos","events_url":"https://api.github.com/users/libpnet/events{/privacy}","received_events_url":"https://api.github.com/users/libpnet/received_events","type":"Organization","site_admin":false},"repo":{"id":23515627,"name":"libpnet","full_name":"libpnet/libpnet","owner":{"login":"libpnet","id":8604237,"avatar_url":"https://avatars.githubusercontent.com/u/8604237?v=3","gravatar_id":"","url":"https://api.github.com/users/libpnet","html_url":"https://github.com/libpnet","followers_url":"https://api.github.com/users/libpnet/followers","following_url":"https://api.github.com/users/libpnet/following{/other_user}","gists_url":"https://api.github.com/users/libpnet/gists{/gist_id}","starred_url":"https://api.github.com/users/libpnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libpnet/subscriptions","organizations_url":"https://api.github.com/users/libpnet/orgs","repos_url":"https://api.github.com/users/libpnet/repos","events_url":"https://api.github.com/users/libpnet/events{/privacy}","received_events_url":"https://api.github.com/users/libpnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/libpnet/libpnet","description":"Cross-platform, low level networking using the Rust programming language.","fork":false,"url":"https://api.github.com/repos/libpnet/libpnet","forks_url":"https://api.github.com/repos/libpnet/libpnet/forks","keys_url":"https://api.github.com/repos/libpnet/libpnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libpnet/libpnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libpnet/libpnet/teams","hooks_url":"https://api.github.com/repos/libpnet/libpnet/hooks","issue_events_url":"https://api.github.com/repos/libpnet/libpnet/issues/events{/number}","events_url":"https://api.github.com/repos/libpnet/libpnet/events","assignees_url":"https://api.github.com/repos/libpnet/libpnet/assignees{/user}","branches_url":"https://api.github.com/repos/libpnet/libpnet/branches{/branch}","tags_url":"https://api.github.com/repos/libpnet/libpnet/tags","blobs_url":"https://api.github.com/repos/libpnet/libpnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libpnet/libpnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libpnet/libpnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/libpnet/libpnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libpnet/libpnet/statuses/{sha}","languages_url":"https://api.github.com/repos/libpnet/libpnet/languages","stargazers_url":"https://api.github.com/repos/libpnet/libpnet/stargazers","contributors_url":"https://api.github.com/repos/libpnet/libpnet/contributors","subscribers_url":"https://api.github.com/repos/libpnet/libpnet/subscribers","subscription_url":"https://api.github.com/repos/libpnet/libpnet/subscription","commits_url":"https://api.github.com/repos/libpnet/libpnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/libpnet/libpnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/libpnet/libpnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/libpnet/libpnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/libpnet/libpnet/contents/{+path}","compare_url":"https://api.github.com/repos/libpnet/libpnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libpnet/libpnet/merges","archive_url":"https://api.github.com/repos/libpnet/libpnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libpnet/libpnet/downloads","issues_url":"https://api.github.com/repos/libpnet/libpnet/issues{/number}","pulls_url":"https://api.github.com/repos/libpnet/libpnet/pulls{/number}","milestones_url":"https://api.github.com/repos/libpnet/libpnet/milestones{/number}","notifications_url":"https://api.github.com/repos/libpnet/libpnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libpnet/libpnet/labels{/name}","releases_url":"https://api.github.com/repos/libpnet/libpnet/releases{/id}","deployments_url":"https://api.github.com/repos/libpnet/libpnet/deployments","created_at":"2014-08-31T14:44:47Z","updated_at":"2016-06-12T16:45:06Z","pushed_at":"2016-06-12T16:46:29Z","git_url":"git://github.com/libpnet/libpnet.git","ssh_url":"git@github.com:libpnet/libpnet.git","clone_url":"https://github.com/libpnet/libpnet.git","svn_url":"https://github.com/libpnet/libpnet","homepage":"","size":714,"stargazers_count":308,"watchers_count":308,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":39,"forks":54,"open_issues":39,"watchers":308,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/libpnet/libpnet/pulls/197"},"html":{"href":"https://github.com/libpnet/libpnet/pull/197"},"issue":{"href":"https://api.github.com/repos/libpnet/libpnet/issues/197"},"comments":{"href":"https://api.github.com/repos/libpnet/libpnet/issues/197/comments"},"review_comments":{"href":"https://api.github.com/repos/libpnet/libpnet/pulls/197/comments"},"review_comment":{"href":"https://api.github.com/repos/libpnet/libpnet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/libpnet/libpnet/pulls/197/commits"},"statuses":{"href":"https://api.github.com/repos/libpnet/libpnet/statuses/f3c7d8761c019609534ac270d6b260e404e75aeb"}}}}
{"actor":{"display_login":"rbtcollins"}}