home *** CD-ROM | disk | FTP | other *** search
/ Hackers Toolkit 2.0 / Hackers_Toolkit_v2.0.iso / HTML / archive / Unix / c-src / atap.c / INSTALL next >
Encoding:
Text File  |  1999-11-04  |  2.4 KB  |  92 lines

  1. #
  2. # @(#)INSTALL    1.25 5/8/93
  3. #
  4.  
  5. STEPS TO CONFIGURE YOUR KERNEL FOR TAPC/TAP:
  6.  
  7.                 i recommend that you first try the kernel-loadable
  8.                 version of the driver by just type ,,make'' (see README)
  9.                 and make later the steps below...
  10.  
  11. -------------------------------------------------------------------------
  12. 1.    Add:
  13.  
  14.     sundev/tap.c        optional tap device-driver
  15.  
  16.     to /usr/sys/`arch -k`/conf/files
  17.  
  18. -------------------------------------------------------------------------
  19. 2.    Copy tap.c to /usr/sys/sundev/tap.c
  20.  
  21. -------------------------------------------------------------------------
  22. 3.    Add
  23.  
  24.         ...
  25.       #include "tap.h"
  26.       #if NTAP > 0
  27.       extern struct streamtab tapcinfo;
  28.       #define   tapctab &tapcinfo
  29.       #else
  30.       #define   tapctab 0
  31.       #endif
  32.         ...             (at the end of the cdevsw[])
  33.       {
  34.         nodev,          nodev,          nodev,          nodev,          /*104*/
  35.         nodev,          nulldev,        nodev,          0,
  36.         tapctab,        0,
  37.       },
  38.         ...
  39.  
  40.       to /usr/sys/sun/conf.c
  41.       (write down the major number (e.g. 104))
  42.  
  43. -------------------------------------------------------------------------
  44. 4.    Add
  45.  
  46.     ...
  47.     #include "tap.h"
  48.     ...
  49.     #if    NTAP > 0
  50.     extern struct streamtab tapinfo;
  51.     #endif
  52.     ...
  53.     #if    NTAP > 0
  54.         { "tap",    &tapinfo },
  55.     #endif
  56.     ...
  57.  
  58.     to /usr/sys/sun/str_conf.c
  59.  
  60. -------------------------------------------------------------------------
  61. 5.    Add
  62.  
  63.     pseudo-device tap8  # STREAMS tapc/tap driver/module
  64.  
  65.     to your /usr/sys/`arch -k`/conf/CONFIG file.
  66.     (8 = maximal 8 modules and devices for the system,max 256)
  67. -------------------------------------------------------------------------
  68. 6.    Configure your kernel and install and boot it
  69.  
  70.       # cd /usr/sys/`arch -k`/conf
  71.       # config CONFIG
  72.       # cd ../CONFIG
  73.       # make
  74.       # cp /vmunix /vmunix.old
  75.       # cp vmunix /
  76.       # ls -l /dev/tapc*
  77.       # rm -f /dev/tapc*
  78.       # mknod /dev/tapc0 c 104 0  # major 104 is the number from step 3. above
  79.       # mknod /dev/tapc1 c 104 1
  80.         .
  81.         .
  82.         .
  83.       # mknod /dev/tapc7 c 104 7
  84.       # fastboot
  85.  
  86. -------------------------------------------------------------------------
  87. 7.    In your TAP-SOURCE directory
  88.  
  89.       # make install            # to install streams+tapmon in /usr/local/etc
  90. -------------------------------------------------------------------------
  91.  
  92.