radiotap.netbsd.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
To: freeman <freeman.wang-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
Cc: radiotap-sUITvd46vNxg9hUCZPvPmw@public.gmane.org
Subject: Re: limit radiotap header size
Date: Mon, 06 Oct 2014 16:20:11 +0200	[thread overview]
Message-ID: <1412605211.3098.13.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <loom.20140916T185055-769-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>

On Tue, 2014-09-16 at 17:01 +0000, freeman wrote:

> Thanks for the help.
> It seems this kernel doc needs some update
> http://lxr.free-electrons.com/source/Documentation/networking/radiotap-headers.txt

That should probably just point to www.radiotap.org :)

> I think I was not clear in last email. If we have a tiny firmware to
> generate the radiotap header for received packets, and we have limited RAM,
> it might look attractive to only create a trimmed version radiotap header to
> the sniffer application. 
> 
> Given the design of the bitmap in the fixed header, I guess it allows us to
> only include a subset of all arguments, although it is always better to have
> more info sent up. So in memory constrained systems, how much freedom we
> have in creating radiotap headers?

You can chose to include or not include any information that you want.
The minimal radiotap header has a zero bitmap and no information at all
- but it's also useless. The more data you include, the more useful it
becomes.

> My dream is that a user application can send a 32bit bitmap to the device
> driver as a bitmask and the device only sends up those arguments enabled by
> the mask.

There's no API to send such down. If you invent API to send such down,
then you can of course build the header limited.

However, many times the capturing and analysis are done as two separate
steps, with the analysis being after the fact on a different system
etc., so I'm not sure how useful that would be. For my purposes I'd try
to always enable the maximum amount of information...

johannes

      parent reply	other threads:[~2014-10-06 14:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-15 20:10 limit radiotap header size freeman
     [not found] ` <loom.20140915T220101-881-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2014-09-16 12:18   ` Johannes Berg
2014-09-16 17:01     ` freeman
     [not found]       ` <loom.20140916T185055-769-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2014-10-06 14:20         ` Johannes Berg [this message]

Reply instructions:

You may reply publicly 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=1412605211.3098.13.camel@jlt4.sipsolutions.net \
    --to=johannes-cdvu00un1vgdhxzaddlk8q@public.gmane.org \
    --cc=freeman.wang-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
    --cc=radiotap-sUITvd46vNxg9hUCZPvPmw@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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).