Open GoogleCodeExporter opened 9 years ago
[deleted comment]
Ok. Still seems to be a bug, but I mixed up the endianess. Radiotap is
little-endian, so it's the fact that dpkt.Packet.unpack uses big endian that
seems to be the problem.
Original comment by hso...@gmail.com
on 15 Apr 2013 at 1:49
Currently fixed by me (on r88 version) by adding the line:
__byte_order__ = "<"
at line 69 in radiotap.py
Original comment by hso...@gmail.com
on 15 Apr 2013 at 2:39
I have the same issue when using linux 3.16.4-200.fc20.x86_64 and pypcap.
using the following script:
import dpkt, pcap
pc = pcap.pcap('mon0')
while 1:
p = pc.next()
if pc.datalink() == 127:
ts, pkt = p
tap = dpkt.radiotap.Radiotap(pkt)
tap.data is always empty and tap.length is 4608.
Setting __byte_order__ in Radiotap fixes the issue for me. Please fix.
Original comment by dick.mar...@gmail.com
on 15 Oct 2014 at 6:28
Original issue reported on code.google.com by
hso...@gmail.com
on 15 Apr 2013 at 1:13