packet_formats::icmp

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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>