Function netstack3_ip::icmp::send_icmpv6_address_unreachable

source ·
pub fn send_icmpv6_address_unreachable<B: BufferMut, BC: IcmpBindingsContext, CC: InnerIcmpv6Context<BC> + CounterContext<IcmpTxCounters<Ipv6>>>(
    core_ctx: &mut CC,
    bindings_ctx: &mut BC,
    device: Option<&CC::DeviceId>,
    frame_dst: Option<FrameDestination>,
    src_ip: SocketIpAddr<Ipv6Addr>,
    dst_ip: SocketIpAddr<Ipv6Addr>,
    original_packet: B,
)
Expand description

Send an ICMPv6 message in response to receiving a packet destined for an unreachable address.

send_icmpv6_address_unreachable sends the appropriate ICMP message in response to receiving an IP packet from src_ip to dst_ip, where dst_ip is unreachable. In particular, this is an ICMP “destination unreachable” message with an “address unreachable” code.

original_packet contains the contents of the entire original packet, including extension headers.