Collaboration diagram for ICMP:
Provides routing, diagnostic and error functionality for IP. Although ICMP messages are encapsulated within IP datagrams, ICMP processing is considered to be part of the IP layer.
There is currently no API support for this layer.
Functions | |
void | NutIcmpInput (NUTDEVICE *dev, NETBUF *nb) |
Handle incoming ICMP packets. | |
int | NutIcmpOutput (u_char type, u_long dest, NETBUF *nb) |
Send an ICMP datagram. | |
int | NutIcmpReply (u_char type, u_char code, u_long spec, u_long dest, NETBUF *nb) |
Send an ICMP message to a given destination. | |
int | NutIcmpResponse (u_char type, u_char code, u_long spec, NETBUF *nb) |
Send an ICMP message as a response to a given destination. |
|
Handle incoming ICMP packets. Incoming ICMP packets are processed in the background. NutNet currently handles echo request and destination unreachable packets. Any other packet type is silently discarded.
|
|
Send an ICMP datagram. Known ICMP types are:
|
|
Send an ICMP message to a given destination.
|
|
Send an ICMP message as a response to a given destination.
|