radiotap.netbsd.org archive mirror
 help / color / mirror / Atom feed
* Fields alignment when extended mask is present
@ 2011-02-20 10:55 Roberto Riggio
       [not found] ` <4D60F317.8090007-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Roberto Riggio @ 2011-02-20 10:55 UTC (permalink / raw)
  To: radiotap-qavaossjCcEdnm+yROfE0A

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)

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] 5+ messages in thread

* Re: Fields alignment when extended mask is present
       [not found] ` <4D60F317.8090007-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org>
@ 2011-02-21  9:27   ` Johannes Berg
       [not found]     ` <1298280460.3707.1.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2011-02-21  9:27 UTC (permalink / raw)
  To: Roberto Riggio; +Cc: radiotap-qavaossjCcEdnm+yROfE0A

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fields alignment when extended mask is present
       [not found]     ` <1298280460.3707.1.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org>
@ 2011-02-21  9:47       ` Roberto Riggio
       [not found]         ` <4D6234C5.2020201-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Roberto Riggio @ 2011-02-21  9:47 UTC (permalink / raw)
  To: Johannes Berg; +Cc: radiotap-qavaossjCcEdnm+yROfE0A

Il 21/02/2011 10:27, Johannes Berg ha scritto:
> 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.
(8) was the field length. in the example above i;ve repoted
two different radiotap headers where i specify twice the rate
and the retries field.

of course i know that in this case i will have to put to it-present
bitmasks and i will have to set the bit 31 of the first bitmask to 1.

what i'm not sure is if i have to pad the first "block" to the word
boundary or not.

> johannes
>


-- 
--------------------------------------------------------
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] 5+ messages in thread

* Re: Fields alignment when extended mask is present
       [not found]         ` <4D6234C5.2020201-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org>
@ 2011-02-21  9:50           ` Johannes Berg
       [not found]             ` <1298281847.3707.2.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2011-02-21  9:50 UTC (permalink / raw)
  To: Roberto Riggio; +Cc: radiotap-qavaossjCcEdnm+yROfE0A

On Mon, 2011-02-21 at 10:47 +0100, Roberto Riggio wrote:

> >> 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.
> (8) was the field length. in the example above i;ve repoted
> two different radiotap headers where i specify twice the rate
> and the retries field.
> 
> of course i know that in this case i will have to put to it-present
> bitmasks and i will have to set the bit 31 of the first bitmask to 1.
> 
> what i'm not sure is if i have to pad the first "block" to the word
> boundary or not.

I still don't get it. If the field length is 8 bits (1 byte) you don't
need any alignment anyway.

johannes

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fields alignment when extended mask is present
       [not found]             ` <1298281847.3707.2.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org>
@ 2011-02-21 10:11               ` Roberto Riggio
  0 siblings, 0 replies; 5+ messages in thread
From: Roberto Riggio @ 2011-02-21 10:11 UTC (permalink / raw)
  To: Johannes Berg; +Cc: radiotap-qavaossjCcEdnm+yROfE0A

Il 21/02/2011 10:50, Johannes Berg ha scritto:
> On Mon, 2011-02-21 at 10:47 +0100, Roberto Riggio wrote:
>
>>>> 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.
>> (8) was the field length. in the example above i;ve repoted
>> two different radiotap headers where i specify twice the rate
>> and the retries field.
>>
>> of course i know that in this case i will have to put to it-present
>> bitmasks and i will have to set the bit 31 of the first bitmask to 1.
>>
>> what i'm not sure is if i have to pad the first "block" to the word
>> boundary or not.
> I still don't get it. If the field length is 8 bits (1 byte) you don't
> need any alignment anyway.
>
Ok thanks this is what i wasn;t sure of.
> johannes
>


-- 
--------------------------------------------------------
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] 5+ messages in thread

end of thread, other threads:[~2011-02-21 10:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-20 10:55 Fields alignment when extended mask is present Roberto Riggio
     [not found] ` <4D60F317.8090007-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org>
2011-02-21  9:27   ` Johannes Berg
     [not found]     ` <1298280460.3707.1.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org>
2011-02-21  9:47       ` Roberto Riggio
     [not found]         ` <4D6234C5.2020201-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org>
2011-02-21  9:50           ` Johannes Berg
     [not found]             ` <1298281847.3707.2.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org>
2011-02-21 10:11               ` Roberto Riggio

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).