summaryrefslogtreecommitdiff
path: root/include/arch/x86_64/linux/if_slip.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
commitfc00c656c96528112d05cf0edf8631bd5eaea446 (patch)
treea6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /include/arch/x86_64/linux/if_slip.h
Add build system scaffolding and libc headers
Diffstat (limited to 'include/arch/x86_64/linux/if_slip.h')
-rw-r--r--include/arch/x86_64/linux/if_slip.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/arch/x86_64/linux/if_slip.h b/include/arch/x86_64/linux/if_slip.h
new file mode 100644
index 00000000..84db4c39
--- /dev/null
+++ b/include/arch/x86_64/linux/if_slip.h
@@ -0,0 +1,30 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+/*
+ * Swansea University Computer Society NET3
+ *
+ * This file declares the constants of special use with the SLIP/CSLIP/
+ * KISS TNC driver.
+ */
+
+#ifndef __LINUX_SLIP_H
+#define __LINUX_SLIP_H
+
+#define SL_MODE_SLIP 0
+#define SL_MODE_CSLIP 1
+#define SL_MODE_KISS 4
+
+#define SL_OPT_SIXBIT 2
+#define SL_OPT_ADAPTIVE 8
+
+/*
+ * VSV = ioctl for keepalive & outfill in SLIP driver
+ */
+
+#define SIOCSKEEPALIVE (SIOCDEVPRIVATE) /* Set keepalive timeout in sec */
+#define SIOCGKEEPALIVE (SIOCDEVPRIVATE + 1) /* Get keepalive timeout */
+#define SIOCSOUTFILL (SIOCDEVPRIVATE + 2) /* Set outfill timeout */
+#define SIOCGOUTFILL (SIOCDEVPRIVATE + 3) /* Get outfill timeout */
+#define SIOCSLEASE (SIOCDEVPRIVATE + 4) /* Set "leased" line type */
+#define SIOCGLEASE (SIOCDEVPRIVATE + 5) /* Get line type */
+
+#endif