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: P Laurent <laup_no@xxxxxxxx>
Date: Tue, 13 Jul 2004 14:47:40 +0200 (CEST)
Of course 0x0850 is 0000 1000 0101 0000 and 0x0208 is 0000 0010 0000 1000; but then I might not have be clear..
Because this does not correspond to the IEEE 802.11 standard protocolVersion/type/subtype/toDS/fromDS/....  For the first case for example, following the standard we should actually get
 0000 0101 0001 0000 no?
 
Any hint to read theses hexadecimal symbols so that the binary sequence matches the standard?
 
Thanks.
-Laurent


Jack Jackson <jack@xxxxxxxxxxxxxxx> wrote:
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.

_______________________________________________
Ethereal-users mailing list
Ethereal-users@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-users


Cr�ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Cr�ez votre Yahoo! Mail

Dialoguez en direct avec vos amis gr�ce � Yahoo! Messenger !