if_slip.h 809 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Swansea University Computer Society NET3
  3. *
  4. * This file declares the constants of special use with the SLIP/CSLIP/
  5. * KISS TNC driver.
  6. */
  7. #ifndef __LINUX_SLIP_H
  8. #define __LINUX_SLIP_H
  9. #define SL_MODE_SLIP 0
  10. #define SL_MODE_CSLIP 1
  11. #define SL_MODE_KISS 4
  12. #define SL_OPT_SIXBIT 2
  13. #define SL_OPT_ADAPTIVE 8
  14. /*
  15. * VSV = ioctl for keepalive & outfill in SLIP driver
  16. */
  17. #define SIOCSKEEPALIVE (SIOCDEVPRIVATE) /* Set keepalive timeout in sec */
  18. #define SIOCGKEEPALIVE (SIOCDEVPRIVATE+1) /* Get keepalive timeout */
  19. #define SIOCSOUTFILL (SIOCDEVPRIVATE+2) /* Set outfill timeout */
  20. #define SIOCGOUTFILL (SIOCDEVPRIVATE+3) /* Get outfill timeout */
  21. #define SIOCSLEASE (SIOCDEVPRIVATE+4) /* Set "leased" line type */
  22. #define SIOCGLEASE (SIOCDEVPRIVATE+5) /* Get line type */
  23. #endif