Handling RADIOTAP_EXT
Hi,
I have a radiotap header with extended namespaces. Basically in each on them I define a rate (either legacy or mcs) and a retry count.
I can correctly iterate over the header using the reference lib, however I could not figure it out how to keep known the namespace index currently being parsed.
Thanks
Signature · 31 lines
-------------------------------------------------------- Roberto Riggio, Ph.D. CREATE-NET Network & Security Solutions for Pervasive Computing Systems (iNSPIRE) Senior Researcher Via alla Cascata 56/D - 38123 Povo Trento (Italy) e-mail: roberto.riggio-2TmCWn7/[email protected] Tel: (+39) 0461 408400 - interno/extension 708 Fax: (+39) 0461 421157 www.create-net.org/~rriggio -------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited according to the Italian Law 196/2003 of the Legislature. If you received this in error, please contact the sender and delete the material from any computer. Le informazioni contenute in questo messaggio di posta elettronica e nei file allegati sono da considerarsi strettamente riservate. Il loro utilizzo e' consentito esclusivamente al destinatario del messaggio, per le finalita' indicate nel messaggio stesso. Qualora riceveste questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla cancellazione del messaggio stesso dal Vostro sistema. Trattenere il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalita' diverse, costituisce comportamento contrario ai principi dettati dal D. Lgs. 196/2003.
A message that is not in the archive (sent off-list or not yet received): 4F56879E.9030907-2TmCWn7/[email protected]
Hi
Quoted 2 lines
I have a radiotap header with extended namespaces. Basically in each on them I define a rate (either legacy or mcs) and a retry count.
Makes sense.
Quoted 3 lines
I can correctly iterate over the header using the reference lib, however I could not figure it out how to keep known the namespace index currently being parsed.
Can you elaborate what you mean? Do you want to keep something while using the library?
johannes
A message that is not in the archive (sent off-list or not yet received): 1331107859.3519.4.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org
Quoted 2 lines · Johannes Berg
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.
Quoted 1 line
johannes
R.
A message that is not in the archive (sent off-list or not yet received): 4F571A36.8020405-2TmCWn7/[email protected]
Quoted 22 lines · Roberto Riggio
Quoted 2 lines · Johannes Berg
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.
Quoted 6 lines
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.
Ah, no, not with the library as it is today. I suppose we could add a flag "inform me of namespace boundaries" or something like that.
johannes