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