#[repr(C, packed(1))]pub struct rte_ipv4_hdr {
pub version_ihl: u8,
pub type_of_service: u8,
pub total_length: u16,
pub packet_id: u16,
pub fragment_offset: u16,
pub time_to_live: u8,
pub next_proto_id: u8,
pub hdr_checksum: u16,
pub src_addr: u32,
pub dst_addr: u32,
}Expand description
IPv4 header
Fields§
§version_ihl: u8§type_of_service: u8§total_length: u16§packet_id: u16§fragment_offset: u16§time_to_live: u8§next_proto_id: u8§hdr_checksum: u16§src_addr: u32§dst_addr: u32Trait Implementations§
Source§impl Clone for rte_ipv4_hdr
impl Clone for rte_ipv4_hdr
Source§fn clone(&self) -> rte_ipv4_hdr
fn clone(&self) -> rte_ipv4_hdr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for rte_ipv4_hdr
impl Debug for rte_ipv4_hdr
Source§impl Default for rte_ipv4_hdr
impl Default for rte_ipv4_hdr
Source§fn default() -> rte_ipv4_hdr
fn default() -> rte_ipv4_hdr
Returns the “default value” for a type. Read more
impl Copy for rte_ipv4_hdr
Auto Trait Implementations§
impl Freeze for rte_ipv4_hdr
impl RefUnwindSafe for rte_ipv4_hdr
impl Send for rte_ipv4_hdr
impl Sync for rte_ipv4_hdr
impl Unpin for rte_ipv4_hdr
impl UnsafeUnpin for rte_ipv4_hdr
impl UnwindSafe for rte_ipv4_hdr
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