How radiotap/radiotap-library works
This is a C library for iterating over IEEE 802.11 radiotap headers, accompanied by a command-line example that reads a file and prints recognized fields. The principal workflow is: a user supplies a capture file, the example initializes the iterator, advances through present arguments, and reports them. The library handles header validation, alignment, extended presence bitmaps, and vendor namespaces; public headers define the wire format and iterator interface. The excerpts show the example’s calls and the iterator implementation’s helpers. Other capabilities are limited to what the sampled files establish.
Main entry points: parse.c File parser · radiotap.c Radiotap iterator · radiotap_iter.h Iterator API · platform.h Platform helpers
Components 7
Example parser
- File parser
parse.c - Printed fields
Iterator runtime
- Radiotap iterator
radiotap.c - Platform helpers
platform.h
Public interface
- Iterator API
radiotap_iter.h - Radiotap definitions
radiotap.h
Other components
- CLI user
Connections 6
- CLI user → File parser: runs on file
parse.c - File parser → Radiotap iterator: initializes and advances
parse.c - File parser → Printed fields: prints fields
parse.c - Radiotap iterator → Platform helpers: uses endian helpers
radiotap.c - Radiotap iterator → Iterator API: implements interface
radiotap.c - Iterator API → Radiotap definitions: includes definitions
radiotap_iter.h