Struct surge_ping::Icmpv6Packet
source · pub struct Icmpv6Packet { /* private fields */ }
Expand description
Packet structure returned by ICMPv6.
Implementations§
source§impl Icmpv6Packet
impl Icmpv6Packet
sourcepub fn get_source(&self) -> Ipv6Addr
pub fn get_source(&self) -> Ipv6Addr
Get the source IPv6 address.
sourcepub fn get_destination(&self) -> Ipv6Addr
pub fn get_destination(&self) -> Ipv6Addr
Get the destination IPv6 address.
sourcepub fn get_max_hop_limit(&self) -> u8
pub fn get_max_hop_limit(&self) -> u8
Get the hop_limit field.
sourcepub fn get_icmpv6_type(&self) -> Icmpv6Type
pub fn get_icmpv6_type(&self) -> Icmpv6Type
Get the icmpv6_type of the icmpv6 packet.
sourcepub fn get_icmpv6_code(&self) -> Icmpv6Code
pub fn get_icmpv6_code(&self) -> Icmpv6Code
Get the icmpv6_code of the icmpv6 packet.
sourcepub fn get_real_dest(&self) -> Ipv6Addr
pub fn get_real_dest(&self) -> Ipv6Addr
If it is an echo_reply
packet, it is the source address in the IPv6 packet.
If it is other packets, it is the destination address in the IPv6 packet in ICMPv6’s payload.
sourcepub fn get_identifier(&self) -> PingIdentifier
pub fn get_identifier(&self) -> PingIdentifier
Get the identifier of the icmp_v6 packet.
sourcepub fn get_sequence(&self) -> PingSequence
pub fn get_sequence(&self) -> PingSequence
Get the sequence of the icmp_v6 packet.
Trait Implementations§
source§impl Debug for Icmpv6Packet
impl Debug for Icmpv6Packet
Auto Trait Implementations§
impl RefUnwindSafe for Icmpv6Packet
impl Send for Icmpv6Packet
impl Sync for Icmpv6Packet
impl Unpin for Icmpv6Packet
impl UnwindSafe for Icmpv6Packet
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