You copied the Doc URL to your clipboard.

10.3.2. icmp_destun()

The icmp_destun() routine sends an ICMP destination-unreachable packet.

Syntax

void icmp_destun(ip_addr host, struct ip *ip, 
                 unsigned type, NET net);

where:

host

Is the destination IP host.

*ip

Is the IP header of the packet which triggered the destination-unreachable packet.

type

Is one of the ICMP destination-unreachable message types. It must be one of the following defined constants:

  • DSTNET

  • DSTHOST

  • DSTPROT

  • DSTPORT

  • DSTFRAG

  • DSTSRC.

net

Is the interface that the packet came in on.

Returned values

None.

Location

The icmp_destun() routine is found in the following file:

inet\icmp.c

Was this page helpful? Yes No