Module bpf

Module bpf 

Source
Expand description

§BPF programming utilities

These are functions for building fragments of low-level BPF (Berkeley Packet Filter) code, used for making system call filtering decisions in seccomp.

Functions§

imm
Build an instruction to load a 32-bit immediate value into the accumulator.
jump
Build any BPF statement including conditional jumps.
jump_always
Build an unconditional jump instruction.
load
Build an instruction to load a 32-bit value from a constant address.
ret
Build an instruction to return a 32-bit constant value.
stmt
Build a BPF statement with one 32-bit parameter.
store
Build an instruction to store a 32-bit value at a constant address.