Module insn_builder

Source
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
FunctionCall
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
SwapBytes
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
IntoBytes
General trait for Instructions and BpfCode. Provides functionality to transform struct into collection of bytes