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