Expand description
Module provides API to create eBPF programs by Rust programming language
Structs§
- BpfCode
- BPF instruction stack in byte representation
- Exit
- struct representation of EXIT instruction
- Function
Call - struct representation of CALL instruction
- Jump
- struct representation of JMP instructions
- Load
- struct representation of LOAD instructions
- Move
- struct to represent
MOV ALU
instructions - Store
- struct representation of STORE instructions
- Swap
Bytes - struct representation of byte swap operation
Enums§
- Arch
- Architecture of instructions
- Cond
- Conditions for JMP instructions
- Endian
- Bytes endian
- MemSize
- Memory size for LOAD and STORE instructions
- Source
- The source of ALU and JMP instructions
Traits§
- Instruction
- Represents single eBPF instruction
- Into
Bytes - General trait for
Instruction
s andBpfCode
. Provides functionality to transformstruct
into collection of bytes