Struct bpfjit::BpfJitFilter
[−]
[src]
pub struct BpfJitFilter { /* fields omitted */ }
Methods
impl BpfJitFilter
[src]
fn compile(instructions: &[bpf_insn]) -> Option<BpfJitFilter>
Compiles classic BPF instructions to amd64 instructions
fn matched(&self, buf: &[u8]) -> bool
Applies filter. Returns true on match, false otherwise
Trait Implementations
impl Drop for BpfJitFilter
[src]
impl Clone for BpfJitFilter
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more