kbandla / dpkt

fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols
Other
1.09k stars 271 forks source link

error---for ts,buf in pcap #496

Closed Mengpolar closed 3 years ago

Mengpolar commented 3 years ago

dpkt-1.9.4 python3.7.9 win10 parse error image the pcap data: image

kbandla commented 3 years ago

@lmj731 : would it be possible to share the pcap?

stryker2k2 commented 3 years ago

try this:

for idx,(ts, buf) in enumerate(pcap):

brifordwylie commented 3 years ago

Also it might be helpful to look at our example that handles truncated packets: https://github.com/kbandla/dpkt/blob/master/examples/print_dns_truncated.py

obormot commented 3 years ago

No follow up from the OP - closing. @lmj731 feel free to reopen if needed.