Struct peel_ip::layer2::icmp::IcmpPacket
[−]
[src]
pub struct IcmpPacket { pub message_type: IcmpType, pub code: u8, pub checksum: u16, pub data: Option<IcmpData>, }
Representation of an Internet Control Message Protocol packet
Fields
message_type: IcmpType
The ICMP type
code: u8
The message subtype
checksum: u16
Error checking data, calculated from the ICMP header and data, with value 0 substituted for this field.
data: Option<IcmpData>
Contents vary based on the type and code.
Trait Implementations
impl Debug for IcmpPacket
[src]
impl Eq for IcmpPacket
[src]
impl PartialEq for IcmpPacket
[src]
fn eq(&self, __arg_0: &IcmpPacket) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IcmpPacket) -> bool
This method tests for !=
.