Rust bindings to NetBSD's cBPF JIT engine
Version: 2.0.0
Author: Alex Forster \
```rust use bpfjit_sys::{BpfJit, Linktype};
static PACKET: &'static [u8] = &[ // 0xDE, 0xAD, 0xBE, 0xEF, ... ];
fn main() { let filter = BpfJit::new("udp dst port 123", Linktype::Ethernet)?;
if filter.matches(PACKET) {
// ...
}
} ```
sljit
Copyright © Zoltan Herczeg \ Distributed under the 2-clause BSD license (BSD-2-Clause). Copyright © Alexander Nasonov \ Distributed under the 2-clause BSD license (BSD-2-Clause).bpfjit