RadioTap Archive on lore.kernel.org
 help / color / Atom feed
From: Johannes Berg <johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
To: Roberto Riggio <roberto.riggio-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org>
Cc: radiotap-qavaossjCcEdnm+yROfE0A@public.gmane.org
Subject: Re: Fields alignment when extended mask is present
Date: Mon, 21 Feb 2011 10:27:40 +0100
Message-ID: <1298280460.3707.1.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <4D60F317.8090007-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org>

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

  parent reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-20 10:55 Roberto Riggio
     [not found] ` <4D60F317.8090007-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org>
2011-02-21  9:27   ` Johannes Berg [this message]
     [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

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1298280460.3707.1.camel@jlt3.sipsolutions.net \
    --to=johannes-cdvu00un1vgdhxzaddlk8q@public.gmane.org \
    --cc=radiotap-qavaossjCcEdnm+yROfE0A@public.gmane.org \
    --cc=roberto.riggio-2TmCWn7/4sHOQU1ULcgDhA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

RadioTap Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/radiotap/0 radiotap/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 radiotap radiotap/ https://lore.kernel.org/radiotap \
		radiotap@radiotap.org
	public-inbox-index radiotap

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.netbsd.radiotap


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git