[−][src]Struct nc::types::bpf_attr_prog_load_t
anonymous struct used by BPF_PROG_LOAD command
Fields
prog_type: u32
one of enum bpf_prog_type
insn_cnt: u32
insns: u64
license: u64
log_level: u32
verbosity level of verifier
log_size: u32
size of user buffer
log_buf: u64
user supplied buffer
kern_version: u32
not used
prog_flags: u32
prog_name: [u8; 16]
prog_ifindex: u32
ifindex of netdev to prep for
expected_attach_type: u32
For some prog types expected attach type must be known at load time to verify attach type specific parts of prog (context accesses, allowed helpers, etc).
prog_btf_fd: u32
fd pointing to BTF type data
func_info_rec_size: u32
userspace bpf_func_info size
func_info: u64
func info
func_info_cnt: u32
number of bpf_func_info records
line_info_rec_size: u32
userspace bpf_line_info size
line_info: u64
line info
line_info_cnt: u32
number of bpf_line_info records
Trait Implementations
impl Copy for bpf_attr_prog_load_t
[src]
impl Clone for bpf_attr_prog_load_t
[src]
fn clone(&self) -> bpf_attr_prog_load_t
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl Unpin for bpf_attr_prog_load_t
impl Send for bpf_attr_prog_load_t
impl Sync for bpf_attr_prog_load_t
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.