Re: Fields alignment when extended mask is present

Johannes Berg <[email protected]>
Newsgroups org.netbsd.radiotap
Message-ID <[email protected]>
On Mon, 2011-02-21 at 10:47 +0100, Roberto Riggio wrote:

> >> rate_1 (8)
> >> retry _1 (8)
> >> rate_2 (8)
> >> retry _2 (8)
> > What's with the "(8)"? Generally, anything in the data portion of
> > radiotap needs to be padded to the right position.
> (8) was the field length. in the example above i;ve repoted
> two different radiotap headers where i specify twice the rate
> and the retries field.
> 
> of course i know that in this case i will have to put to it-present
> bitmasks and i will have to set the bit 31 of the first bitmask to 1.
> 
> what i'm not sure is if i have to pad the first "block" to the word
> boundary or not.

I still don't get it. If the field length is 8 bits (1 byte) you don't
need any alignment anyway.

johannes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.