Ethereal-users: Re: [Ethereal-users] IEEE 802.11 header conversion hexadecimal - binary (frame c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jack Jackson <jack@xxxxxxxxxxxxxxx>
Date: Mon, 12 Jul 2004 10:11:38 -0700
At 01:28 AM 7/12/2004, P Laurent wrote:
Hi
I cannot find how to read the hexadecimal symbols
given by ethereal (0.10.x)to  get the binary version
of the 2 byte frame control field of the header.
For example:
for a retransmitted probe response frame, I get
:0x0850 which should be read 0580 (with LSB first for
the 8, and MSB first for the 5) to get: 0000 0101 0001
0000

No. 0x0850 is 0000 1000 0101 0000.
If you reverse the bytes it is 0101 0000 0000 1000.

but for a data frame , I get : 0x0208 which I guess
should be read 2080 (with always MSB first) to get
0010 0000 1000 0000 (even if when reading like this I
get the flag toDS whereas ethereal indicates that it
should be fromDS...)

0x0208 is 0000 0010 0000 1000, or 0000 1000 000 0010 with the bytes reversed.