Re: Sample parser for radiotap header

Johannes Berg <[email protected]>
Newsgroups org.netbsd.radiotap
Message-ID <[email protected]>
On Fri, 2011-02-25 at 19:36 +0100, Roberto Riggio wrote:

> Is this supposed to know about extended present bitmask? I'm creating
> a packet with four chained present bitmask in order to specify a MRR
> chain.
> 
> The problem is that when I'm trying to parse the header with the lib
> only the first "block" is parsed. In fact when I use the function:
> 
> ieee80211_radiotap_iterator_next
> 
> I get ENOENT as return code when the bit 31 is reached. Same result
> i I try to pass this packet to the linux kernel where the iterator
> implementation is the same.

You must be doing something wrong then, it is definitely parsing such
radiotap headers, hopefully correctly. There are examples in the check/
directory for it, e.g. 00.bin:
00000000  00 00 20 00 01 00 00 a0  01 00 00 00 00 00 00 00 
00000010  11 22 33 44 55 66 77 88  aa bb cc dd ee ff 00 11

is a radiotap header with two TSFT fields. I think you most likely
forgot to reset the namespace.

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.