Closed enp closed 6 years ago
Hi,
Thanks for reporting. Could you send me the pcap you used? Send it to jonas@jonasborjesson.com
emmmm. the same problem .
Exception in thread "main" java.lang.IllegalArgumentException: Unknown header type at io.pkts.frame.PcapGlobalHeader.parse(PcapGlobalHeader.java:207) at io.pkts.Pcap.openStream(Pcap.java:123) at io.pkts.Pcap.openStream(Pcap.java:152) at io.pkts.Pcap.openStream(Pcap.java:163) at PcapTestKt.analysisPcap(PcapTest.kt:17) at PcapTestKt.main(PcapTest.kt:12)
Please send me a pcap that doesn't work so I can take a look at it. Certainly seems like you are using a newer format that I myself has, so far, no need for and as such there is no support for it. Also make sure that you didn't specify compression since I don't support that right now.
Pull requests are welcome!
ok. my test case and the pcap file is here.
http://note.youdao.com/noteshare?id=0a0f2dc01798d82a49e74e8b2afc84ce
Hi,
So the file you sent me is indeed in the next generation pcap (pcap-ng) format, which pkts.io do not support at this moment. Please ensure to save in the old pcap format. Issue 86 is tracking this so I'm closing this as a duplicate of that one.
thanks.
I also face the same issue Unknown header type I have sent the .pcap file to jonas@jonasborjesson.com That file a wireless capture it is in encrypted format. Will that be a problem
Hi,
I tried to read pcap file by this code:
and got error:
File is valid:
So, why I can't read it?