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

The ICMP type

The message subtype

Error checking data, calculated from the ICMP header and data, with value 0 substituted for this field.

Contents vary based on the type and code.

Trait Implementations

impl Debug for IcmpPacket
[src]

Formats the value using the given formatter.

impl Eq for IcmpPacket
[src]

impl PartialEq for IcmpPacket
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.