Skip to main content

is_icmp_error

Function is_icmp_error 

pub fn is_icmp_error(packet: IpPacket<'_>) -> bool
Available on crate feature net only.
Expand description

Whether a packet carries an ICMP error (rather than an informational message). Returns false if fragmentation prevents inspecting the type.