Struct linux_uapi::x86_64::ipt_ip
source · #[repr(C)]pub struct ipt_ip {
pub src: in_addr,
pub dst: in_addr,
pub smsk: in_addr,
pub dmsk: in_addr,
pub iniface: [c_char; 16],
pub outiface: [c_char; 16],
pub iniface_mask: [c_uchar; 16],
pub outiface_mask: [c_uchar; 16],
pub proto: __u16,
pub flags: __u8,
pub invflags: __u8,
}
Fields§
§src: in_addr
§dst: in_addr
§smsk: in_addr
§dmsk: in_addr
§iniface: [c_char; 16]
§outiface: [c_char; 16]
§iniface_mask: [c_uchar; 16]
§outiface_mask: [c_uchar; 16]
§proto: __u16
§flags: __u8
§invflags: __u8
Trait Implementations§
source§impl FromBytes for ipt_ip
impl FromBytes for ipt_ip
§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 IntoBytes for ipt_ip
impl IntoBytes for ipt_ip
impl Copy for ipt_ip
Auto Trait Implementations§
impl Freeze for ipt_ip
impl RefUnwindSafe for ipt_ip
impl Send for ipt_ip
impl Sync for ipt_ip
impl Unpin for ipt_ip
impl UnwindSafe for ipt_ip
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