Closed GoogleCodeExporter closed 9 years ago
OK, you must open file binary mode.
Test follow code.
f = open('small.pcap','rb')
pcap = dpkt.pcap.Reader(f)
for ts, buf in pcap:
print ts, len(buf)
Original comment by ruy.su...@gmail.com
on 13 Nov 2012 at 1:10
When opening a binary file on Windows, always use open() with 'rb'.
Original comment by kbandla@in2void.com
on 25 Dec 2014 at 7:05
Original issue reported on code.google.com by
SoCg...@gmail.com
on 18 Oct 2012 at 1:58Attachments: