Trait netstack3_core::ip::icmp::IcmpContext
source · pub trait IcmpContext<I: IcmpIpExt> {
// Required method
fn receive_icmp_error(
&mut self,
conn: IcmpConnId<I>,
seq_num: u16,
err: I::ErrorCode
);
}
Expand description
The context required by the ICMP layer in order to deliver events related to ICMP sockets.
Required Methods§
sourcefn receive_icmp_error(
&mut self,
conn: IcmpConnId<I>,
seq_num: u16,
err: I::ErrorCode
)
fn receive_icmp_error( &mut self, conn: IcmpConnId<I>, seq_num: u16, err: I::ErrorCode )
Receives an ICMP error message related to a previously-sent ICMP echo request.
seq_num
is the sequence number of the original echo request that
triggered the error, and err
is the specific error identified by the
incoming ICMP error message.