Skip to main content
Module converter
ebpf
Module converter
Module Items
Structs
Enums
Functions
In crate ebpf
ebpf
Module
converter
Copy item path
Source
Structs
§
Cbpf
Config
Enums
§
Cbpf
LenInstruction
Functions
§
bpf_
addressing_
mode
The addressing mode is the most significant three bits of load and store instructions. They indicate whether the instrution accesses a constant, accesses from memory, or accesses from memory atomically.
bpf_
class
The bpf_class is the instruction type.(e.g., load/store/jump/ALU).
bpf_
size
The bpf_size is the 4th and 5th bit of load and store instructions. It indicates the bit width of the load / store target (8, 16, 32, 64 bits).
convert_
and_
link_
cbpf
Converts, verifies and links a cBPF program for execution in the specified context.
convert_
and_
verify_
cbpf
Instantiates an EbpfProgram given a cbpf original that will work with a packet of the specified type.