nut/include/netinet/ip_icmp.h File Reference


Detailed Description

Interface control message protocol definitions.

RFC 792.

#include <sys/types.h>
#include <net/if_arp.h>
#include <netinet/ip.h>

Data Structures

struct  icmp
 ICMP protocol header structure. More...

Defines

#define ICMP_ECHO   8
 Echo reply type.
#define ICMP_ECHOREPLY   0
 Echo reply type.
#define ICMP_IREQ   15
 Information request type.
#define ICMP_IREQREPLY   16
 Information reply type.
#define ICMP_MASKREPLY   18
 Address mask reply type.
#define ICMP_MASKREQ   17
 Address mask request type.
#define ICMP_MAXTYPE   18
 Maximum ICMP type number.
#define ICMP_MINLEN   8
 Lower bounds on packet length.
#define ICMP_PARAMPROB   12
 Bad IP header type.
#define ICMP_PARAMPROB_OPTABSENT   1
 Bad IP header: Required option missing.
#define ICMP_REDIRECT   5
 Shorter route type.
#define ICMP_REDIRECT_HOST   1
 Shorter route for host.
#define ICMP_REDIRECT_NET   0
 Shorter route for network.
#define ICMP_REDIRECT_TOSHOST   3
 Shorter route for tos and host.
#define ICMP_REDIRECT_TOSNET   2
 Shorter route for tos and net.
#define ICMP_ROUTERADVERT   9
 Router advertisement type.
#define ICMP_ROUTERSOLICIT   10
 Router solicitation type.
#define ICMP_SOURCEQUENCH   4
 Packet lost type.
#define ICMP_TIMXCEED   11
 Time exceeded type.
#define ICMP_TIMXCEED_INTRANS   0
 Time exceeded in transit.
#define ICMP_TIMXCEED_REASS   1
 Time exceeded in reassembly.
#define ICMP_TSTAMP   13
 Timestamp request type.
#define ICMP_TSTAMPREPLY   14
 Timestamp reply type.
#define ICMP_UNREACH   3
 Destination unreachable type.
#define ICMP_UNREACH_HOST   1
 Destination unreachable: Bad host.
#define ICMP_UNREACH_HOST_PROHIB   10
 Destination unreachable: Host access prohibited.
#define ICMP_UNREACH_HOST_UNKNOWN   7
 Destination unreachable: Unknown host.
#define ICMP_UNREACH_ISOLATED   8
 Destination unreachable: Source host isolated.
#define ICMP_UNREACH_NEEDFRAG   4
 Destination unreachable: Fragmentation needed.
#define ICMP_UNREACH_NET   0
 Destination unreachable: Bad net code.
#define ICMP_UNREACH_NET_PROHIB   9
 Destination unreachable: Net access prohibited.
#define ICMP_UNREACH_NET_UNKNOWN   6
 Destination unreachable: Unknown net.
#define ICMP_UNREACH_PORT   3
 Destination unreachable: Bad port.
#define ICMP_UNREACH_PROTOCOL   2
 Destination unreachable: Bad protocol.
#define ICMP_UNREACH_SRCFAIL   5
 Destination unreachable: Source route failed.
#define ICMP_UNREACH_TOSHOST   12
 Destination unreachable: Bad tos for host.
#define ICMP_UNREACH_TOSNET   11
 Destination unreachable: Bad tos for net.

Typedefs

typedef icmp ICMPHDR
 ICMP protocol header type.


Generated on Tue Jan 23 21:12:26 2007 for BTnut System Software by doxygen 1.4.7