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§

source

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.

Implementors§

source§

impl<B: SplitByteSliceMut> IcmpPacketTypeRaw<B, Ipv4> for Icmpv4PacketRaw<B>

source§

impl<B: SplitByteSliceMut> IcmpPacketTypeRaw<B, Ipv6> for Icmpv6PacketRaw<B>