Back to index

glibc  2.9
Classes | Defines
ip_icmp.h File Reference
#include <sys/cdefs.h>
#include <sys/types.h>

Go to the source code of this file.

Classes

struct  icmphdr
union  icmphdr.un
struct  icmphdr.un.echo
struct  icmphdr.un.frag

Defines

#define ICMP_ECHOREPLY   0 /* Echo Reply */
#define ICMP_DEST_UNREACH   3 /* Destination Unreachable */
#define ICMP_SOURCE_QUENCH   4 /* Source Quench */
#define ICMP_REDIRECT   5 /* Redirect (change route) */
#define ICMP_ECHO   8 /* Echo Request */
#define ICMP_TIME_EXCEEDED   11 /* Time Exceeded */
#define ICMP_PARAMETERPROB   12 /* Parameter Problem */
#define ICMP_TIMESTAMP   13 /* Timestamp Request */
#define ICMP_TIMESTAMPREPLY   14 /* Timestamp Reply */
#define ICMP_INFO_REQUEST   15 /* Information Request */
#define ICMP_INFO_REPLY   16 /* Information Reply */
#define ICMP_ADDRESS   17 /* Address Mask Request */
#define ICMP_ADDRESSREPLY   18 /* Address Mask Reply */
#define NR_ICMP_TYPES   18
#define ICMP_NET_UNREACH   0 /* Network Unreachable */
#define ICMP_HOST_UNREACH   1 /* Host Unreachable */
#define ICMP_PROT_UNREACH   2 /* Protocol Unreachable */
#define ICMP_PORT_UNREACH   3 /* Port Unreachable */
#define ICMP_FRAG_NEEDED   4 /* Fragmentation Needed/DF set */
#define ICMP_SR_FAILED   5 /* Source Route failed */
#define ICMP_NET_UNKNOWN   6
#define ICMP_HOST_UNKNOWN   7
#define ICMP_HOST_ISOLATED   8
#define ICMP_NET_ANO   9
#define ICMP_HOST_ANO   10
#define ICMP_NET_UNR_TOS   11
#define ICMP_HOST_UNR_TOS   12
#define ICMP_PKT_FILTERED   13 /* Packet filtered */
#define ICMP_PREC_VIOLATION   14 /* Precedence violation */
#define ICMP_PREC_CUTOFF   15 /* Precedence cut off */
#define NR_ICMP_UNREACH   15 /* instead of hardcoding immediate value */
#define ICMP_REDIR_NET   0 /* Redirect Net */
#define ICMP_REDIR_HOST   1 /* Redirect Host */
#define ICMP_REDIR_NETTOS   2 /* Redirect Net for TOS */
#define ICMP_REDIR_HOSTTOS   3 /* Redirect Host for TOS */
#define ICMP_EXC_TTL   0 /* TTL count exceeded */
#define ICMP_EXC_FRAGTIME   1 /* Fragment Reass time exceeded */

Class Documentation

struct icmphdr

Definition at line 27 of file ip_icmp.h.

Class Members
u_int16_t checksum
u_int8_t code
u_int8_t type
union icmphdr un
union icmphdr.un

Definition at line 32 of file ip_icmp.h.

Class Members
un echo
un frag
u_int32_t gateway
struct icmphdr.un.echo

Definition at line 34 of file ip_icmp.h.

Class Members
u_int16_t id
u_int16_t sequence
struct icmphdr.un.frag

Definition at line 40 of file ip_icmp.h.

Class Members
u_int16_t __unused
u_int16_t mtu

Define Documentation

#define ICMP_ADDRESS   17 /* Address Mask Request */

Definition at line 59 of file ip_icmp.h.

#define ICMP_ADDRESSREPLY   18 /* Address Mask Reply */

Definition at line 60 of file ip_icmp.h.

#define ICMP_DEST_UNREACH   3 /* Destination Unreachable */

Definition at line 49 of file ip_icmp.h.

#define ICMP_ECHO   8 /* Echo Request */

Definition at line 52 of file ip_icmp.h.

#define ICMP_ECHOREPLY   0 /* Echo Reply */

Definition at line 48 of file ip_icmp.h.

#define ICMP_EXC_FRAGTIME   1 /* Fragment Reass time exceeded */

Definition at line 91 of file ip_icmp.h.

#define ICMP_EXC_TTL   0 /* TTL count exceeded */

Definition at line 90 of file ip_icmp.h.

#define ICMP_FRAG_NEEDED   4 /* Fragmentation Needed/DF set */

Definition at line 69 of file ip_icmp.h.

#define ICMP_HOST_ANO   10

Definition at line 75 of file ip_icmp.h.

#define ICMP_HOST_ISOLATED   8

Definition at line 73 of file ip_icmp.h.

#define ICMP_HOST_UNKNOWN   7

Definition at line 72 of file ip_icmp.h.

#define ICMP_HOST_UNR_TOS   12

Definition at line 77 of file ip_icmp.h.

#define ICMP_HOST_UNREACH   1 /* Host Unreachable */

Definition at line 66 of file ip_icmp.h.

#define ICMP_INFO_REPLY   16 /* Information Reply */

Definition at line 58 of file ip_icmp.h.

#define ICMP_INFO_REQUEST   15 /* Information Request */

Definition at line 57 of file ip_icmp.h.

#define ICMP_NET_ANO   9

Definition at line 74 of file ip_icmp.h.

#define ICMP_NET_UNKNOWN   6

Definition at line 71 of file ip_icmp.h.

#define ICMP_NET_UNR_TOS   11

Definition at line 76 of file ip_icmp.h.

#define ICMP_NET_UNREACH   0 /* Network Unreachable */

Definition at line 65 of file ip_icmp.h.

#define ICMP_PARAMETERPROB   12 /* Parameter Problem */

Definition at line 54 of file ip_icmp.h.

#define ICMP_PKT_FILTERED   13 /* Packet filtered */

Definition at line 78 of file ip_icmp.h.

#define ICMP_PORT_UNREACH   3 /* Port Unreachable */

Definition at line 68 of file ip_icmp.h.

#define ICMP_PREC_CUTOFF   15 /* Precedence cut off */

Definition at line 80 of file ip_icmp.h.

#define ICMP_PREC_VIOLATION   14 /* Precedence violation */

Definition at line 79 of file ip_icmp.h.

#define ICMP_PROT_UNREACH   2 /* Protocol Unreachable */

Definition at line 67 of file ip_icmp.h.

#define ICMP_REDIR_HOST   1 /* Redirect Host */

Definition at line 85 of file ip_icmp.h.

#define ICMP_REDIR_HOSTTOS   3 /* Redirect Host for TOS */

Definition at line 87 of file ip_icmp.h.

#define ICMP_REDIR_NET   0 /* Redirect Net */

Definition at line 84 of file ip_icmp.h.

#define ICMP_REDIR_NETTOS   2 /* Redirect Net for TOS */

Definition at line 86 of file ip_icmp.h.

#define ICMP_REDIRECT   5 /* Redirect (change route) */

Definition at line 51 of file ip_icmp.h.

#define ICMP_SOURCE_QUENCH   4 /* Source Quench */

Definition at line 50 of file ip_icmp.h.

#define ICMP_SR_FAILED   5 /* Source Route failed */

Definition at line 70 of file ip_icmp.h.

#define ICMP_TIME_EXCEEDED   11 /* Time Exceeded */

Definition at line 53 of file ip_icmp.h.

#define ICMP_TIMESTAMP   13 /* Timestamp Request */

Definition at line 55 of file ip_icmp.h.

#define ICMP_TIMESTAMPREPLY   14 /* Timestamp Reply */

Definition at line 56 of file ip_icmp.h.

#define NR_ICMP_TYPES   18

Definition at line 61 of file ip_icmp.h.

#define NR_ICMP_UNREACH   15 /* instead of hardcoding immediate value */

Definition at line 81 of file ip_icmp.h.