home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / CHIPCD_2_2000.iso / software / testsoft / anasil / _SETUP.1 / ARP.DEC < prev    next >
Text File  |  1997-10-18  |  2KB  |  72 lines

  1. ; ************************************************************************
  2. ;
  3. ; Plik z definicjami dekodera ramek dla ARP i AARP
  4. ;
  5. ; ************************************************************************
  6.  
  7. ;-----------------------------------------------------------
  8. ;
  9. ;  Tablice translacji - linie maja format
  10. ;   <liczba hex|liczba dec>,"tekst"
  11.  
  12.  
  13. [# ARP_FUNCTION ]
  14.    Translate( 0x0001,"ARP request" )
  15.    Translate( 0x0002,"ARP reply" )
  16.    Translate( 0x0003,"RARP request" )
  17.    Translate( 0x0004,"RARP reply" )
  18.  
  19. [# AARP_FUNCTION ]
  20.    Translate( 0x0001,"AARP request" )
  21.    Translate( 0x0002,"AARP reply" )
  22.    Translate( 0x0003,"AARP probe" )
  23.  
  24. ;-----------------------------------------------------------
  25. ;
  26. ;  Definicje fragmentow ramek
  27. ;
  28. ;  Kazda linia ma nastepujacy format:
  29. ;    Linia,Kolumna,Max.Szerokosc wartosci,Label,Format.Zmienna[,id tablicy translacji (tylko dla typow numerycznych)]
  30. ;
  31.  
  32. [$ ARP_FRAME_DEF ]
  33.   Layer( "ARP protocol header","ARP" )
  34.   Field( 1,0,18,"Hardware:","%04x", RWord(0) )
  35.   Field( 2,0,18,"Protocol:","%04x", RWord(2) )
  36.   Field( 3,0,18,"Hardware addr len:","%02x", Byte(4) )
  37.   Field( 4,0,18,"Protocol addr len:","%02x", Byte(5) )
  38.   Field( 5,0,18,"Function:","%s", RWord(6), ARP_FUNCTION )
  39.  
  40.   Field( 6,0,18,"Source hard:","%s", HString(8,6,"-") )
  41.   Field( 7,0,18,"Source proto:","%s", DString(14,4,".") )
  42.   Field( 8,0,18,"Dest hard:","%s", HString(18,6,"-") )
  43.   Field( 9,0,18,"Dest proto:","%s", DString(24,4,".") )
  44.  
  45.  
  46. [$ AARP_FRAME_DEF ]
  47.   Layer( "AARP protocol header","AARP" )
  48.   Field( 1,0,18,"Hardware:","%04x", RWord(0) )
  49.   Field( 2,0,18,"Protocol:","%04x", RWord(2) )
  50.   Field( 3,0,18,"Hardware addr len:","%02x", Byte(4) )
  51.   Field( 4,0,18,"Protocol addr len:","%02x", Byte(5) )
  52.   Field( 5,0,18,"Function:","%s", RWord(6), AARP_FUNCTION )
  53.  
  54.   Field( 6,0,18,"Source hard:","%s", HString(8,6,"-") )
  55.   Field( 7,0,18,"Source proto:","%s", HString(14,4,".") )
  56.   Field( 8,0,18,"Dest hard:","%s", HString(18,6,"-") )
  57.   Field( 9,0,18,"Dest proto:","%s", HString(24,4,".") )
  58.  
  59. ;-----------------------------------------------------------
  60. ;
  61. ;  Sekcje komend
  62. ;
  63.  
  64. [^ ARP_Frame]
  65. expand(ARP_FRAME_DEF)
  66. goto( Undecoded )
  67.  
  68. [^ AARP_Frame]
  69. expand(AARP_FRAME_DEF)
  70. goto( Undecoded )
  71.  
  72.