Crate ebpf_api

Crate ebpf_api 

Source

Macros§

ebpf_program_context_type
Macro used to declare program type for a EbpfProgramContext implementation. Implements StaticHelperSet trait for the context type.

Structs§

BpfTypeFilter
EbpfHelperDefinition
Map
A BPF map. This is a hashtable that can be accessed both by BPF programs and userspace.
PinnedMap
Maps are normally kept pinned in memory since linked eBPF programs store direct pointers to the maps they depend on.
__sk_buff

Enums§

AttachType
EbpfApiError
LoadBytesBase
MapError
MapValueRef
ProgramType
The different type of BPF programs.

Constants§

BPF_MAP_TYPE_HASH
BPF_PROG_TYPE_FUSE
RINGBUF_SIGNAL
SECCOMP_CBPF_CONFIG
SKF_AD_ALU_XOR_X
SKF_AD_CPU
SKF_AD_HATYPE
SKF_AD_IFINDEX
SKF_AD_MARK
SKF_AD_MAX
SKF_AD_NLATTR
SKF_AD_NLATTR_NEST
SKF_AD_OFF
SKF_AD_PAY_OFFSET
SKF_AD_PKTTYPE
SKF_AD_PROTOCOL
SKF_AD_QUEUE
SKF_AD_RANDOM
SKF_AD_RXHASH
SKF_AD_VLAN_TAG
SKF_AD_VLAN_TAG_PRESENT
SKF_AD_VLAN_TPID
SKF_LL_OFF
SKF_NET_OFF
SOCKET_FILTER_CBPF_CONFIG

Statics§

BPF_SOCKOPT_ARGS
BPF_SOCKOPT_ID
BPF_SOCKOPT_TYPE
BPF_SOCK_ADDR_ID
BPF_SOCK_ADDR_INET4_ARGS
BPF_SOCK_ADDR_INET4_TYPE
BPF_SOCK_ADDR_INET6_ARGS
BPF_SOCK_ADDR_INET6_TYPE
BPF_SOCK_ADDR_TYPE
BPF_SOCK_ARGS
BPF_SOCK_ID
BPF_SOCK_TYPE
BPF_USER_PT_REGS_T_ARGS
BPF_USER_PT_REGS_T_ID
CGROUP_SKB_ARGS
CGROUP_SKB_SK_BUF_TYPE
Type for the __sk_buff passed to BPF_PROG_TYPE_CGROUP_SKB programs.
SCHED_ARGS
SCHED_ARG_TYPE
Type for the __sk_buff passed to BPF_PROG_TYPE_SCHED_CLS and BPF_PROG_TYPE_SCHED_ACT programs.
SK_BUF_ID
SOCKET_FILTER_ARGS
SOCKET_FILTER_SK_BUF_TYPE
Type for the __sk_buff passed to BPF_PROG_TYPE_SOCKET_FILTER programs.

Traits§

CgroupSkbProgramContext
CgroupSockAddrProgramContext
CgroupSockOptProgramContext
CgroupSockProgramContext
CurrentTaskContext
CurrentTaskProgramContext
MapsContext
MapsProgramContext
PacketWithLoadBytes
SkbLoadBytesProgramContext
SocketCookieContext
SocketCookieProgramContext
SocketFilterProgramContext
SocketUidContext
SocketUidProgramContext

Functions§

compute_map_storage_size

Type Aliases§

MapKey
uid_t