Re: Fields alignment when extended mask is present
Johannes Berg <[email protected]>
| Newsgroups | org.netbsd.radiotap |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 2011-02-20 at 11:55 +0100, Roberto Riggio wrote: > Hi, > > I'm generating a radio tap header with extended mask in order to > specify a multi rate retry chain. In the first mask i have 4 fields > each of them 8 bits long, so no padding problem. > > In the second, third and forth mask I have only the rate and the retries > fields should I use padding between one mask and the next: > > rate_1 (8) > retry_1 (8) > pad (8) > pad (8) > rate_2 (8) > retry_2 (8) > pad (8) > pad (8) > > or insted: > > 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. johannes