home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / dialupip / dialupip2.0 / sys / kernel_mods / ioctl.h.add < prev    next >
Encoding:
Text File  |  1990-12-16  |  1.3 KB  |  28 lines

  1.  
  2. Add this in line disciplines block (look for NTTYDISC).  "8" depends
  3. on where you actually added it to LINESW in tty_conf.c:
  4.  
  5. #define DUDISC          8               /* Dialup IP discipline */
  6.  
  7. ------------------------------
  8.  
  9. Add these lines after the #define's for interfaces, such as SIOCSIFMETRIC.
  10. Make sure the numbers you use, shown below as 44 through 57, are unique:
  11. /* Dialup IP */
  12. #define SIOCSATIMEO    _IOWR(i,44,struct ifreq)    /* Set Active timer */
  13. #define SIOCGATIMEO    _IOWR(i,45,struct ifreq)    /* Get Active timer */
  14. #define SIOCSWTIMEO    _IOWR(i,46,struct ifreq)    /* Set Wait timer */
  15. #define SIOCGWTIMEO    _IOWR(i,47,struct ifreq)    /* Get Wait timer */
  16. #define SIOCCLEARQ    _IOWR(i,48,struct ifreq)    /* Clear if. queue */
  17. #define SIOCSSOFTFLAGS    _IOWR(i,49,struct ifreq)    /* Set soft flags */
  18. #define SIOCGSOFTFLAGS    _IOWR(i,50,struct ifreq)    /* Get soft flags */
  19. #define SIOCSSOFTTIMER    _IOWR(i,51,struct ifreq)    /* Set soft timer */
  20. #define SIOCFAILCALL    _IOWR(i,52,struct ifreq)    /* Mark failed call */
  21. #define SIOCGIPKTS    _IOWR(i,53,struct ifreq)    /* get input packets */
  22. #define SIOCGOPKTS    _IOWR(i,54,struct ifreq)    /* get out. packets */
  23. #define SIOCBRINGUP    _IOW(i,55,struct ifreq)        /* Bring line up */
  24. #ifndef   SIOCGIFMTU
  25. #define SIOCSIFMTU    _IOW(i, 56, struct ifreq)    /* set if_mtu */
  26. #define SIOCGIFMTU    _IOWR(i,57, struct ifreq)    /* get if_mtu */
  27. #endif /* SIOCGIFMTU */
  28.