#[non_exhaustive]pub enum ProgramType {
Show 33 variants
Unspecified,
SocketFilter,
KProbe,
SchedClassifier,
SchedAction,
TracePoint,
Xdp,
PerfEvent,
CgroupSkb,
CgroupSock,
LwtInput,
LwtOutput,
LwtXmit,
SockOps,
SkSkb,
CgroupDevice,
SkMsg,
RawTracePoint,
CgroupSockAddr,
LwtSeg6local,
LircMode2,
SkReuseport,
FlowDissector,
CgroupSysctl,
RawTracePointWritable,
CgroupSockopt,
Tracing,
StructOps,
Extension,
Lsm(LsmAttachType),
SkLookup,
Syscall,
Netfilter,
}Expand description
The type of eBPF program.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
An unspecified program type.
SocketFilter
A Socket Filter program type. See SocketFilter
for the program implementation.
Introduced in kernel v3.19.
KProbe
A Kernel Probe program type. See KProbe and
UProbe for the program implementations.
Introduced in kernel v4.1.
SchedClassifier
A Traffic Control (TC) Classifier program type. See
SchedClassifier for the program implementation.
Introduced in kernel v4.1.
SchedAction
A Traffic Control (TC) Action program type.
Introduced in kernel v4.1.
TracePoint
A Tracepoint program type. See TracePoint for the
program implementation.
Introduced in kernel v4.7.
Xdp
An Express Data Path (XDP) program type. See Xdp for the program
implementation.
Introduced in kernel v4.8.
PerfEvent
A Perf Event program type. See PerfEvent for the program
implementation.
Introduced in kernel v4.9.
CgroupSkb
A cGroup Socket Buffer program type. See CgroupSkb for
the program implementation.
Introduced in kernel v4.10.
CgroupSock
A cGroup Socket program type. See CgroupSock for the
program implementation.
Introduced in kernel v4.10.
LwtInput
A Lightweight Tunnel (LWT) Input program type.
Introduced in kernel v4.10.
LwtOutput
A Lightweight Tunnel (LWT) Output program type.
Introduced in kernel v4.10.
LwtXmit
A Lightweight Tunnel (LWT) Transmit program type.
Introduced in kernel v4.10.
SockOps
A Socket Operation program type. See SockOps for the program
implementation.
Introduced in kernel v4.13.
SkSkb
A Socket-to-Socket Buffer program type. See SkSkb for the program
implementation.
Introduced in kernel v4.14.
CgroupDevice
A cGroup Device program type. See CgroupDevice
for the program implementation.
Introduced in kernel v4.15.
SkMsg
A Socket Message program type. See SkMsg for the program
implementation.
Introduced in kernel v4.17.
RawTracePoint
A Raw Tracepoint program type. See RawTracePoint
for the program implementation.
Introduced in kernel v4.17.
CgroupSockAddr
A cGroup Socket Address program type. See
CgroupSockAddr for the program implementation.
Introduced in kernel v4.17.
LwtSeg6local
A Lightweight Tunnel (LWT) Seg6local program type.
Introduced in kernel v4.18.
LircMode2
A Linux Infrared Remote Control (LIRC) Mode2 program type. See
LircMode2 for the program implementation.
Introduced in kernel v4.18.
SkReuseport
A Socket Reuseport program type.
Introduced in kernel v4.19.
FlowDissector
A Flow Dissector program type.
Introduced in kernel v4.20.
CgroupSysctl
A cGroup Sysctl program type. See CgroupSysctl for
the program implementation.
Introduced in kernel v5.2.
RawTracePointWritable
A Writable Raw Tracepoint program type.
Introduced in kernel v5.2.
CgroupSockopt
A cGroup Socket Option program type. See CgroupSockopt
for the program implementation.
Introduced in kernel v5.3.
Tracing
A Tracing program type. See FEntry, FExit,
and BtfTracePoint for the program implementations.
Introduced in kernel v5.5.
StructOps
A Struct Ops program type.
Introduced in kernel v5.6.
Extension
A Extension program type. See Extension for the program
implementation.
Introduced in kernel v5.6.
Lsm(LsmAttachType)
A Linux Security Module (LSM) program type. See Lsm for the program
implementation.
Introduced in kernel v5.7.
SkLookup
A Socket Lookup program type. See SkLookup for the program
implementation.
Introduced in kernel v5.9.
Syscall
A Syscall program type.
Introduced in kernel v5.14.
Netfilter
A Netfilter program type.
Introduced in kernel v6.4.
Trait Implementations§
Source§impl Clone for ProgramType
impl Clone for ProgramType
Source§fn clone(&self) -> ProgramType
fn clone(&self) -> ProgramType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProgramType
impl Debug for ProgramType
Source§impl From<ProgramType> for bpf_prog_type
impl From<ProgramType> for bpf_prog_type
Source§fn from(value: ProgramType) -> Self
fn from(value: ProgramType) -> Self
Source§impl PartialEq for ProgramType
impl PartialEq for ProgramType
Source§fn eq(&self, other: &ProgramType) -> bool
fn eq(&self, other: &ProgramType) -> bool
self and other values to be equal, and is used by ==.