1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 2 /* 3 * Swansea University Computer Society 3 * Swansea University Computer Society NET3 4 * 4 * 5 * This file declares the constants of sp 5 * This file declares the constants of special use with the SLIP/CSLIP/ 6 * KISS TNC driver. 6 * KISS TNC driver. 7 */ 7 */ 8 8 9 #ifndef __LINUX_SLIP_H 9 #ifndef __LINUX_SLIP_H 10 #define __LINUX_SLIP_H 10 #define __LINUX_SLIP_H 11 11 12 #define SL_MODE_SLIP 0 12 #define SL_MODE_SLIP 0 13 #define SL_MODE_CSLIP 1 13 #define SL_MODE_CSLIP 1 14 #define SL_MODE_KISS 4 14 #define SL_MODE_KISS 4 15 15 16 #define SL_OPT_SIXBIT 2 16 #define SL_OPT_SIXBIT 2 17 #define SL_OPT_ADAPTIVE 8 17 #define SL_OPT_ADAPTIVE 8 18 18 19 /* 19 /* 20 * VSV = ioctl for keepalive & outfill in 20 * VSV = ioctl for keepalive & outfill in SLIP driver 21 */ 21 */ 22 22 23 #define SIOCSKEEPALIVE (SIOCDEVPRIVATE) 23 #define SIOCSKEEPALIVE (SIOCDEVPRIVATE) /* Set keepalive timeout in sec */ 24 #define SIOCGKEEPALIVE (SIOCDEVPRIVATE+1) 24 #define SIOCGKEEPALIVE (SIOCDEVPRIVATE+1) /* Get keepalive timeout */ 25 #define SIOCSOUTFILL (SIOCDEVPRIVATE+2) 25 #define SIOCSOUTFILL (SIOCDEVPRIVATE+2) /* Set outfill timeout */ 26 #define SIOCGOUTFILL (SIOCDEVPRIVATE+3) 26 #define SIOCGOUTFILL (SIOCDEVPRIVATE+3) /* Get outfill timeout */ 27 #define SIOCSLEASE (SIOCDEVPRIVATE+4) 27 #define SIOCSLEASE (SIOCDEVPRIVATE+4) /* Set "leased" line type */ 28 #define SIOCGLEASE (SIOCDEVPRIVATE+5) 28 #define SIOCGLEASE (SIOCDEVPRIVATE+5) /* Get line type */ 29 29 30 30 31 #endif 31 #endif 32 32
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.