Rev 6477 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6477 | Rev 7892 | ||
---|---|---|---|
1 | ; ICMP types & codes |
1 | ; ICMP types & codes |
2 | 2 | ||
3 | ICMP_ECHOREPLY = 0 ; echo reply message |
3 | ICMP_ECHOREPLY = 0 ; echo reply message |
4 | 4 | ||
5 | ICMP_UNREACH = 3 |
5 | ICMP_UNREACH = 3 |
6 | ICMP_UNREACH_NET = 0 ; bad net |
6 | ICMP_UNREACH_NET = 0 ; bad net |
7 | ICMP_UNREACH_HOST = 1 ; bad host |
7 | ICMP_UNREACH_HOST = 1 ; bad host |
8 | ICMP_UNREACH_PROTOCOL = 2 ; bad protocol |
8 | ICMP_UNREACH_PROTOCOL = 2 ; bad protocol |
9 | ICMP_UNREACH_PORT = 3 ; bad port |
9 | ICMP_UNREACH_PORT = 3 ; bad port |
10 | ICMP_UNREACH_NEEDFRAG = 4 ; IP_DF caused drop |
10 | ICMP_UNREACH_NEEDFRAG = 4 ; IP_DF caused drop |
11 | ICMP_UNREACH_SRCFAIL = 5 ; src route failed |
11 | ICMP_UNREACH_SRCFAIL = 5 ; src route failed |
12 | ICMP_UNREACH_NET_UNKNOWN = 6 ; unknown net |
12 | ICMP_UNREACH_NET_UNKNOWN = 6 ; unknown net |
13 | ICMP_UNREACH_HOST_UNKNOWN = 7 ; unknown host |
13 | ICMP_UNREACH_HOST_UNKNOWN = 7 ; unknown host |
14 | ICMP_UNREACH_ISOLATED = 8 ; src host isolated |
14 | ICMP_UNREACH_ISOLATED = 8 ; src host isolated |
15 | ICMP_UNREACH_NET_PROHIB = 9 ; prohibited access |
15 | ICMP_UNREACH_NET_PROHIB = 9 ; prohibited access |
16 | ICMP_UNREACH_HOST_PROHIB = 10 ; ditto |
16 | ICMP_UNREACH_HOST_PROHIB = 10 ; ditto |
17 | ICMP_UNREACH_TOSNET = 11 ; bad tos for net |
17 | ICMP_UNREACH_TOSNET = 11 ; bad tos for net |
18 | ICMP_UNREACH_TOSHOST = 12 ; bad tos for host |
18 | ICMP_UNREACH_TOSHOST = 12 ; bad tos for host |
19 | ICMP_UNREACH_FILTER_PROHIB = 13 ; admin prohib |
19 | ICMP_UNREACH_FILTER_PROHIB = 13 ; admin prohib |
20 | ICMP_UNREACH_HOST_PRECEDENCE = 14 ; host prec vio. |
20 | ICMP_UNREACH_HOST_PRECEDENCE = 14 ; host prec vio. |
21 | ICMP_UNREACH_PRECEDENCE_CUTOFF = 15 ; prec cutoff |
21 | ICMP_UNREACH_PRECEDENCE_CUTOFF = 15 ; prec cutoff |
22 | 22 | ||
23 | ICMP_SOURCEQUENCH = 4 ; Packet lost, slow down |
23 | ICMP_SOURCEQUENCH = 4 ; Packet lost, slow down |
24 | 24 | ||
25 | ICMP_REDIRECT = 5 ; shorter route, codes: |
25 | ICMP_REDIRECT = 5 ; shorter route, codes: |
26 | ICMP_REDIRECT_NET = 0 ; for network |
26 | ICMP_REDIRECT_NET = 0 ; for network |
27 | ICMP_REDIRECT_HOST = 1 ; for host |
27 | ICMP_REDIRECT_HOST = 1 ; for host |
28 | ICMP_REDIRECT_TOSNET = 2 ; for tos and net |
28 | ICMP_REDIRECT_TOSNET = 2 ; for tos and net |
29 | ICMP_REDIRECT_TOSHOST = 3 ; for tos and host |
29 | ICMP_REDIRECT_TOSHOST = 3 ; for tos and host |
30 | 30 | ||
31 | ICMP_ALTHOSTADDR = 6 ; alternate host address |
31 | ICMP_ALTHOSTADDR = 6 ; alternate host address |
32 | ICMP_ECHO = 8 ; echo service |
32 | ICMP_ECHO = 8 ; echo service |
33 | ICMP_ROUTERADVERT = 9 ; router advertisement |
33 | ICMP_ROUTERADVERT = 9 ; router advertisement |
34 | ICMP_ROUTERADVERT_NORMAL = 0 ; normal advertisement |
34 | ICMP_ROUTERADVERT_NORMAL = 0 ; normal advertisement |
35 | ICMP_ROUTERADVERT_NOROUTE_COMMON = 16 ; selective routing |
35 | ICMP_ROUTERADVERT_NOROUTE_COMMON = 16 ; selective routing |
36 | 36 | ||
37 | ICMP_ROUTERSOLICIT = 10 ; router solicitation |
37 | ICMP_ROUTERSOLICIT = 10 ; router solicitation |
38 | ICMP_TIMXCEED = 11 ; time exceeded, code: |
38 | ICMP_TIMXCEED = 11 ; time exceeded, code: |
39 | ICMP_TIMXCEED_INTRANS = 0 ; ttl==0 in transit |
39 | ICMP_TIMXCEED_INTRANS = 0 ; ttl==0 in transit |
40 | ICMP_TIMXCEED_REASS = 1 ; ttl==0 in reass |
40 | ICMP_TIMXCEED_REASS = 1 ; ttl==0 in reass |
41 | 41 | ||
42 | ICMP_PARAMPROB = 12 ; ip header bad |
42 | ICMP_PARAMPROB = 12 ; ip header bad |
43 | ICMP_PARAMPROB_ERRATPTR = 0 ; error at param ptr |
43 | ICMP_PARAMPROB_ERRATPTR = 0 ; error at param ptr |
44 | ICMP_PARAMPROB_OPTABSENT = 1 ; req. opt. absent |
44 | ICMP_PARAMPROB_OPTABSENT = 1 ; req. opt. absent |
45 | ICMP_PARAMPROB_LENGTH = 2 ; bad length |
45 | ICMP_PARAMPROB_LENGTH = 2 ; bad length |
46 | 46 | ||
47 | ICMP_TSTAMP = 13 ; timestamp r= est |
47 | ICMP_TSTAMP = 13 ; timestamp request |
48 | ICMP_TSTAMPREPLY = 14 ; timestamp reply |
48 | ICMP_TSTAMPREPLY = 14 ; timestamp reply |
49 | ICMP_IREQ = 15 ; information r= est |
49 | ICMP_IREQ = 15 ; information request |
50 | ICMP_IREQREPLY = 16 ; information reply |
50 | ICMP_IREQREPLY = 16 ; information reply |
51 | ICMP_MASKREQ = 17 ; address mask r= est |
51 | ICMP_MASKREQ = 17 ; address mask request |
52 | ICMP_MASKREPLY = 18 ; address mask reply |
52 | ICMP_MASKREPLY = 18 ; address mask reply |
53 | ICMP_TRACEROUTE = 30 ; traceroute |
53 | ICMP_TRACEROUTE = 30 ; traceroute |
54 | ICMP_DATACONVERR = 31 ; data conversion error |
54 | ICMP_DATACONVERR = 31 ; data conversion error |
55 | ICMP_MOBILE_REDIRECT = 32 ; mobile host redirect |
55 | ICMP_MOBILE_REDIRECT = 32 ; mobile host redirect |
56 | ICMP_IPV6_WHEREAREYOU = 33 ; IPv6 where-are-you |
56 | ICMP_IPV6_WHEREAREYOU = 33 ; IPv6 where-are-you |
57 | ICMP_IPV6_IAMHERE = 34 ; IPv6 i-am-here |
57 | ICMP_IPV6_IAMHERE = 34 ; IPv6 i-am-here |
58 | ICMP_MOBILE_REGREQUEST = 35 ; mobile registration req |
58 | ICMP_MOBILE_REGREQUEST = 35 ; mobile registration req |
59 | ICMP_MOBILE_REGREPLY = 36 ; mobile registreation reply |
59 | ICMP_MOBILE_REGREPLY = 36 ; mobile registreation reply |
60 | ICMP_SKIP = 39 ; SKIP |
60 | ICMP_SKIP = 39 ; SKIP |
61 | 61 | ||
62 | ICMP_PHOTURIS = 40 ; Photuris |
62 | ICMP_PHOTURIS = 40 ; Photuris |
63 | ICMP_PHOTURIS_UNKNOWN_INDEX = 1 ; unknown sec index |
63 | ICMP_PHOTURIS_UNKNOWN_INDEX = 1 ; unknown sec index |
64 | ICMP_PHOTURIS_AUTH_FAILED = 2 ; auth failed |
64 | ICMP_PHOTURIS_AUTH_FAILED = 2 ; auth failed |
65 | ICMP_PHOTURIS_DECRYPT_FAILED = 3 ; decrypt failed |
65 | ICMP_PHOTURIS_DECRYPT_FAILED = 3 ; decrypt failed |
66 | 66 | ||
67 | 67 | ||
68 | 68 | ||
69 | struct ICMP_header |
69 | struct ICMP_header |
70 | Type db ? |
70 | Type db ? |
71 | Code db ? |
71 | Code db ? |
72 | Checksum dw ? |
72 | Checksum dw ? |
73 | Identifier dw ? |
73 | Identifier dw ? |
74 | SequenceNumber dw ? |
74 | SequenceNumber dw ? |
75 | ends |
75 | ends |