home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 February
/
CHIPCD_2_2000.iso
/
software
/
testsoft
/
anasil
/
_SETUP.1
/
ICMP.DEC
< prev
next >
Wrap
Text File
|
1998-10-28
|
4KB
|
134 lines
; ************************************************************************
;
; Plik z definicjami dekodera ramek dla ICMP
;
; ************************************************************************
[# ICMP_TYPE ]
Translate( 0,"Echo reply" )
Translate( 3,"Destination unreachable" )
Translate( 4,"Source quench" )
Translate( 5,"Redirect" )
Translate( 6,"Alternate host address" )
Translate( 8,"Echo request" )
Translate( 9,"Router advertisement" )
Translate( 10,"Router solicitation" )
Translate( 11,"Time exceeded" )
Translate( 12,"Parameter problem" )
Translate( 13,"Timestamp request" )
Translate( 14,"Timestamp reply" )
Translate( 15,"Information request (obsolete)" )
Translate( 16,"Information reply (obsolete)" )
Translate( 17,"Address mask request" )
Translate( 18,"Address mask reply" )
Translate( 30,"Traceroute" )
Translate( 31,"Datagram Conversion Error" )
Translate( 32,"Mobile Host Redirect" )
Translate( 33,"IPv6 Where-Are-You" )
Translate( 34,"IPv6 I-Am-Here" )
Translate( 35,"Mobile Registration Request" )
Translate( 36,"Mobile Registration Reply" )
[# ICMP3_CODE ]
Translate( 0,"Network unreachable" )
Translate( 1,"Host unreachable" )
Translate( 2,"Protocol unreachable" )
Translate( 3,"Port unreachable" )
Translate( 4,"Fragmentation needed & Don't fragment" )
Translate( 5,"Source route failed" )
Translate( 6,"Destination network unknown" )
Translate( 7,"Destination host unknown" )
Translate( 8,"Source host isolated" )
Translate( 9,"Destination network administratively prohibited" )
Translate( 10,"Destination host administratively prohibited" )
Translate( 11,"Network unreachable for TOS" )
Translate( 12,"Host unreachable for TOS" )
Translate( 13,"Communication administratively prohibited by filtering" )
Translate( 14,"Host precedence violation" )
Translate( 15,"Precedence cutoff in effect" )
[# ICMP5_CODE ]
Translate( 0,"Redirect for network" )
Translate( 1,"Redirect for host" )
Translate( 2,"Redirect for TOS and network" )
Translate( 3,"Redirect for TOS and host" )
[# ICMP11_CODE ]
Translate( 0,"TTL equals 0 during transit" )
Translate( 1,"TTL equals 0 during reassembly" )
[# ICMP12_CODE ]
Translate( 0,"IP header bad" )
Translate( 1,"Required option missing" )
Translate( 2,"Bad length" )
;-----------------------------------------------------------
;
; Definicje fragmentow ramek
;
; Kazda linia ma nastepujacy format:
; Linia,Kolumna,Max.Szerokosc wartosci,Label,Format.Zmienna[,id tablicy translacji (tylko dla typow numerycznych)]
;
[$ ICMP_Header ]
Layer( "ICMP header","ICMP" )
Field( 0,0,3,"Type", "%s", Byte(0), ICMP_TYPE ) = ICMP_TYPE_OFF
[$ ICMPX_Header ]
Field( 0,0,3,"Code", "%d", Byte(0) )
Field( 1,0,5,"Checksum", "%05X", RWord(1) )
[$ ICMP0_Header ]
Field( 0,0,3,"Code", "%d", Byte(0) )
Field( 1,0,5,"Checksum", "%05X", RWord(1) )
Field( 1,1,5,"Identifier", "%05X", RWord(3) )
Field( 2,0,5,"Seq. number", "%05X", RWord(5) )
[$ ICMP3_Header ]
Field( 0,0,3,"Code", "%s", Byte(0), ICMP3_CODE )
Field( 1,0,5,"Checksum", "%05X", RWord(1) )
;-----------------------------------------------------------
;
; Sekcje komend
;
[^ ICMP_Frame]
expand(ICMP_Header)
TableJump( Byte(ICMP_TYPE_OFF) )
0,ICMP0_Frame
3,ICMP3_Frame
4,ICMPX_Frame
5,ICMPX_Frame
8,ICMP0_Frame
9,ICMPX_Frame
10,ICMPX_Frame
11,ICMPX_Frame
12,ICMPX_Frame
13,ICMPX_Frame
14,ICMPX_Frame
15,ICMPX_Frame
16,ICMPX_Frame
17,ICMPX_Frame
18,ICMPX_Frame
TableEnd
goto(Undecoded)
[^ ICMPX_Frame ]
expand(ICMPX_Header)
goto(Undecoded)
[^ ICMP0_Frame ]
expand(ICMP0_Header)
goto(Undecoded)
[^ ICMP3_Frame ]
expand(ICMP3_Header)
goto(Undecoded)