home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / dialupip / dialupip2.0 / sys / kernel_mods / conf.c.add next >
Encoding:
Text File  |  1990-12-11  |  529 b   |  24 lines

  1.  
  2. Put this with the other function declarations, before cdevsw:
  3.  
  4. /* Dialup IP. */
  5. #include "du.h"
  6. #if    NDU > 0
  7. int dialupopen(), dialupclose(), dialupread(), dialupioctl();
  8. #else
  9. #define dialupopen    nodev
  10. #define dialupclose    nodev
  11. #define dialupread    nodev
  12. #define dialupioctl    nodev
  13. #endif    /* NDU */
  14.  
  15. ------------------------------
  16.  
  17. Put this inside cdevsw.  Use a free number, shown below as 60, and
  18. note it for later:
  19.     {
  20.     dialupopen, dialupclose, dialupread, nodev,     /* 60 */
  21.     dialupioctl, nulldev, nulldev, 0,
  22.     nodev, nodev, 0
  23.     },
  24.