Re: Handling RADIOTAP_EXT

Roberto Riggio <roberto.riggio-2TmCWn7/[email protected]> Wed, 07 Mar 2012 09:20:06 +0100
Newsgroups org.netbsd.radiotap
Message-ID <[email protected]>
On 03/07/2012 09:10 AM, Johannes Berg wrote:
> Can you elaborate what you mean? Do you want to keep something while
> using the library?

Let's assume that I'm the the following situation:

---
RATE (1) 54 Mbps
COUNT (1) 3
---
RATE (2) 18 Mbps
COUNT (2) 3
---
RATE (3) 6 Mbps
COUNT (3) 3
---

When I'm iterating over the header I could keep track of the namespace 
by incrementing an index after I have found the RETRIES field. This will 
work because the RETRIES field is always after the RATE field so my 
index is consistent.

On the other hand, if in the header MCS and RETRIES the approach above 
will not work, since the MCS field is after the RETRIES field.

So I was wondering if there is a way, while iterating over an header, to 
known how many time the RADIOTAP_NAMESPACE (or the EXT) field has been 
found.

> johannes
R.