libwifi: an 802.11 frame parsing and generation library written in C
7 days ago
- #WiFi
- #C-library
- #networking
- libwifi is a fast, simple C shared library for generating and parsing 802.11 wireless frames on Linux and macOS.
- It prioritizes clean, readable code and supports cross-architecture use with strict error checking.
- The library simplifies parsing and generating WiFi frames with easy-to-use functions and structs.
- Examples of usage can be found in the source examples directory.
- For parsing, libwifi processes captured packets (e.g., via libpcap) into common datatypes and then into frame-specific data.
- For generation, users provide required data to frame generation functions like `libwifi_create_beacon()`.
- Building libwifi involves using CMake with commands: `mkdir build`, `cd build`, `cmake ..`, `make`, and `sudo make install`.
- Benchmark tests show libwifi's beacon parsing is extremely fast, with times as low as 0.0000010 seconds.
- Documentation is available in the source code comments and online, including struct diagrams and frame layouts.