bpfjit-sys 1.0.0

Rust bindings to NetBSD's cBPF JIT engine
docs.rs failed to build bpfjit-sys-1.0.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: bpfjit-sys-2.1.2

bpfjit-sys

Rust bindings to NetBSD's cBPF JIT engine

Version: 1.0.0 Author: Alex Forster <alex@alexforster.com> License: BSD-2-Clause

Build Status

Usage

static PACKET: &'static [u8] = &[...];

let filter = BpfJit::new("udp dst port 123")?;

if filter.matches(PACKET) {
	...
}

Attributions

sljit

Copyright © Zoltan Herczeg <hzmester@freemail.hu>. All rights reserved.

Distributed under the 2-clause BSD license (BSD-2-Clause).

bpfjit

Copyright © Alexander Nasonov <alnsn@yandex.ru>. All rights reserved.

Distributed under the 2-clause BSD license (BSD-2-Clause).