{"action":"created","issue":{"url":"https://api.github.com/repos/aboutsip/pkts/issues/85","repository_url":"https://api.github.com/repos/aboutsip/pkts","labels_url":"https://api.github.com/repos/aboutsip/pkts/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/aboutsip/pkts/issues/85/comments","events_url":"https://api.github.com/repos/aboutsip/pkts/issues/85/events","html_url":"https://github.com/aboutsip/pkts/issues/85","id":300046316,"number":85,"title":"IllegalArgumentException: Unknown header type","user":{"login":"enp","id":114859,"avatar_url":"https://avatars1.githubusercontent.com/u/114859?v=4","gravatar_id":"","url":"https://api.github.com/users/enp","html_url":"https://github.com/enp","followers_url":"https://api.github.com/users/enp/followers","following_url":"https://api.github.com/users/enp/following{/other_user}","gists_url":"https://api.github.com/users/enp/gists{/gist_id}","starred_url":"https://api.github.com/users/enp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enp/subscriptions","organizations_url":"https://api.github.com/users/enp/orgs","repos_url":"https://api.github.com/users/enp/repos","events_url":"https://api.github.com/users/enp/events{/privacy}","received_events_url":"https://api.github.com/users/enp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-25T17:54:08Z","updated_at":"2018-03-26T01:22:15Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI tried to read pcap file by this code:\r\n\r\n```\r\n#!/usr/bin/env groovy\r\n\r\n@Grab('io.pkts:pkts-core:3.+')\r\n\r\nimport io.pkts.Pcap\r\n\r\nPcap pcap = Pcap.openStream('/tmp/icmp.pcap')\r\n```\r\n\r\nand got error:\r\n\r\n```\r\nCaught: java.lang.IllegalArgumentException: Unknown header type\r\njava.lang.IllegalArgumentException: Unknown header type\r\n        at io.pkts.frame.PcapGlobalHeader.parse(PcapGlobalHeader.java:207)\r\n        at io.pkts.Pcap.openStream(Pcap.java:123)\r\n        at io.pkts.Pcap.openStream(Pcap.java:152)\r\n        at io.pkts.Pcap.openStream(Pcap.java:163)\r\n        at io.pkts.Pcap$openStream.call(Unknown Source)\r\n        at icmp.run(icmp.groovy:7)\r\n```\r\nFile is valid:\r\n\r\n```\r\n$ tshark -r /tmp/icmp.pcap \r\n    1   0.000000    127.0.0.1 → 127.0.0.1    ICMP 98 Echo (ping) request  id=0x55be, seq=1/256, ttl=64\r\n    2   0.000013    127.0.0.1 → 127.0.0.1    ICMP 98 Echo (ping) reply    id=0x55be, seq=1/256, ttl=64 (request in 1)\r\n```\r\nSo, why I can't read it?"},"comment":{"url":"https://api.github.com/repos/aboutsip/pkts/issues/comments/376020997","html_url":"https://github.com/aboutsip/pkts/issues/85#issuecomment-376020997","issue_url":"https://api.github.com/repos/aboutsip/pkts/issues/85","id":376020997,"user":{"login":"igaoliang","id":13004562,"avatar_url":"https://avatars2.githubusercontent.com/u/13004562?v=4","gravatar_id":"","url":"https://api.github.com/users/igaoliang","html_url":"https://github.com/igaoliang","followers_url":"https://api.github.com/users/igaoliang/followers","following_url":"https://api.github.com/users/igaoliang/following{/other_user}","gists_url":"https://api.github.com/users/igaoliang/gists{/gist_id}","starred_url":"https://api.github.com/users/igaoliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igaoliang/subscriptions","organizations_url":"https://api.github.com/users/igaoliang/orgs","repos_url":"https://api.github.com/users/igaoliang/repos","events_url":"https://api.github.com/users/igaoliang/events{/privacy}","received_events_url":"https://api.github.com/users/igaoliang/received_events","type":"User","site_admin":false},"created_at":"2018-03-26T01:22:15Z","updated_at":"2018-03-26T01:22:15Z","author_association":"NONE","body":"ok. my test case and the pcap file is here.\r\n\r\nhttp://note.youdao.com/noteshare?id=0a0f2dc01798d82a49e74e8b2afc84ce"}}
{"actor":{"display_login":"igaoliang"}}