Nut/OS  4.10.3
API Reference
ip_icmp.h File Reference

Interface control message protocol definitions. More...

#include <sys/types.h>
#include <net/if_arp.h>
#include <netinet/ip.h>
Include dependency graph for ip_icmp.h:
This graph shows which files directly or indirectly include this file:

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 struct icmp ICMPHDR
 ICMP protocol header type.

Detailed Description

Interface control message protocol definitions.

RFC 792.

Definition in file ip_icmp.h.


Define Documentation

#define ICMP_ECHOREPLY   0

Echo reply type.

Definition at line 117 of file ip_icmp.h.

Referenced by NutIcmpInput().

#define ICMP_UNREACH   3

Destination unreachable type.

Definition at line 118 of file ip_icmp.h.

Referenced by NutIcmpInput(), NutIpInput(), and NutUdpInput().

#define ICMP_UNREACH_NET   0

Destination unreachable: Bad net code.

Definition at line 119 of file ip_icmp.h.

#define ICMP_UNREACH_HOST   1

Destination unreachable: Bad host.

Definition at line 120 of file ip_icmp.h.

#define ICMP_UNREACH_PROTOCOL   2

Destination unreachable: Bad protocol.

Definition at line 121 of file ip_icmp.h.

Referenced by NutIpInput().

#define ICMP_UNREACH_PORT   3

Destination unreachable: Bad port.

Definition at line 122 of file ip_icmp.h.

Referenced by NutUdpInput().

#define ICMP_UNREACH_NEEDFRAG   4

Destination unreachable: Fragmentation needed.

Definition at line 123 of file ip_icmp.h.

#define ICMP_UNREACH_SRCFAIL   5

Destination unreachable: Source route failed.

Definition at line 124 of file ip_icmp.h.

#define ICMP_UNREACH_NET_UNKNOWN   6

Destination unreachable: Unknown net.

Definition at line 125 of file ip_icmp.h.

#define ICMP_UNREACH_HOST_UNKNOWN   7

Destination unreachable: Unknown host.

Definition at line 126 of file ip_icmp.h.

#define ICMP_UNREACH_ISOLATED   8

Destination unreachable: Source host isolated.

Definition at line 127 of file ip_icmp.h.

#define ICMP_UNREACH_NET_PROHIB   9

Destination unreachable: Net access prohibited.

Definition at line 128 of file ip_icmp.h.

#define ICMP_UNREACH_HOST_PROHIB   10

Destination unreachable: Host access prohibited.

Definition at line 129 of file ip_icmp.h.

#define ICMP_UNREACH_TOSNET   11

Destination unreachable: Bad tos for net.

Definition at line 130 of file ip_icmp.h.

#define ICMP_UNREACH_TOSHOST   12

Destination unreachable: Bad tos for host.

Definition at line 131 of file ip_icmp.h.

#define ICMP_SOURCEQUENCH   4

Packet lost type.

Definition at line 132 of file ip_icmp.h.

#define ICMP_REDIRECT   5

Shorter route type.

Definition at line 133 of file ip_icmp.h.

#define ICMP_REDIRECT_NET   0

Shorter route for network.

Definition at line 134 of file ip_icmp.h.

#define ICMP_REDIRECT_HOST   1

Shorter route for host.

Definition at line 135 of file ip_icmp.h.

#define ICMP_REDIRECT_TOSNET   2

Shorter route for tos and net.

Definition at line 136 of file ip_icmp.h.

#define ICMP_REDIRECT_TOSHOST   3

Shorter route for tos and host.

Definition at line 137 of file ip_icmp.h.

#define ICMP_ECHO   8

Echo reply type.

Definition at line 138 of file ip_icmp.h.

Referenced by NutIcmpInput().

#define ICMP_ROUTERADVERT   9

Router advertisement type.

Definition at line 139 of file ip_icmp.h.

#define ICMP_ROUTERSOLICIT   10

Router solicitation type.

Definition at line 140 of file ip_icmp.h.

#define ICMP_TIMXCEED   11

Time exceeded type.

Definition at line 141 of file ip_icmp.h.

#define ICMP_TIMXCEED_INTRANS   0

Time exceeded in transit.

Definition at line 142 of file ip_icmp.h.

#define ICMP_TIMXCEED_REASS   1

Time exceeded in reassembly.

Definition at line 143 of file ip_icmp.h.

#define ICMP_PARAMPROB   12

Bad IP header type.

Definition at line 144 of file ip_icmp.h.

#define ICMP_PARAMPROB_OPTABSENT   1

Bad IP header: Required option missing.

Definition at line 145 of file ip_icmp.h.

#define ICMP_TSTAMP   13

Timestamp request type.

Definition at line 146 of file ip_icmp.h.

#define ICMP_TSTAMPREPLY   14

Timestamp reply type.

Definition at line 147 of file ip_icmp.h.

#define ICMP_IREQ   15

Information request type.

Definition at line 148 of file ip_icmp.h.

#define ICMP_IREQREPLY   16

Information reply type.

Definition at line 149 of file ip_icmp.h.

#define ICMP_MASKREQ   17

Address mask request type.

Definition at line 150 of file ip_icmp.h.

#define ICMP_MASKREPLY   18

Address mask reply type.

Definition at line 151 of file ip_icmp.h.

#define ICMP_MAXTYPE   18

Maximum ICMP type number.

Definition at line 153 of file ip_icmp.h.

#define ICMP_MINLEN   8

Lower bounds on packet length.

Definition at line 156 of file ip_icmp.h.


Typedef Documentation

ICMP protocol header type.