kos_sys::os::netStruct ip_hdr_t
Source #[repr(C, packed(1))]
pub struct ip_hdr_t {
pub version_ihl: u8,
pub tos: u8,
pub length: u16,
pub packet_id: u16,
pub flags_frag_offs: u16,
pub ttl: u8,
pub protocol: u8,
pub checksum: u16,
pub src: u32,
pub dest: u32,
}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
[From]<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.