Subversion Repositories Kolibri OS

Rev

Rev 3545 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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