Struct t2plugin::nethdr::IcmpHeader
source · #[repr(C, packed)]pub struct IcmpHeader {
pub typ: u8,
pub code: u8,
/* private fields */
}
Expand description
ICMP header: https://tools.ietf.org/html/rfc792
Fields§
§typ: u8
ICMP type
code: u8
ICMP code
Implementations§
source§impl IcmpHeader
impl IcmpHeader
sourcepub fn gateway(&self) -> u32
pub fn gateway(&self) -> u32
Gateway Internet Address in ICMP redirect messages.
sourcepub fn path_mtu(&self) -> u16
pub fn path_mtu(&self) -> u16
Next-hop MTU in ICMP destination unreachable messages.
Auto Trait Implementations§
impl RefUnwindSafe for IcmpHeader
impl Send for IcmpHeader
impl Sync for IcmpHeader
impl Unpin for IcmpHeader
impl UnwindSafe for IcmpHeader
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