classic_bpf 0.1.1

Build and attach classic BPF programs to sockets.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! # classic_bpf
//! see <https://github.com/freebsd/freebsd-src/blob/main/share/man/man4/bpf.4>

mod bpf_base;
pub use bpf_base::*;

#[cfg(target_os = "linux")]
mod linux;
#[cfg(target_os = "linux")]
pub use linux::*;

#[cfg(target_os = "freebsd")]
mod bsd;
#[cfg(target_os = "freebsd")]
pub use bsd::*;