pub trait IcmpMessage<I: IpExt>: IcmpMessage<I> + MaybeTransportPacket {
// Required method
fn update_icmp_id(&mut self, id: u16) -> u16;
}
Expand description
An ICMP message type that may allow for transport-layer packet inspection.
Required Methods§
Sourcefn update_icmp_id(&mut self, id: u16) -> u16
fn update_icmp_id(&mut self, id: u16) -> u16
Sets the ICMP ID for the message, returning the previous value.
The ICMP ID is both the src AND dst ports for conntrack entries.
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.