Registry / networking / netlink-proto

netlink-proto

JSON →
library0.12.0rscratesunverified

Async netlink protocol implementation for communicating with the Linux kernel via netlink sockets.

# Cargo.toml [dependencies] netlink-proto = "0.12.0"
INSTALL
IMPORT
SIG · NETLINK-PROTO
N
netlink-proto
networkingrustv0.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

new_connection
use netlink_proto::new_connection;

Establishes an async netlink connection to the Linux kernel.

use netlink_proto::new_connection; #[tokio::main] async fn main() { let (conn, handle, _) = new_connection().unwrap(); tokio::spawn(conn); println!("Netlink connection established"); }
Debug
Known issues
gotchaRequires an async runtime like tokio
fix
Add tokio as a dependency and use #[tokio::main]
affects: >=0.10.0
Upgrade
Version history
0.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Amazon
1
Resources
netlink-proto — cargo add netlink-proto · libregistry