Enum bpf_attach_type

Source
#[repr(u32)]
pub enum bpf_attach_type {
Show 57 variants BPF_CGROUP_INET_INGRESS = 0, BPF_CGROUP_INET_EGRESS = 1, BPF_CGROUP_INET_SOCK_CREATE = 2, BPF_CGROUP_SOCK_OPS = 3, BPF_SK_SKB_STREAM_PARSER = 4, BPF_SK_SKB_STREAM_VERDICT = 5, BPF_CGROUP_DEVICE = 6, BPF_SK_MSG_VERDICT = 7, BPF_CGROUP_INET4_BIND = 8, BPF_CGROUP_INET6_BIND = 9, BPF_CGROUP_INET4_CONNECT = 10, BPF_CGROUP_INET6_CONNECT = 11, BPF_CGROUP_INET4_POST_BIND = 12, BPF_CGROUP_INET6_POST_BIND = 13, BPF_CGROUP_UDP4_SENDMSG = 14, BPF_CGROUP_UDP6_SENDMSG = 15, BPF_LIRC_MODE2 = 16, BPF_FLOW_DISSECTOR = 17, BPF_CGROUP_SYSCTL = 18, BPF_CGROUP_UDP4_RECVMSG = 19, BPF_CGROUP_UDP6_RECVMSG = 20, BPF_CGROUP_GETSOCKOPT = 21, BPF_CGROUP_SETSOCKOPT = 22, BPF_TRACE_RAW_TP = 23, BPF_TRACE_FENTRY = 24, BPF_TRACE_FEXIT = 25, BPF_MODIFY_RETURN = 26, BPF_LSM_MAC = 27, BPF_TRACE_ITER = 28, BPF_CGROUP_INET4_GETPEERNAME = 29, BPF_CGROUP_INET6_GETPEERNAME = 30, BPF_CGROUP_INET4_GETSOCKNAME = 31, BPF_CGROUP_INET6_GETSOCKNAME = 32, BPF_XDP_DEVMAP = 33, BPF_CGROUP_INET_SOCK_RELEASE = 34, BPF_XDP_CPUMAP = 35, BPF_SK_LOOKUP = 36, BPF_XDP = 37, BPF_SK_SKB_VERDICT = 38, BPF_SK_REUSEPORT_SELECT = 39, BPF_SK_REUSEPORT_SELECT_OR_MIGRATE = 40, BPF_PERF_EVENT = 41, BPF_TRACE_KPROBE_MULTI = 42, BPF_LSM_CGROUP = 43, BPF_STRUCT_OPS = 44, BPF_NETFILTER = 45, BPF_TCX_INGRESS = 46, BPF_TCX_EGRESS = 47, BPF_TRACE_UPROBE_MULTI = 48, BPF_CGROUP_UNIX_CONNECT = 49, BPF_CGROUP_UNIX_SENDMSG = 50, BPF_CGROUP_UNIX_RECVMSG = 51, BPF_CGROUP_UNIX_GETPEERNAME = 52, BPF_CGROUP_UNIX_GETSOCKNAME = 53, BPF_NETKIT_PRIMARY = 54, BPF_NETKIT_PEER = 55, __MAX_BPF_ATTACH_TYPE = 56,
}

Variants§

§

BPF_CGROUP_INET_INGRESS = 0

§

BPF_CGROUP_INET_EGRESS = 1

§

BPF_CGROUP_INET_SOCK_CREATE = 2

§

BPF_CGROUP_SOCK_OPS = 3

§

BPF_SK_SKB_STREAM_PARSER = 4

§

BPF_SK_SKB_STREAM_VERDICT = 5

§

BPF_CGROUP_DEVICE = 6

§

BPF_SK_MSG_VERDICT = 7

§

BPF_CGROUP_INET4_BIND = 8

§

BPF_CGROUP_INET6_BIND = 9

§

BPF_CGROUP_INET4_CONNECT = 10

§

BPF_CGROUP_INET6_CONNECT = 11

§

BPF_CGROUP_INET4_POST_BIND = 12

§

BPF_CGROUP_INET6_POST_BIND = 13

§

BPF_CGROUP_UDP4_SENDMSG = 14

§

BPF_CGROUP_UDP6_SENDMSG = 15

§

BPF_LIRC_MODE2 = 16

§

BPF_FLOW_DISSECTOR = 17

§

BPF_CGROUP_SYSCTL = 18

§

BPF_CGROUP_UDP4_RECVMSG = 19

§

BPF_CGROUP_UDP6_RECVMSG = 20

§

BPF_CGROUP_GETSOCKOPT = 21

§

BPF_CGROUP_SETSOCKOPT = 22

§

BPF_TRACE_RAW_TP = 23

§

BPF_TRACE_FENTRY = 24

§

BPF_TRACE_FEXIT = 25

§

BPF_MODIFY_RETURN = 26

§

BPF_LSM_MAC = 27

§

BPF_TRACE_ITER = 28

§

BPF_CGROUP_INET4_GETPEERNAME = 29

§

BPF_CGROUP_INET6_GETPEERNAME = 30

§

BPF_CGROUP_INET4_GETSOCKNAME = 31

§

BPF_CGROUP_INET6_GETSOCKNAME = 32

§

BPF_XDP_DEVMAP = 33

§

BPF_CGROUP_INET_SOCK_RELEASE = 34

§

BPF_XDP_CPUMAP = 35

§

BPF_SK_LOOKUP = 36

§

BPF_XDP = 37

§

BPF_SK_SKB_VERDICT = 38

§

BPF_SK_REUSEPORT_SELECT = 39

§

BPF_SK_REUSEPORT_SELECT_OR_MIGRATE = 40

§

BPF_PERF_EVENT = 41

§

BPF_TRACE_KPROBE_MULTI = 42

§

BPF_LSM_CGROUP = 43

§

BPF_STRUCT_OPS = 44

§

BPF_NETFILTER = 45

§

BPF_TCX_INGRESS = 46

§

BPF_TCX_EGRESS = 47

§

BPF_TRACE_UPROBE_MULTI = 48

§

BPF_CGROUP_UNIX_CONNECT = 49

§

BPF_CGROUP_UNIX_SENDMSG = 50

§

BPF_CGROUP_UNIX_RECVMSG = 51

§

BPF_CGROUP_UNIX_GETPEERNAME = 52

§

BPF_CGROUP_UNIX_GETSOCKNAME = 53

§

BPF_NETKIT_PRIMARY = 54

§

BPF_NETKIT_PEER = 55

§

__MAX_BPF_ATTACH_TYPE = 56

Trait Implementations§

Source§

impl Clone for bpf_attach_type

Source§

fn clone(&self) -> bpf_attach_type

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for bpf_attach_type

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<CgroupSockAddrAttachType> for bpf_attach_type

Source§

fn from(s: CgroupSockAddrAttachType) -> bpf_attach_type

Converts to this type from the input type.
Source§

impl From<CgroupSockAttachType> for bpf_attach_type

Source§

fn from(s: CgroupSockAttachType) -> bpf_attach_type

Converts to this type from the input type.
Source§

impl From<CgroupSockoptAttachType> for bpf_attach_type

Source§

fn from(s: CgroupSockoptAttachType) -> bpf_attach_type

Converts to this type from the input type.
Source§

impl From<XdpAttachType> for bpf_attach_type

Source§

fn from(value: XdpAttachType) -> Self

Converts to this type from the input type.
Source§

impl Hash for bpf_attach_type

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for bpf_attach_type

Source§

fn eq(&self, other: &bpf_attach_type) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u32> for bpf_attach_type

Source§

type Error = InvalidTypeBinding<u32>

The type returned in the event of a conversion error.
Source§

fn try_from(attach_type: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for bpf_attach_type

Source§

impl Eq for bpf_attach_type

Source§

impl StructuralPartialEq for bpf_attach_type

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.