home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 February
/
CHIPCD_2_2000.iso
/
software
/
testsoft
/
anasil
/
_SETUP.1
/
ARP.DEC
< prev
next >
Wrap
Text File
|
1997-10-18
|
2KB
|
72 lines
; ************************************************************************
;
; Plik z definicjami dekodera ramek dla ARP i AARP
;
; ************************************************************************
;-----------------------------------------------------------
;
; Tablice translacji - linie maja format
; <liczba hex|liczba dec>,"tekst"
[# ARP_FUNCTION ]
Translate( 0x0001,"ARP request" )
Translate( 0x0002,"ARP reply" )
Translate( 0x0003,"RARP request" )
Translate( 0x0004,"RARP reply" )
[# AARP_FUNCTION ]
Translate( 0x0001,"AARP request" )
Translate( 0x0002,"AARP reply" )
Translate( 0x0003,"AARP probe" )
;-----------------------------------------------------------
;
; Definicje fragmentow ramek
;
; Kazda linia ma nastepujacy format:
; Linia,Kolumna,Max.Szerokosc wartosci,Label,Format.Zmienna[,id tablicy translacji (tylko dla typow numerycznych)]
;
[$ ARP_FRAME_DEF ]
Layer( "ARP protocol header","ARP" )
Field( 1,0,18,"Hardware:","%04x", RWord(0) )
Field( 2,0,18,"Protocol:","%04x", RWord(2) )
Field( 3,0,18,"Hardware addr len:","%02x", Byte(4) )
Field( 4,0,18,"Protocol addr len:","%02x", Byte(5) )
Field( 5,0,18,"Function:","%s", RWord(6), ARP_FUNCTION )
Field( 6,0,18,"Source hard:","%s", HString(8,6,"-") )
Field( 7,0,18,"Source proto:","%s", DString(14,4,".") )
Field( 8,0,18,"Dest hard:","%s", HString(18,6,"-") )
Field( 9,0,18,"Dest proto:","%s", DString(24,4,".") )
[$ AARP_FRAME_DEF ]
Layer( "AARP protocol header","AARP" )
Field( 1,0,18,"Hardware:","%04x", RWord(0) )
Field( 2,0,18,"Protocol:","%04x", RWord(2) )
Field( 3,0,18,"Hardware addr len:","%02x", Byte(4) )
Field( 4,0,18,"Protocol addr len:","%02x", Byte(5) )
Field( 5,0,18,"Function:","%s", RWord(6), AARP_FUNCTION )
Field( 6,0,18,"Source hard:","%s", HString(8,6,"-") )
Field( 7,0,18,"Source proto:","%s", HString(14,4,".") )
Field( 8,0,18,"Dest hard:","%s", HString(18,6,"-") )
Field( 9,0,18,"Dest proto:","%s", HString(24,4,".") )
;-----------------------------------------------------------
;
; Sekcje komend
;
[^ ARP_Frame]
expand(ARP_FRAME_DEF)
goto( Undecoded )
[^ AARP_Frame]
expand(AARP_FRAME_DEF)
goto( Undecoded )