#nl80211 #netlink #building #constants #data-structures #scan #events

bin+lib nl80211-buildtools

Tools for building datastructures and constants for nl80211

1 unstable release

Uses old Rust 2015

0.1.0 Oct 15, 2018

#5 in #nl80211


Used in nl80211-rs

MIT license

19KB
525 lines

nl80211 in Rust

Handling nl80211, IEEE 802.11 Netlink protocol, in Rust. Work in progress.

Example

If run without arguments the example program will listen for nl80211 events. If a new scan event is received the scan results will be fetched.

$ cargo run --release --example nl80211

To run some example commands administrative access is needed, Set administrative capabilities like so,

sudo setcap cap_net_admin+ep ./target/release/examples/nl80211

Then it is possible to initiate a scan for example.

./target/release/examples/nl80211 scan

Compatability

Rust 1.30.0 or later is needed.

Tested on following platforms,

  • Linux 4.18 x86_64, Fedora 28
  • Linux 4.1 ARMv7
  • Linux 4.9 AArch64

License

Licensed under the MIT license.

Build Status Crates.io

Dependencies

~6.5MB
~125K SLoC