#[repr(C)]pub struct sk_msg_md_t {
pub data: bpf_md_ptr_t,
pub data_end: bpf_md_end_ptr_t,
pub family: u32,
pub remote_ip4: u32,
pub local_ip4: u32,
pub remote_ip6: [u32; 4],
pub local_ip6: [u32; 4],
pub remote_port: u32,
pub local_port: u32,
pub size: u32,
}Expand description
user accessible metadata for SK_MSG packet hook, new fields must
be added to the end of this structure
Fields§
§data: bpf_md_ptr_t§data_end: bpf_md_end_ptr_t§family: u32§remote_ip4: u32Stored in network byte order
local_ip4: u32Stored in network byte order
remote_ip6: [u32; 4]Stored in network byte order
local_ip6: [u32; 4]Stored in network byte order
remote_port: u32Stored in network byte order
local_port: u32stored in host byte order
size: u32Total size of sk_msg
Auto Trait Implementations§
impl Freeze for sk_msg_md_t
impl RefUnwindSafe for sk_msg_md_t
impl Send for sk_msg_md_t
impl Sync for sk_msg_md_t
impl Unpin for sk_msg_md_t
impl UnsafeUnpin for sk_msg_md_t
impl UnwindSafe for sk_msg_md_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more