pub struct BpfFilter { /* private fields */ }Expand description
A classic BPF filter program for kernel-level packet filtering.
Generate instructions with tcpdump -dd "expression".
For eBPF, use aya and attach to the socket fd via AsFd.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BpfFilter
impl RefUnwindSafe for BpfFilter
impl Send for BpfFilter
impl Sync for BpfFilter
impl Unpin for BpfFilter
impl UnsafeUnpin for BpfFilter
impl UnwindSafe for BpfFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more