Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blueluna/nl80211-rs

Experiments with netlink and nl80211 in Rust
https://github.com/blueluna/nl80211-rs

netlink nl80211 rust

Last synced: 2 months ago
JSON representation

Experiments with netlink and nl80211 in Rust

Awesome Lists containing this project

README

        

# 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.

```bash
$ 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.

```bash
./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](https://travis-ci.org/blueluna/nl80211-rs.svg?branch=master)](https://travis-ci.org/blueluna/nl80211-rs) [![Crates.io](https://img.shields.io/crates/v/nl80211-rs.svg)](https://crates.io/crates/nl80211-rs)