{"action":"created","comment":{"url":"https://api.github.com/repos/rtrlib/rtrlib/pulls/comments/59117376","id":59117376,"diff_hunk":"@@ -0,0 +1,106 @@\n+/*\n+ * This file is part of RTRlib.\n+ *\n+ * INET group, Hamburg University of Applied Sciences,\n+ * CST group, Freie Universitaet Berlin\n+ * Website: http://rpki.realmv6.org/\n+ */\n+\n+#include <stdlib.h>\n+#include <stdio.h>\n+#include <string.h>\n+#include <unistd.h>\n+#include \"rtrlib/rtrlib.h\"\n+\n+#define RPKI_CACHE_HOST \"141.22.28.222\"\n+#define RPKI_CACHE_POST \"8282\"\n+\n+typedef struct {\n+    char *pfx;\n+    int len;\n+    int asn;\n+    int val;\n+} test_validity_t;\n+\n+const test_validity_t queries[] = {\n+    {\"93.175.146.0\", 24, 12654, BGP_PFXV_STATE_VALID},      // valid\n+    {\"84.205.83.0\",  24, 12654, BGP_PFXV_STATE_NOT_FOUND},  // not found\n+    {\"93.175.147.0\", 24, 12654, BGP_PFXV_STATE_INVALID},    // invalid\n+    {NULL, 0, 0, 0}","path":"tests/test_live_validation.c","position":29,"original_position":29,"commit_id":"0be08449472e5a1e5d3f3be4b2f1e0ed13f19f19","original_commit_id":"0be08449472e5a1e5d3f3be4b2f1e0ed13f19f19","user":{"login":"waehlisch","id":1233788,"avatar_url":"https://avatars.githubusercontent.com/u/1233788?v=3","gravatar_id":"","url":"https://api.github.com/users/waehlisch","html_url":"https://github.com/waehlisch","followers_url":"https://api.github.com/users/waehlisch/followers","following_url":"https://api.github.com/users/waehlisch/following{/other_user}","gists_url":"https://api.github.com/users/waehlisch/gists{/gist_id}","starred_url":"https://api.github.com/users/waehlisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waehlisch/subscriptions","organizations_url":"https://api.github.com/users/waehlisch/orgs","repos_url":"https://api.github.com/users/waehlisch/repos","events_url":"https://api.github.com/users/waehlisch/events{/privacy}","received_events_url":"https://api.github.com/users/waehlisch/received_events","type":"User","site_admin":false},"body":"Include IPv6 prefixes.","created_at":"2016-04-09T16:19:38Z","updated_at":"2016-04-09T16:19:38Z","html_url":"https://github.com/rtrlib/rtrlib/pull/58#discussion_r59117376","pull_request_url":"https://api.github.com/repos/rtrlib/rtrlib/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/rtrlib/rtrlib/pulls/comments/59117376"},"html":{"href":"https://github.com/rtrlib/rtrlib/pull/58#discussion_r59117376"},"pull_request":{"href":"https://api.github.com/repos/rtrlib/rtrlib/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/rtrlib/rtrlib/pulls/58","id":65850544,"html_url":"https://github.com/rtrlib/rtrlib/pull/58","diff_url":"https://github.com/rtrlib/rtrlib/pull/58.diff","patch_url":"https://github.com/rtrlib/rtrlib/pull/58.patch","issue_url":"https://api.github.com/repos/rtrlib/rtrlib/issues/58","number":58,"state":"open","locked":false,"title":"travis with libssh and tests","user":{"login":"smlng","id":10532675,"avatar_url":"https://avatars.githubusercontent.com/u/10532675?v=3","gravatar_id":"","url":"https://api.github.com/users/smlng","html_url":"https://github.com/smlng","followers_url":"https://api.github.com/users/smlng/followers","following_url":"https://api.github.com/users/smlng/following{/other_user}","gists_url":"https://api.github.com/users/smlng/gists{/gist_id}","starred_url":"https://api.github.com/users/smlng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smlng/subscriptions","organizations_url":"https://api.github.com/users/smlng/orgs","repos_url":"https://api.github.com/users/smlng/repos","events_url":"https://api.github.com/users/smlng/events{/privacy}","received_events_url":"https://api.github.com/users/smlng/received_events","type":"User","site_admin":false},"body":"Extended travis configuration to build with libssh and run tests afterwards. It also adds a live validation tests. Note: test_pfx_locks is disabled for ```make test``` as it takes very long to complete.","created_at":"2016-04-08T21:33:53Z","updated_at":"2016-04-09T16:19:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5e205d117c4af653871456f8e40c835e20c6dca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rtrlib/rtrlib/pulls/58/commits","review_comments_url":"https://api.github.com/repos/rtrlib/rtrlib/pulls/58/comments","review_comment_url":"https://api.github.com/repos/rtrlib/rtrlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rtrlib/rtrlib/issues/58/comments","statuses_url":"https://api.github.com/repos/rtrlib/rtrlib/statuses/0be08449472e5a1e5d3f3be4b2f1e0ed13f19f19","head":{"label":"smlng:pr_travis","ref":"pr_travis","sha":"0be08449472e5a1e5d3f3be4b2f1e0ed13f19f19","user":{"login":"smlng","id":10532675,"avatar_url":"https://avatars.githubusercontent.com/u/10532675?v=3","gravatar_id":"","url":"https://api.github.com/users/smlng","html_url":"https://github.com/smlng","followers_url":"https://api.github.com/users/smlng/followers","following_url":"https://api.github.com/users/smlng/following{/other_user}","gists_url":"https://api.github.com/users/smlng/gists{/gist_id}","starred_url":"https://api.github.com/users/smlng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smlng/subscriptions","organizations_url":"https://api.github.com/users/smlng/orgs","repos_url":"https://api.github.com/users/smlng/repos","events_url":"https://api.github.com/users/smlng/events{/privacy}","received_events_url":"https://api.github.com/users/smlng/received_events","type":"User","site_admin":false},"repo":{"id":55630383,"name":"rtrlib","full_name":"smlng/rtrlib","owner":{"login":"smlng","id":10532675,"avatar_url":"https://avatars.githubusercontent.com/u/10532675?v=3","gravatar_id":"","url":"https://api.github.com/users/smlng","html_url":"https://github.com/smlng","followers_url":"https://api.github.com/users/smlng/followers","following_url":"https://api.github.com/users/smlng/following{/other_user}","gists_url":"https://api.github.com/users/smlng/gists{/gist_id}","starred_url":"https://api.github.com/users/smlng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smlng/subscriptions","organizations_url":"https://api.github.com/users/smlng/orgs","repos_url":"https://api.github.com/users/smlng/repos","events_url":"https://api.github.com/users/smlng/events{/privacy}","received_events_url":"https://api.github.com/users/smlng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smlng/rtrlib","description":"An open-source C implementation of the RPKI/Router Protocol client","fork":true,"url":"https://api.github.com/repos/smlng/rtrlib","forks_url":"https://api.github.com/repos/smlng/rtrlib/forks","keys_url":"https://api.github.com/repos/smlng/rtrlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smlng/rtrlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smlng/rtrlib/teams","hooks_url":"https://api.github.com/repos/smlng/rtrlib/hooks","issue_events_url":"https://api.github.com/repos/smlng/rtrlib/issues/events{/number}","events_url":"https://api.github.com/repos/smlng/rtrlib/events","assignees_url":"https://api.github.com/repos/smlng/rtrlib/assignees{/user}","branches_url":"https://api.github.com/repos/smlng/rtrlib/branches{/branch}","tags_url":"https://api.github.com/repos/smlng/rtrlib/tags","blobs_url":"https://api.github.com/repos/smlng/rtrlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smlng/rtrlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smlng/rtrlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/smlng/rtrlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smlng/rtrlib/statuses/{sha}","languages_url":"https://api.github.com/repos/smlng/rtrlib/languages","stargazers_url":"https://api.github.com/repos/smlng/rtrlib/stargazers","contributors_url":"https://api.github.com/repos/smlng/rtrlib/contributors","subscribers_url":"https://api.github.com/repos/smlng/rtrlib/subscribers","subscription_url":"https://api.github.com/repos/smlng/rtrlib/subscription","commits_url":"https://api.github.com/repos/smlng/rtrlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/smlng/rtrlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/smlng/rtrlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/smlng/rtrlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/smlng/rtrlib/contents/{+path}","compare_url":"https://api.github.com/repos/smlng/rtrlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smlng/rtrlib/merges","archive_url":"https://api.github.com/repos/smlng/rtrlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smlng/rtrlib/downloads","issues_url":"https://api.github.com/repos/smlng/rtrlib/issues{/number}","pulls_url":"https://api.github.com/repos/smlng/rtrlib/pulls{/number}","milestones_url":"https://api.github.com/repos/smlng/rtrlib/milestones{/number}","notifications_url":"https://api.github.com/repos/smlng/rtrlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smlng/rtrlib/labels{/name}","releases_url":"https://api.github.com/repos/smlng/rtrlib/releases{/id}","deployments_url":"https://api.github.com/repos/smlng/rtrlib/deployments","created_at":"2016-04-06T18:21:13Z","updated_at":"2016-04-08T12:45:39Z","pushed_at":"2016-04-08T21:35:14Z","git_url":"git://github.com/smlng/rtrlib.git","ssh_url":"git@github.com:smlng/rtrlib.git","clone_url":"https://github.com/smlng/rtrlib.git","svn_url":"https://github.com/smlng/rtrlib","homepage":"http://rtrlib.realmv6.org/","size":4153,"stargazers_count":0,"watchers_count":0,"language":"Assembly","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"rtrlib:master","ref":"master","sha":"b3cca33fc052e4858d7f877bf1b13658d436293a","user":{"login":"rtrlib","id":4687446,"avatar_url":"https://avatars.githubusercontent.com/u/4687446?v=3","gravatar_id":"","url":"https://api.github.com/users/rtrlib","html_url":"https://github.com/rtrlib","followers_url":"https://api.github.com/users/rtrlib/followers","following_url":"https://api.github.com/users/rtrlib/following{/other_user}","gists_url":"https://api.github.com/users/rtrlib/gists{/gist_id}","starred_url":"https://api.github.com/users/rtrlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtrlib/subscriptions","organizations_url":"https://api.github.com/users/rtrlib/orgs","repos_url":"https://api.github.com/users/rtrlib/repos","events_url":"https://api.github.com/users/rtrlib/events{/privacy}","received_events_url":"https://api.github.com/users/rtrlib/received_events","type":"Organization","site_admin":false},"repo":{"id":10666282,"name":"rtrlib","full_name":"rtrlib/rtrlib","owner":{"login":"rtrlib","id":4687446,"avatar_url":"https://avatars.githubusercontent.com/u/4687446?v=3","gravatar_id":"","url":"https://api.github.com/users/rtrlib","html_url":"https://github.com/rtrlib","followers_url":"https://api.github.com/users/rtrlib/followers","following_url":"https://api.github.com/users/rtrlib/following{/other_user}","gists_url":"https://api.github.com/users/rtrlib/gists{/gist_id}","starred_url":"https://api.github.com/users/rtrlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtrlib/subscriptions","organizations_url":"https://api.github.com/users/rtrlib/orgs","repos_url":"https://api.github.com/users/rtrlib/repos","events_url":"https://api.github.com/users/rtrlib/events{/privacy}","received_events_url":"https://api.github.com/users/rtrlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rtrlib/rtrlib","description":"An open-source C implementation of the RPKI/Router Protocol client","fork":false,"url":"https://api.github.com/repos/rtrlib/rtrlib","forks_url":"https://api.github.com/repos/rtrlib/rtrlib/forks","keys_url":"https://api.github.com/repos/rtrlib/rtrlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rtrlib/rtrlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rtrlib/rtrlib/teams","hooks_url":"https://api.github.com/repos/rtrlib/rtrlib/hooks","issue_events_url":"https://api.github.com/repos/rtrlib/rtrlib/issues/events{/number}","events_url":"https://api.github.com/repos/rtrlib/rtrlib/events","assignees_url":"https://api.github.com/repos/rtrlib/rtrlib/assignees{/user}","branches_url":"https://api.github.com/repos/rtrlib/rtrlib/branches{/branch}","tags_url":"https://api.github.com/repos/rtrlib/rtrlib/tags","blobs_url":"https://api.github.com/repos/rtrlib/rtrlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rtrlib/rtrlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rtrlib/rtrlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/rtrlib/rtrlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rtrlib/rtrlib/statuses/{sha}","languages_url":"https://api.github.com/repos/rtrlib/rtrlib/languages","stargazers_url":"https://api.github.com/repos/rtrlib/rtrlib/stargazers","contributors_url":"https://api.github.com/repos/rtrlib/rtrlib/contributors","subscribers_url":"https://api.github.com/repos/rtrlib/rtrlib/subscribers","subscription_url":"https://api.github.com/repos/rtrlib/rtrlib/subscription","commits_url":"https://api.github.com/repos/rtrlib/rtrlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/rtrlib/rtrlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/rtrlib/rtrlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/rtrlib/rtrlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/rtrlib/rtrlib/contents/{+path}","compare_url":"https://api.github.com/repos/rtrlib/rtrlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rtrlib/rtrlib/merges","archive_url":"https://api.github.com/repos/rtrlib/rtrlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rtrlib/rtrlib/downloads","issues_url":"https://api.github.com/repos/rtrlib/rtrlib/issues{/number}","pulls_url":"https://api.github.com/repos/rtrlib/rtrlib/pulls{/number}","milestones_url":"https://api.github.com/repos/rtrlib/rtrlib/milestones{/number}","notifications_url":"https://api.github.com/repos/rtrlib/rtrlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rtrlib/rtrlib/labels{/name}","releases_url":"https://api.github.com/repos/rtrlib/rtrlib/releases{/id}","deployments_url":"https://api.github.com/repos/rtrlib/rtrlib/deployments","created_at":"2013-06-13T13:07:08Z","updated_at":"2016-04-07T03:39:07Z","pushed_at":"2016-04-09T16:01:52Z","git_url":"git://github.com/rtrlib/rtrlib.git","ssh_url":"git@github.com:rtrlib/rtrlib.git","clone_url":"https://github.com/rtrlib/rtrlib.git","svn_url":"https://github.com/rtrlib/rtrlib","homepage":"http://rtrlib.realmv6.org/","size":4460,"stargazers_count":9,"watchers_count":9,"language":"Assembly","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":11,"forks":10,"open_issues":11,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rtrlib/rtrlib/pulls/58"},"html":{"href":"https://github.com/rtrlib/rtrlib/pull/58"},"issue":{"href":"https://api.github.com/repos/rtrlib/rtrlib/issues/58"},"comments":{"href":"https://api.github.com/repos/rtrlib/rtrlib/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/rtrlib/rtrlib/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/rtrlib/rtrlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rtrlib/rtrlib/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/rtrlib/rtrlib/statuses/0be08449472e5a1e5d3f3be4b2f1e0ed13f19f19"}}}}