Struct linux_uapi::x86_64::__sk_buff
source · #[repr(C)]pub struct __sk_buff {Show 35 fields
pub len: __u32,
pub pkt_type: __u32,
pub mark: __u32,
pub queue_mapping: __u32,
pub protocol: __u32,
pub vlan_present: __u32,
pub vlan_tci: __u32,
pub vlan_proto: __u32,
pub priority: __u32,
pub ingress_ifindex: __u32,
pub ifindex: __u32,
pub tc_index: __u32,
pub cb: [__u32; 5],
pub hash: __u32,
pub tc_classid: __u32,
pub data: __u32,
pub data_end: __u32,
pub napi_id: __u32,
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 data_meta: __u32,
pub __bindgen_anon_1: __sk_buff__bindgen_ty_1,
pub tstamp: __u64,
pub wire_len: __u32,
pub gso_segs: __u32,
pub __bindgen_anon_2: __sk_buff__bindgen_ty_2,
pub gso_size: __u32,
pub tstamp_type: __u8,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3]>,
pub hwtstamp: __u64,
}
Fields§
§len: __u32
§pkt_type: __u32
§mark: __u32
§queue_mapping: __u32
§protocol: __u32
§vlan_present: __u32
§vlan_tci: __u32
§vlan_proto: __u32
§priority: __u32
§ingress_ifindex: __u32
§ifindex: __u32
§tc_index: __u32
§cb: [__u32; 5]
§hash: __u32
§tc_classid: __u32
§data: __u32
§data_end: __u32
§napi_id: __u32
§family: __u32
§remote_ip4: __u32
§local_ip4: __u32
§remote_ip6: [__u32; 4]
§local_ip6: [__u32; 4]
§remote_port: __u32
§local_port: __u32
§data_meta: __u32
§__bindgen_anon_1: __sk_buff__bindgen_ty_1
§tstamp: __u64
§wire_len: __u32
§gso_segs: __u32
§__bindgen_anon_2: __sk_buff__bindgen_ty_2
§gso_size: __u32
§tstamp_type: __u8
§_bitfield_1: __BindgenBitfieldUnit<[u8; 3]>
§hwtstamp: __u64
Implementations§
source§impl __sk_buff
impl __sk_buff
pub fn new_bitfield_1() -> __BindgenBitfieldUnit<[u8; 3]>
Trait Implementations§
source§impl FromBytes for __sk_buffwhere
__u32: FromBytes,
[__u32; 5]: FromBytes,
[__u32; 4]: FromBytes,
__sk_buff__bindgen_ty_1: FromBytes,
__u64: FromBytes,
__sk_buff__bindgen_ty_2: FromBytes,
__u8: FromBytes,
__BindgenBitfieldUnit<[u8; 3]>: FromBytes,
impl FromBytes for __sk_buffwhere
__u32: FromBytes,
[__u32; 5]: FromBytes,
[__u32; 4]: FromBytes,
__sk_buff__bindgen_ty_1: FromBytes,
__u64: FromBytes,
__sk_buff__bindgen_ty_2: FromBytes,
__u8: FromBytes,
__BindgenBitfieldUnit<[u8; 3]>: FromBytes,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for __sk_buffwhere
__u32: FromZeros,
[__u32; 5]: FromZeros,
[__u32; 4]: FromZeros,
__sk_buff__bindgen_ty_1: FromZeros,
__u64: FromZeros,
__sk_buff__bindgen_ty_2: FromZeros,
__u8: FromZeros,
__BindgenBitfieldUnit<[u8; 3]>: FromZeros,
impl FromZeros for __sk_buffwhere
__u32: FromZeros,
[__u32; 5]: FromZeros,
[__u32; 4]: FromZeros,
__sk_buff__bindgen_ty_1: FromZeros,
__u64: FromZeros,
__sk_buff__bindgen_ty_2: FromZeros,
__u8: FromZeros,
__BindgenBitfieldUnit<[u8; 3]>: FromZeros,
source§impl IntoBytes for __sk_buffwhere
__u32: IntoBytes,
[__u32; 5]: IntoBytes,
[__u32; 4]: IntoBytes,
__sk_buff__bindgen_ty_1: IntoBytes,
__u64: IntoBytes,
__sk_buff__bindgen_ty_2: IntoBytes,
__u8: IntoBytes,
__BindgenBitfieldUnit<[u8; 3]>: IntoBytes,
HasPadding<__sk_buff, { _ }>: ShouldBe<false>,
impl IntoBytes for __sk_buffwhere
__u32: IntoBytes,
[__u32; 5]: IntoBytes,
[__u32; 4]: IntoBytes,
__sk_buff__bindgen_ty_1: IntoBytes,
__u64: IntoBytes,
__sk_buff__bindgen_ty_2: IntoBytes,
__u8: IntoBytes,
__BindgenBitfieldUnit<[u8; 3]>: IntoBytes,
HasPadding<__sk_buff, { _ }>: ShouldBe<false>,
impl Copy for __sk_buff
Auto Trait Implementations§
impl Freeze for __sk_buff
impl RefUnwindSafe for __sk_buff
impl Send for __sk_buff
impl Sync for __sk_buff
impl Unpin for __sk_buff
impl UnwindSafe for __sk_buff
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