Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

icmp.h File Reference

Go to the source code of this file.

Defines

#define ICMP_HDR_LEN   4
#define ICMP_LEN_MIN   8
#define __attribute__(x)
#define ICMP_CODE_NONE   0
#define ICMP_ECHOREPLY   0
#define ICMP_UNREACH   3
#define ICMP_UNREACH_NET   0
#define ICMP_UNREACH_HOST   1
#define ICMP_UNREACH_PROTO   2
#define ICMP_UNREACH_PORT   3
#define ICMP_UNREACH_NEEDFRAG   4
#define ICMP_UNREACH_SRCFAIL   5
#define ICMP_UNREACH_NET_UNKNOWN   6
#define ICMP_UNREACH_HOST_UNKNOWN   7
#define ICMP_UNREACH_ISOLATED   8
#define ICMP_UNREACH_NET_PROHIB   9
#define ICMP_UNREACH_HOST_PROHIB   10
#define ICMP_UNREACH_TOSNET   11
#define ICMP_UNREACH_TOSHOST   12
#define ICMP_UNREACH_FILTER_PROHIB   13
#define ICMP_UNREACH_HOST_PRECEDENCE   14
#define ICMP_UNREACH_PRECEDENCE_CUTOFF   15
#define ICMP_SRCQUENCH   4
#define ICMP_REDIRECT   5
#define ICMP_REDIRECT_NET   0
#define ICMP_REDIRECT_HOST   1
#define ICMP_REDIRECT_TOSNET   2
#define ICMP_REDIRECT_TOSHOST   3
#define ICMP_ALTHOSTADDR   6
#define ICMP_ECHO   8
#define ICMP_RTRADVERT   9
#define ICMP_RTRADVERT_NORMAL   0
#define ICMP_RTRADVERT_NOROUTE_COMMON   16
#define ICMP_RTRSOLICIT   10
#define ICMP_TIMEXCEED   11
#define ICMP_TIMEXCEED_INTRANS   0
#define ICMP_TIMEXCEED_REASS   1
#define ICMP_PARAMPROB   12
#define ICMP_PARAMPROB_ERRATPTR   0
#define ICMP_PARAMPROB_OPTABSENT   1
#define ICMP_PARAMPROB_LENGTH   2
#define ICMP_TSTAMP   13
#define ICMP_TSTAMPREPLY   14
#define ICMP_INFO   15
#define ICMP_INFOREPLY   16
#define ICMP_MASK   17
#define ICMP_MASKREPLY   18
#define ICMP_TRACEROUTE   30
#define ICMP_DATACONVERR   31
#define ICMP_MOBILE_REDIRECT   32
#define ICMP_IPV6_WHEREAREYOU   33
#define ICMP_IPV6_IAMHERE   34
#define ICMP_MOBILE_REG   35
#define ICMP_MOBILE_REGREPLY   36
#define ICMP_DNS   37
#define ICMP_DNSREPLY   38
#define ICMP_SKIP   39
#define ICMP_PHOTURIS   40
#define ICMP_PHOTURIS_UNKNOWN_INDEX   0
#define ICMP_PHOTURIS_AUTH_FAILED   1
#define ICMP_PHOTURIS_DECOMPRESS_FAILED   2
#define ICMP_PHOTURIS_DECRYPT_FAILED   3
#define ICMP_PHOTURIS_NEED_AUTHN   4
#define ICMP_PHOTURIS_NEED_AUTHZ   5
#define ICMP_TYPE_MAX   40
#define ICMP_INFOTYPE(type)
#define icmp_gwaddr   icmp_void
#define icmp_pptr   icmp_void
#define icmp_gwaddr   icmp_void
#define ICMP_RTR_PREF_NODEFAULT   0x80000000
#define icmp_pack_hdr(hdr, type, code)
#define icmp_pack_hdr_echo(hdr, type, code, id, seq, data, len)
#define icmp_pack_hdr_quote(hdr, type, code, word, pkt, len)
#define icmp_pack_hdr_mask(hdr, type, code, id, seq, mask)
#define icmp_pack_hdr_needfrag(hdr, type, code, mtu, pkt, len)


Define Documentation

#define __attribute__  ) 
 

Definition at line 19 of file icmp.h.

#define ICMP_ALTHOSTADDR   6
 

Definition at line 61 of file icmp.h.

#define ICMP_CODE_NONE   0
 

Definition at line 36 of file icmp.h.

#define ICMP_DATACONVERR   31
 

Definition at line 81 of file icmp.h.

#define ICMP_DNS   37
 

Definition at line 87 of file icmp.h.

#define ICMP_DNSREPLY   38
 

Definition at line 88 of file icmp.h.

#define ICMP_ECHO   8
 

Definition at line 62 of file icmp.h.

Referenced by DecodeICMP(), icmp_main(), IcmpFileName(), IcmpIdCheck(), IcmpSeqCheck(), PrintICMPHeader(), and ps_tracker_update_icmp().

#define ICMP_ECHOREPLY   0
 

Definition at line 37 of file icmp.h.

Referenced by DecodeICMP(), IcmpFileName(), IcmpIdCheck(), IcmpSeqCheck(), and PrintICMPHeader().

#define icmp_gwaddr   icmp_void
 

Definition at line 144 of file icmp.h.

#define icmp_gwaddr   icmp_void
 

Definition at line 144 of file icmp.h.

#define ICMP_HDR_LEN   4
 

Definition at line 15 of file icmp.h.

Referenced by icmp_main(), ip6_checksum(), and ip_checksum().

#define ICMP_INFO   15
 

Definition at line 76 of file icmp.h.

#define ICMP_INFOREPLY   16
 

Definition at line 77 of file icmp.h.

#define ICMP_INFOTYPE type   ) 
 

Value:

((type) == ICMP_ECHOREPLY || (type) == ICMP_ECHO ||             \
        (type) == ICMP_RTRADVERT || (type) == ICMP_RTRSOLICIT ||        \
        (type) == ICMP_TSTAMP || (type) == ICMP_TSTAMPREPLY ||          \
        (type) == ICMP_INFO || (type) == ICMP_INFOREPLY ||              \
        (type) == ICMP_MASK || (type) == ICMP_MASKREPLY)

Definition at line 99 of file icmp.h.

#define ICMP_IPV6_IAMHERE   34
 

Definition at line 84 of file icmp.h.

#define ICMP_IPV6_WHEREAREYOU   33
 

Definition at line 83 of file icmp.h.

#define ICMP_LEN_MIN   8
 

Definition at line 16 of file icmp.h.

#define ICMP_MASK   17
 

Definition at line 78 of file icmp.h.

#define ICMP_MASKREPLY   18
 

Definition at line 79 of file icmp.h.

#define ICMP_MOBILE_REDIRECT   32
 

Definition at line 82 of file icmp.h.

#define ICMP_MOBILE_REG   35
 

Definition at line 85 of file icmp.h.

#define ICMP_MOBILE_REGREPLY   36
 

Definition at line 86 of file icmp.h.

#define icmp_pack_hdr hdr,
type,
code   ) 
 

Value:

do {                            \
        struct icmp_hdr *icmp_pack_p = (struct icmp_hdr *)(hdr);        \
        icmp_pack_p->icmp_type = type; icmp_pack_p->icmp_code = code;   \
} while (0)

Definition at line 225 of file icmp.h.

Referenced by __pyx_f_4dnet_icmp_pack_hdr().

#define icmp_pack_hdr_echo hdr,
type,
code,
id,
seq,
data,
len   ) 
 

Value:

do {    \
        struct icmp_msg_echo *echo_pack_p = (struct icmp_msg_echo *)    \
                ((uint8_t *)(hdr) + ICMP_HDR_LEN);                      \
        icmp_pack_hdr(hdr, type, code);                                 \
        echo_pack_p->icmp_id = htons(id);                               \
        echo_pack_p->icmp_seq = htons(seq);                             \
        memmove(echo_pack_p->icmp_data, data, len);                     \
} while (0)

Definition at line 230 of file icmp.h.

#define icmp_pack_hdr_mask hdr,
type,
code,
id,
seq,
mask   ) 
 

Value:

do {            \
        struct icmp_msg_mask *mask_pack_p = (struct icmp_msg_mask *)    \
                ((uint8_t *)(hdr) + ICMP_HDR_LEN);                      \
        icmp_pack_hdr(hdr, type, code);                                 \
        mask_pack_p->icmp_id = htons(id);                               \
        mask_pack_p->icmp_seq = htons(seq);                             \
        mask_pack_p->icmp_mask = htonl(mask);                           \
} while (0)

Definition at line 247 of file icmp.h.

#define icmp_pack_hdr_needfrag hdr,
type,
code,
mtu,
pkt,
len   ) 
 

Value:

do {    \
        struct icmp_msg_needfrag *frag_pack_p =                         \
        (struct icmp_msg_needfrag *)((uint8_t *)(hdr) + ICMP_HDR_LEN);  \
        icmp_pack_hdr(hdr, type, code);                                 \
        frag_pack_p->icmp_void = 0;                                     \
        frag_pack_p->icmp_mtu = htons(mtu);                             \
        memmove(frag_pack_p->icmp_ip, pkt, len);                        \
} while (0)

Definition at line 256 of file icmp.h.

#define icmp_pack_hdr_quote hdr,
type,
code,
word,
pkt,
len   ) 
 

Value:

do {    \
        struct icmp_msg_quote *quote_pack_p = (struct icmp_msg_quote *) \
                ((uint8_t *)(hdr) + ICMP_HDR_LEN);                      \
        icmp_pack_hdr(hdr, type, code);                                 \
        quote_pack_p->icmp_void = htonl(word);                          \
        memmove(quote_pack_p->icmp_ip, pkt, len);                       \
} while (0)

Definition at line 239 of file icmp.h.

#define ICMP_PARAMPROB   12
 

Definition at line 70 of file icmp.h.

#define ICMP_PARAMPROB_ERRATPTR   0
 

Definition at line 71 of file icmp.h.

#define ICMP_PARAMPROB_LENGTH   2
 

Definition at line 73 of file icmp.h.

#define ICMP_PARAMPROB_OPTABSENT   1
 

Definition at line 72 of file icmp.h.

#define ICMP_PHOTURIS   40
 

Definition at line 90 of file icmp.h.

#define ICMP_PHOTURIS_AUTH_FAILED   1
 

Definition at line 92 of file icmp.h.

#define ICMP_PHOTURIS_DECOMPRESS_FAILED   2
 

Definition at line 93 of file icmp.h.

#define ICMP_PHOTURIS_DECRYPT_FAILED   3
 

Definition at line 94 of file icmp.h.

#define ICMP_PHOTURIS_NEED_AUTHN   4
 

Definition at line 95 of file icmp.h.

#define ICMP_PHOTURIS_NEED_AUTHZ   5
 

Definition at line 96 of file icmp.h.

#define ICMP_PHOTURIS_UNKNOWN_INDEX   0
 

Definition at line 91 of file icmp.h.

#define icmp_pptr   icmp_void
 

Definition at line 131 of file icmp.h.

#define ICMP_REDIRECT   5
 

Definition at line 56 of file icmp.h.

Referenced by DecodeICMP(), IcmpFileName(), and PrintICMPHeader().

#define ICMP_REDIRECT_HOST   1
 

Definition at line 58 of file icmp.h.

#define ICMP_REDIRECT_NET   0
 

Definition at line 57 of file icmp.h.

#define ICMP_REDIRECT_TOSHOST   3
 

Definition at line 60 of file icmp.h.

#define ICMP_REDIRECT_TOSNET   2
 

Definition at line 59 of file icmp.h.

#define ICMP_RTR_PREF_NODEFAULT   0x80000000
 

Definition at line 148 of file icmp.h.

#define ICMP_RTRADVERT   9
 

Definition at line 63 of file icmp.h.

#define ICMP_RTRADVERT_NORMAL   0
 

Definition at line 64 of file icmp.h.

#define ICMP_RTRADVERT_NOROUTE_COMMON   16
 

Definition at line 65 of file icmp.h.

#define ICMP_RTRSOLICIT   10
 

Definition at line 66 of file icmp.h.

#define ICMP_SKIP   39
 

Definition at line 89 of file icmp.h.

#define ICMP_SRCQUENCH   4
 

Definition at line 55 of file icmp.h.

#define ICMP_TIMEXCEED   11
 

Definition at line 67 of file icmp.h.

#define ICMP_TIMEXCEED_INTRANS   0
 

Definition at line 68 of file icmp.h.

#define ICMP_TIMEXCEED_REASS   1
 

Definition at line 69 of file icmp.h.

#define ICMP_TRACEROUTE   30
 

Definition at line 80 of file icmp.h.

#define ICMP_TSTAMP   13
 

Definition at line 74 of file icmp.h.

#define ICMP_TSTAMPREPLY   14
 

Definition at line 75 of file icmp.h.

#define ICMP_TYPE_MAX   40
 

Definition at line 97 of file icmp.h.

#define ICMP_UNREACH   3
 

Definition at line 38 of file icmp.h.

#define ICMP_UNREACH_FILTER_PROHIB   13
 

Definition at line 52 of file icmp.h.

#define ICMP_UNREACH_HOST   1
 

Definition at line 40 of file icmp.h.

#define ICMP_UNREACH_HOST_PRECEDENCE   14
 

Definition at line 53 of file icmp.h.

#define ICMP_UNREACH_HOST_PROHIB   10
 

Definition at line 49 of file icmp.h.

#define ICMP_UNREACH_HOST_UNKNOWN   7
 

Definition at line 46 of file icmp.h.

#define ICMP_UNREACH_ISOLATED   8
 

Definition at line 47 of file icmp.h.

#define ICMP_UNREACH_NEEDFRAG   4
 

Definition at line 43 of file icmp.h.

#define ICMP_UNREACH_NET   0
 

Definition at line 39 of file icmp.h.

#define ICMP_UNREACH_NET_PROHIB   9
 

Definition at line 48 of file icmp.h.

#define ICMP_UNREACH_NET_UNKNOWN   6
 

Definition at line 45 of file icmp.h.

#define ICMP_UNREACH_PORT   3
 

Definition at line 42 of file icmp.h.

#define ICMP_UNREACH_PRECEDENCE_CUTOFF   15
 

Definition at line 54 of file icmp.h.

#define ICMP_UNREACH_PROTO   2
 

Definition at line 41 of file icmp.h.

#define ICMP_UNREACH_SRCFAIL   5
 

Definition at line 44 of file icmp.h.

#define ICMP_UNREACH_TOSHOST   12
 

Definition at line 51 of file icmp.h.

#define ICMP_UNREACH_TOSNET   11
 

Definition at line 50 of file icmp.h.


Generated on Sun May 14 14:51:21 2006 by  doxygen 1.4.2