Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

netinet/icmp.h File Reference

ICMP protocol definitions. More...


Functions

void NutIcmpInput (NUTDEVICE *dev, NETBUF *nb)
 Handle incoming ICMP packets. More...

int NutIcmpOutput (u_char type, u_long dest, NETBUF *nb, u_char flags)
 Send an ICMP datagram. More...

int NutIcmpReply (u_char type, u_char code, u_long spec, u_long dest, NETBUF *nb)
 Send an ICMP message to a given destination. More...


Detailed Description

ICMP protocol definitions.


Function Documentation

int NutIcmpOutput ( u_char type,
u_long dest,
NETBUF * nb,
u_char flags )
 

Send an ICMP datagram.

Parameters:
dest   Destination IP address.
nb   Network buffer structure containing the datagram.
flags   Set to 1 for asynchronous output, 0 otherwise.

Returns:
0 on success, -1 otherwise.

int NutIcmpReply ( u_char type,
u_char code,
u_long spec,
u_long dest,
NETBUF * nb )
 

Send an ICMP message to a given destination.

Parameters:
type   Type of the ICMP message.
code   Type subcode.
spec   Type specific data item.
dest   IP address of the target.
nb   Network buffer structure of this message. The application part must have been set by the caller.


© 2000-2001 by egnite Software GmbH - visit http://www.ethernut.de/