Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 106 by
hso...@gmail.com: Possible endianess problem in radiotap
header parsing (and others?)
http://code.google.com/p/dpkt/issues/detail?id=106
What steps will reproduce the problem?
1. Use dpkt to parse packets captures with pypcap using airmon-ng on a
wireless interface.
2. When using the radiotap.Radiotap class to parse the packet, the length
seems to be read incorrectly, using native byte order rather than network
order.
What is the expected output? What do you see instead?
Packet starts with 0x00 0x00 0x12 0x00, so packet length field should be 18
(0x0012), but instead is read as 4608 (0x1200).
What version of the product are you using? On what operating system?
dpkt version 1.7.
running on Ubuntu 13.04.
Please provide any additional information below.
Seems like the issue is in radiotap.py at line 75:
('length', 'H', 0),
which should read something like:
('length', '>H', 0),
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings