Trait packet_formats::icmp::IcmpPacketTypeRaw
source · pub trait IcmpPacketTypeRaw<B: SplitByteSliceMut, I: Ip>: Sized + ParsablePacket<B, (), Error = ParseError> {
// Required method
fn update_checksum_pseudo_header_address(
&mut self,
old: I::Addr,
new: I::Addr,
);
}
Expand description
An ICMP or ICMPv6 packet
‘IcmpPacketType’ is implemented by Icmpv4Packet
and Icmpv6Packet
Required Methods§
sourcefn update_checksum_pseudo_header_address(&mut self, old: I::Addr, new: I::Addr)
fn update_checksum_pseudo_header_address(&mut self, old: I::Addr, new: I::Addr)
Update the checksum to reflect an updated address in the pseudo header.
Object Safety§
This trait is not object safe.