Re: rfc: "canonical" radiotap parser

Johannes Berg <[email protected]>
Newsgroups org.netbsd.radiotap
Message-ID <[email protected]>
Hi Dave,

I just took a quick look at the parser, it looks pretty good. Andy has
done something similar and was willing to relicense it under BSD last I
asked him, his code is part of the Linux kernel right now:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=net/wireless/radiotap.c;hb=HEAD

It does a lot less than your parser since that already includes code to
print out the result which we obviously don't have in the kernel, but
other than that it's pretty similar conceptually. Just for reference.
Yours also has more detailed error reporting.

Small question on the code: why did you declare that radiotap_field is
aligned? It can potentially come from anywhere unaligned, no?

johannes
signature.asc (application/pgp-signature, 828 B)
-----BEGIN PGP SIGNATURE-----
Comment: Johannes Berg (powerbook)

iQIVAwUAR1p0fKVg1VMiehFYAQK1ew//VuJ3GFDpFgzw7Z2mFegRygBHaZ1t4dXk
Of2fOabcEvbSm2xR7+0K/hnZ8gx1Tm8Xe/JoZujzREe4QajQj997vPmdfkVC72gv
VkN82msoBWTcyzvB0bQrnrueOBfFcxqJWmJpBewRJL4eFbfYPOsh/G/VBT2NZS9v
UVv8jLVU0BlQXJ+NVJwnRestRvEatn2MHjtb0n01NcTFiUtFX+XX18Nz2z5CJdlk
kVWsYURI/uyPzeqlp0cz7W6CIAQdXFxPOZ0rb3Balt6C3ccX4Zj6UCrx3vASlrjE
7IYj3g2wXvxmlyK2lGbCFOmOlcgzIDqZDE/cRNPzZjlLKmdGZbhJkVtZoJFSUJbn
jn9+/qq06GWatofeGWH/oVCAEd99eSQXisnJTXR4hEqg6cm0kUTVD6E0MVuW6LX4
2QhQb6PHPPm2T/PCDXp9mcI862nb8mhX/gC8o+SU85e3+eVup+JOM6NVeA4UnebZ
aGNQXDD4guqdHBk92cgUkkj37ID5lpSsygWYH3R1VYFhxrpfMSFlQbQOTvqALxGA
DF6NZ5lDZ+73THpopXc21ND5kj6yRmlc5lWRPuX0zlkc16crxF7CbCgaf3r6Dz2T
Ce3yRU+EcYDCIp+vcJelosu4etKiArtMCxHtnkSPTdeb2CdOr0RrTazaN26TXWAM
yYcj9ilGhIo=
=M4fo
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.