home *** CD-ROM | disk | FTP | other *** search
/ PC Press: Internet / PC_PRESS.ISO / software / dos / misc / inar-100.exe / SRC / PCROUTE / DECLARE / P2S5.INC < prev    next >
Encoding:
Text File  |  1995-05-21  |  4.1 KB  |  119 lines

  1.  
  2.     .MODEL SMALL
  3.  
  4.     JUMPS                       ;; deal with long jump displacements 
  5.                                 ;; automatically
  6.     include global.inc
  7.  
  8.     .CODE                       ;; extablish the default segment
  9.  
  10.     include debug.inc
  11.     include log.inc
  12.     include timer.inc
  13.     include tasks.inc
  14.     include buffer.inc
  15.     include queue.inc
  16.  
  17.         ;; files for hardware support
  18.     include packet.inc
  19.     include pps.inc              ;; needed for packet slip only
  20.     include pp.inc               ;; needed for packet slip only
  21.  
  22.         ;; high level code
  23.     include if.inc
  24.     include ether.inc
  25.     include arptab.inc
  26.     include arp.inc
  27.     include dl_ip.inc
  28.     include rip.inc
  29.     include ip.inc
  30.     include icmp.inc
  31.     include udp.inc
  32.     include bootp.inc 
  33.  
  34.     DB_DECLARE                  ;; declare debugging routines
  35.  
  36.     cur_dl = 1
  37.  
  38.     ;; this is a packet driver entry
  39.     PKT_DECLARE %cur_dl, 60H, 01, 1514, 10240 ;; <name>, <Int Num> <Class (Eth=1)>
  40.     IF_DECLARE %cur_dl, %cur_dl, PKT        ;; <if name>, <real if>, <prefix>
  41.     ETH_DECLARE %cur_dl, %cur_dl, %cur_dl   ;; <eth name>, <if>, <task> 
  42.     ARP_DECLARE %cur_dl, %cur_dl            ;; <arp name>, <ether>
  43.     DL_IP_DECLARE %cur_dl, %cur_dl, ARP     ;; <dlip name>, <real dlip> <prefix>
  44.     cur_dl = cur_dl + 1
  45.  
  46.     ;; this is a packet driver entry
  47.     PKT_DECLARE %cur_dl, 61H, 01, 1514, 10240 ;; <name>, <Int Num> <Class (Eth=1)>
  48.     IF_DECLARE %cur_dl, %cur_dl, PKT        ;; <if name>, <real if>, <prefix>
  49.     ETH_DECLARE %cur_dl, %cur_dl, %cur_dl   ;; <eth name>, <if>, <task> 
  50.     ARP_DECLARE %cur_dl, %cur_dl            ;; <arp name>, <ether>
  51.     DL_IP_DECLARE %cur_dl, %cur_dl, ARP     ;; <dlip name>, <real dlip> <prefix>
  52.     cur_dl = cur_dl + 1
  53.  
  54.     ;; this is a packet slip driver entry
  55.     PPS_DECLARE %cur_dl
  56.     PKT_DECLARE %cur_dl, 62H, 06, 1500, 10240 ;; <name>, <Int Num> <Class (Slip=6)>
  57.     IF_DECLARE %cur_dl, %cur_dl, PKT
  58.     PP_DECLARE %cur_dl, %cur_dl, %cur_dl
  59.     DL_IP_DECLARE %cur_dl, %cur_dl, PP      ;; <dlip name>, <real dlip> <prefix>
  60.     cur_dl = cur_dl + 1
  61.  
  62.     ;; this is a packet slip driver entry
  63.     PPS_DECLARE %cur_dl
  64.     PKT_DECLARE %cur_dl, 63H, 06, 1500, 10240 ;; <name>, <Int Num> <Class (Slip=6)>
  65.     IF_DECLARE %cur_dl, %cur_dl, PKT
  66.     PP_DECLARE %cur_dl, %cur_dl, %cur_dl
  67.     DL_IP_DECLARE %cur_dl, %cur_dl, PP      ;; <dlip name>, <real dlip> <prefix>
  68.     cur_dl = cur_dl + 1
  69.  
  70.     ;; this is a packet slip driver entry
  71.     PPS_DECLARE %cur_dl
  72.     PKT_DECLARE %cur_dl, 64H, 06, 1500, 10240 ;; <name>, <Int Num> <Class (Slip=6)>
  73.     IF_DECLARE %cur_dl, %cur_dl, PKT
  74.     PP_DECLARE %cur_dl, %cur_dl, %cur_dl
  75.     DL_IP_DECLARE %cur_dl, %cur_dl, PP      ;; <dlip name>, <real dlip> <prefix>
  76.     cur_dl = cur_dl + 1
  77.  
  78.     ;; this is a packet slip driver entry
  79.     PPS_DECLARE %cur_dl
  80.     PKT_DECLARE %cur_dl, 65H, 06, 1500, 10240 ;; <name>, <Int Num> <Class (Slip=6)>
  81.     IF_DECLARE %cur_dl, %cur_dl, PKT
  82.     PP_DECLARE %cur_dl, %cur_dl, %cur_dl
  83.     DL_IP_DECLARE %cur_dl, %cur_dl, PP      ;; <dlip name>, <real dlip> <prefix>
  84.     cur_dl = cur_dl + 1
  85.  
  86.     ;; this is a packet slip driver entry
  87.     PPS_DECLARE %cur_dl
  88.     PKT_DECLARE %cur_dl, 66H, 06, 1500, 10240 ;; <name>, <Int Num> <Class (Slip=6)>
  89.     IF_DECLARE %cur_dl, %cur_dl, PKT
  90.     PP_DECLARE %cur_dl, %cur_dl, %cur_dl
  91.     DL_IP_DECLARE %cur_dl, %cur_dl, PP      ;; <dlip name>, <real dlip> <prefix>
  92.     cur_dl = cur_dl + 1
  93.  
  94. ;; end of declarations
  95. ;;****************************************************************************
  96.  
  97.     num_dls = cur_dl - 1
  98.     task_timer = cur_dl
  99.     num_tasks  = cur_dl
  100.  
  101.     SCHED_DECLARE %num_tasks
  102.  
  103.     mytimer     = 10                        ;; WD_DECLARE Depends on this value
  104.     TIMER_DECLARE %mytimer, %task_timer
  105.  
  106.     myip = 11
  107.     myrip = 12
  108.     myicmp = 13
  109.     myudp = 14
  110.     mybootp = 15
  111.     mylog = 16
  112.     dlog = 17
  113.     IP_DECLARE %myip, %myrip, %num_dls, %myicmp
  114.     UDP_DECLARE %myudp, %myip, %myicmp
  115.     RIP_DECLARE %myrip, %myip, %mytimer, %myudp
  116.     ICMP_DECLARE %myicmp, %myip, %myrip
  117.     BOOTP_DECLARE %mybootp, %myudp, %num_dls
  118.     LOG_DECLARE %mylog, LOG_LOCAL0, %myudp, %mytimer
  119.