* Handling RADIOTAP_EXT @ 2012-03-06 21:54 Roberto Riggio [not found] ` <4F56879E.9030907-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Roberto Riggio @ 2012-03-06 21:54 UTC (permalink / raw) To: radiotap-sUITvd46vNxg9hUCZPvPmw 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 -- -------------------------------------------------------- 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/4sHOQU1ULcgDhA@public.gmane.org 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <4F56879E.9030907-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org>]
* Re: Handling RADIOTAP_EXT [not found] ` <4F56879E.9030907-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org> @ 2012-03-07 8:10 ` Johannes Berg [not found] ` <1331107859.3519.4.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Johannes Berg @ 2012-03-07 8:10 UTC (permalink / raw) To: Roberto Riggio; +Cc: radiotap-sUITvd46vNxg9hUCZPvPmw 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. Makes sense. > 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <1331107859.3519.4.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org>]
* Re: Handling RADIOTAP_EXT [not found] ` <1331107859.3519.4.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org> @ 2012-03-07 8:20 ` Roberto Riggio [not found] ` <4F571A36.8020405-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Roberto Riggio @ 2012-03-07 8:20 UTC (permalink / raw) To: Johannes Berg; +Cc: radiotap-sUITvd46vNxg9hUCZPvPmw 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <4F571A36.8020405-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org>]
* Re: Handling RADIOTAP_EXT [not found] ` <4F571A36.8020405-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org> @ 2012-03-07 8:29 ` Johannes Berg 0 siblings, 0 replies; 4+ messages in thread From: Johannes Berg @ 2012-03-07 8:29 UTC (permalink / raw) To: Roberto Riggio; +Cc: radiotap-sUITvd46vNxg9hUCZPvPmw On Wed, 2012-03-07 at 09:20 +0100, Roberto Riggio wrote: > 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. 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-07 8:29 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-03-06 21:54 Handling RADIOTAP_EXT Roberto Riggio [not found] ` <4F56879E.9030907-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org> 2012-03-07 8:10 ` Johannes Berg [not found] ` <1331107859.3519.4.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org> 2012-03-07 8:20 ` Roberto Riggio [not found] ` <4F571A36.8020405-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org> 2012-03-07 8:29 ` Johannes Berg
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).