Linux Kernel AF_PACKET bindings for Rust –

Linux Kernel AF_PACKET bindings for Rust

I’ve finally gotten my Linux kernel AF_PACKET bindings in Rust working properly – this should allow people to start developing network sniffers, monitoring tools, and security-related software using Rust.  There’s a lot of clean-up ahead and I want to make the interface more controllable, but for now, it’s still pretty simple to use.  I need to write a bunch of documentation as well.

The Linux kernel will balance flows based on a tupled hash so you shouldn’t need to do any cross-thread communication to reassemble flows.

The project is on GitLab and and packages are available on  I’ve pasted a dead-simple example below.