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

ip_icmp.h File Reference

Interface control message protocol definitions. More...

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

Go to the source code of this file.

Data Structures

struct  icmp
 ICMP protocol header structure. More...


Defines

#define ICMP_ECHOREPLY   0
 Echo reply type.

#define ICMP_UNREACH   3
 Destination unreachable type.

#define ICMP_UNREACH_NET   0
 Destination unreachable: Bad net code.

#define ICMP_UNREACH_HOST   1
 Destination unreachable: Bad host.

#define ICMP_UNREACH_PROTOCOL   2
 Destination unreachable: Bad protocol.

#define ICMP_UNREACH_PORT   3
 Destination unreachable: Bad port.

#define ICMP_UNREACH_NEEDFRAG   4
 Destination unreachable: Fragmentation needed.

#define ICMP_UNREACH_SRCFAIL   5
 Destination unreachable: Source route failed.

#define ICMP_UNREACH_NET_UNKNOWN   6
 Destination unreachable: Unknown net.

#define ICMP_UNREACH_HOST_UNKNOWN   7
 Destination unreachable: Unknown host.

#define ICMP_UNREACH_ISOLATED   8
 Destination unreachable: Source host isolated.

#define ICMP_UNREACH_NET_PROHIB   9
 Destination unreachable: Net access prohibited.

#define ICMP_UNREACH_HOST_PROHIB   10
 Destination unreachable: Host access prohibited.

#define ICMP_UNREACH_TOSNET   11
 Destination unreachable: Bad tos for net.

#define ICMP_UNREACH_TOSHOST   12
 Destination unreachable: Bad tos for host.

#define ICMP_SOURCEQUENCH   4
 Packet lost type.

#define ICMP_REDIRECT   5
 Shorter route type.

#define ICMP_REDIRECT_NET   0
 Shorter route for network.

#define ICMP_REDIRECT_HOST   1
 Shorter route for host.

#define ICMP_REDIRECT_TOSNET   2
 Shorter route for tos and net.

#define ICMP_REDIRECT_TOSHOST   3
 Shorter route for tos and host.

#define ICMP_ECHO   8
 Echo reply type.

#define ICMP_ROUTERADVERT   9
 Router advertisement type.

#define ICMP_ROUTERSOLICIT   10
 Router solicitation 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_PARAMPROB   12
 Bad IP header type.

#define ICMP_PARAMPROB_OPTABSENT   1
 Bad IP header: Required option missing.

#define ICMP_TSTAMP   13
 Timestamp request type.

#define ICMP_TSTAMPREPLY   14
 Timestamp reply type.

#define ICMP_IREQ   15
 Information request type.

#define ICMP_IREQREPLY   16
 Information reply type.

#define ICMP_MASKREQ   17
 Address mask request type.

#define ICMP_MASKREPLY   18
 Address mask reply type.

#define ICMP_MAXTYPE   18
 Maximum ICMP type number.

#define ICMP_MINLEN   8
 Lower bounds on packet length.


Typedefs

typedef icmp ICMPHDR
 ICMP protocol header type.


Detailed Description

Interface control message protocol definitions.

RFC 792.


Generated on Thu Jan 30 22:30:54 2003 for EduNet by doxygen1.2.18