home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 February
/
CHIPCD_2_2000.iso
/
software
/
testsoft
/
anasil
/
_SETUP.1
/
NETBEUI.DEC
< prev
next >
Wrap
Text File
|
1997-09-09
|
3KB
|
94 lines
; ************************************************************************
;
; Plik z definicjami dekodera ramek dla protokolu NetBeui
;
; ************************************************************************
;-----------------------------------------------------------
;
; Tablice translacji - linie maja format
; <liczba hex|liczba dec>,"tekst"
[# LM_TYPE ]
Translate( 0x00,"Redirector" )
Translate( 0x03,"User" )
Translate( 0x05,"Forwarded name" )
Translate( 0x20,"Server" )
[# NETBIOS_TYPE ]
Translate( 0x00,"Add group name query" )
Translate( 0x01,"Add name query" )
Translate( 0x02,"Name in conflict" )
Translate( 0x03,"Status query" )
Translate( 0x07,"Terminate trace (remote)" )
Translate( 0x08,"Datagram" )
Translate( 0x09,"Datagram broadcast" )
Translate( 0x0A,"Name query" )
Translate( 0x0D,"Add name response" )
Translate( 0x0E,"Name recognized" )
Translate( 0x0F,"Status response" )
Translate( 0x13,"Terminate trace" )
Translate( 0x14,"Data ACK" )
Translate( 0x15,"Data first middle" )
Translate( 0x16,"Data only last" )
Translate( 0x17,"Session confirm" )
Translate( 0x18,"Session end" )
Translate( 0x19,"Session initialize" )
Translate( 0x1A,"No receive" )
Translate( 0x1B,"Receive outstanding" )
Translate( 0x1C,"Receive continue" )
Translate( 0x1F,"Session alive" )
;-----------------------------------------------------------
;
; Definicje fragmentow ramek
;
; Kazda linia ma nastepujacy format:
; Linia,Kolumna,Max.Szerokosc wartosci,Label,Format.Zmienna[,id tablicy translacji (tylko dla typow numerycznych)]
;
[$ NETBEUI_HEADER ]
Layer( "NetBIOS frame header","NBF" )
Field( 0,0,5, "Length","%d", Word(0) )
Field( 1,0,5, "Delimiter","%04X", Word(2) )
Field( 2,0,3, "Command","%02X", Byte(4) )
Field( 3,0,26,"","(%s)", Byte(4), NETBIOS_TYPE )
Field( 4,0,3, "Data 1","%02X", Byte(5) )
Field( 5,0,5, "Data 2","%04X", Word(6) )
Field( 6,0,9, "Xmit/Resp","%08X", Long(8) )
[$ NETBEUI_HEADER_I ]
Field( 0,0,3,"Destination session", "%02X", Byte(0) )
Field( 1,0,3,"Source session", "%02X", Byte(1) )
[$ NETBEUI_HEADER_UI ]
Field( 0,0,17,"Destination name", "%s", String(0,15) )
Field( 0,1,15,"Destination type", "%s", Byte(15), LM_TYPE )
Field( 1,0,17,"Source name", "%s", String(16,15) )
Field( 1,1,15,"Source type", "%s", Byte(31), LM_TYPE )
;-----------------------------------------------------------
;
; Sekcje komend
;
[^ NetBeui]
On ( Byte(4)>0x13 )
expand(NETBEUI_HEADER)
expand(NETBEUI_HEADER_I)
goto( Undecoded )
OnEnd
expand(NETBEUI_HEADER)
expand(NETBEUI_HEADER_UI)
goto( Undecoded )