Re: rfc: "canonical" radiotap parser

Johannes Berg <[email protected]>
Newsgroups org.netbsd.radiotap
Message-ID <[email protected]>
On Thu, 2007-12-06 at 22:55 -0600, David Young wrote:
> At <http://svn.cuwireless.net/svn/cuw/trunk/src/radiotap/> is the radiotap

Another thing, I think it has endianness issues. Have you tested on big
endian platforms?

        case IEEE80211_RADIOTAP_LOCK_QUALITY:
        case IEEE80211_RADIOTAP_TX_ATTENUATION:
        case IEEE80211_RADIOTAP_DB_TX_ATTENUATION:
                printf("%s %" PRIu16 " ", fi->fi_shortdesc,
f->f_u16[0]);
                break;

That looks like it should have a conversion.

Also, here's an ambiguity in the standard:

 * IEEE80211_RADIOTAP_FHSS              uint16_t        see below
 *
 *      For frequency-hopping radios, the hop set (first byte)
 *      and pattern (second byte).

first/second byte is not really defined, I think this should be defined
as 2x uint8_t.

FWIW, I'm working on per-field pages on the wiki.

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

iQIVAwUAR18DSaVg1VMiehFYAQLy5Q/9Gd/pOqvUfIbnZbdoRR0fqkwXRnQNRoOZ
k7BIGs64LwbH9AudTdlv//R08a/Jf2UaDRv1w5LNv9UDryJXL4ZV2/i0NTzC/7W0
FgoH93buLhbftXykFk1dCh/HHjnyGYYRYFXoR2rAhXyuG4pcnN2H90HhA1HsgtHA
mB99zH69a+ySMhQHm584MMKe6moyZvVi0j8ptMXmz6CEZ+W2oyQ05eO2ol7cXQnM
GS00KXVZDqot3bJi098Y1gpaIqpeXsHH5mjZGAqC5oEhQtHhUKhEI5Uvnjc58XQG
2u2o+G5UnfYB6YNQ8JNCpxvPBfS2V0tjLW3l2LhgLQ83s82468cWpqLV8Nsl2Ibu
lBkiQRRk7MgObOmiGThu0gUgBMvAic4ANjmhWMjFk3eL8XIuMsfn+wXRycPl3wCu
0Ak3kBys5oUkPanqhWnN3VDlyT9Sh22Cmr2wueeWbBn+xFNMOAis9jqz5fcGmsc4
0twhxCvzAnKFZBpxYysVnXvdSqCsdSZ3xl9iiVrd+Lu3rb7QtxiT/ZV96Ybub8Vz
8fz2bcbQ+DwtNiC7o6tw/m06pTCeeuzArZkutlR5XIwplJSxo9RE7YjLZb8Xr2gx
ygdyqWA2O+6CqlYzghgLeaUCtgvCm+DRdJZVwYJS3Z9IkukAqTAEjMzr1h0S2/5I
j/2H+gjuVTA=
=OLsX
-----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.