summaryrefslogtreecommitdiff
path: root/include/uapi/linux/hdlc
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2020-01-21 09:00:33 +0300
committerDavid S. Miller <davem@davemloft.net>2020-01-21 13:41:36 +0300
commitf362e5fe0f1f9774b28c5b4c9b07b0168575cf6e (patch)
tree8258bbd3d793bec9157c2def42365e579214b425 /include/uapi/linux/hdlc
parent29237d22bc45d340792be217f40fb728ca48b6e6 (diff)
downloadlinux-f362e5fe0f1f9774b28c5b4c9b07b0168575cf6e.tar.xz
wan/hdlc_x25: make lapb params configurable
This enables you to configure mode (DTE/DCE), Modulo, Window, T1, T2, N2 via sethdlc (which needs to be patched as well). Signed-off-by: Martin Schiller <ms@dev.tdt.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/hdlc')
-rw-r--r--include/uapi/linux/hdlc/ioctl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/linux/hdlc/ioctl.h b/include/uapi/linux/hdlc/ioctl.h
index 0fe4238e8246..b06341acab5e 100644
--- a/include/uapi/linux/hdlc/ioctl.h
+++ b/include/uapi/linux/hdlc/ioctl.h
@@ -79,6 +79,15 @@ typedef struct {
unsigned int timeout;
} cisco_proto;
+typedef struct {
+ unsigned short dce; /* 1 for DCE (network side) operation */
+ unsigned int modulo; /* modulo (8 = basic / 128 = extended) */
+ unsigned int window; /* frame window size */
+ unsigned int t1; /* timeout t1 */
+ unsigned int t2; /* timeout t2 */
+ unsigned int n2; /* frame retry counter */
+} x25_hdlc_proto;
+
/* PPP doesn't need any info now - supply length = 0 to ioctl */
#endif /* __ASSEMBLY__ */