Registry / networking / neli
library0.7.4rscratesunverified

Type safe netlink library for interacting with the Linux kernel's netlink protocol.

# Cargo.toml [dependencies] neli = "0.7.4"
INSTALL
IMPORT
SIG · NELI
N
neli
networkingrustv0.7.4
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.

Nlmsghdr
use neli::nl::Nlmsghdr;

Create and serialize a netlink message header.

use neli::nl::Nlmsghdr; use neli::types::Buffer; fn main() { let msg = Nlmsghdr::new(None, 0, 0, None, None).unwrap(); let buf = msg.to_bytes().unwrap(); println!("Netlink message buffer: {:?}", buf); }
Debug
Known issues
gotchaRequires Linux kernel headers and may need root privileges for certain operations.
fix
Ensure running on Linux with appropriate permissions.
affects: >=0.7.0
Upgrade
Version history
0.7.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
neli — cargo add neli · libregistry