|
|
07a51b |
From 90897540c719814eca34ce6b5b78b3bb76c4a43a Mon Sep 17 00:00:00 2001
|
|
|
07a51b |
From: Andrea Claudi <aclaudi@redhat.com>
|
|
|
07a51b |
Date: Fri, 5 Jun 2020 15:42:49 +0200
|
|
|
07a51b |
Subject: [PATCH] Update kernel headers and import udp.h
|
|
|
07a51b |
|
|
|
07a51b |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1844045
|
|
|
07a51b |
Upstream Status: iproute2.git commit 4df5ad933ca8c
|
|
|
07a51b |
|
|
|
07a51b |
commit 4df5ad933ca8cebf23a4868061b28ab869e9b77a
|
|
|
07a51b |
Author: David Ahern <dsahern@gmail.com>
|
|
|
07a51b |
Date: Wed Jan 22 03:40:26 2020 +0000
|
|
|
07a51b |
|
|
|
07a51b |
Update kernel headers and import udp.h
|
|
|
07a51b |
|
|
|
07a51b |
Update kernel headers to commit:
|
|
|
07a51b |
4f2c17e0f332 ("Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next")
|
|
|
07a51b |
|
|
|
07a51b |
and import udp.h for the next patch.
|
|
|
07a51b |
|
|
|
07a51b |
Signed-off-by: David Ahern <dsahern@gmail.com>
|
|
|
07a51b |
---
|
|
|
07a51b |
include/uapi/linux/hdlc/ioctl.h | 9 +++++++
|
|
|
07a51b |
include/uapi/linux/if.h | 1 +
|
|
|
07a51b |
include/uapi/linux/udp.h | 47 +++++++++++++++++++++++++++++++++
|
|
|
07a51b |
3 files changed, 57 insertions(+)
|
|
|
07a51b |
create mode 100644 include/uapi/linux/udp.h
|
|
|
07a51b |
|
|
|
07a51b |
diff --git a/include/uapi/linux/hdlc/ioctl.h b/include/uapi/linux/hdlc/ioctl.h
|
|
|
07a51b |
index 0fe4238e82462..b06341acab5ec 100644
|
|
|
07a51b |
--- a/include/uapi/linux/hdlc/ioctl.h
|
|
|
07a51b |
+++ b/include/uapi/linux/hdlc/ioctl.h
|
|
|
07a51b |
@@ -79,6 +79,15 @@ typedef struct {
|
|
|
07a51b |
unsigned int timeout;
|
|
|
07a51b |
} cisco_proto;
|
|
|
07a51b |
|
|
|
07a51b |
+typedef struct {
|
|
|
07a51b |
+ unsigned short dce; /* 1 for DCE (network side) operation */
|
|
|
07a51b |
+ unsigned int modulo; /* modulo (8 = basic / 128 = extended) */
|
|
|
07a51b |
+ unsigned int window; /* frame window size */
|
|
|
07a51b |
+ unsigned int t1; /* timeout t1 */
|
|
|
07a51b |
+ unsigned int t2; /* timeout t2 */
|
|
|
07a51b |
+ unsigned int n2; /* frame retry counter */
|
|
|
07a51b |
+} x25_hdlc_proto;
|
|
|
07a51b |
+
|
|
|
07a51b |
/* PPP doesn't need any info now - supply length = 0 to ioctl */
|
|
|
07a51b |
|
|
|
07a51b |
#endif /* __ASSEMBLY__ */
|
|
|
07a51b |
diff --git a/include/uapi/linux/if.h b/include/uapi/linux/if.h
|
|
|
07a51b |
index 495cdd2324428..626da393123b6 100644
|
|
|
07a51b |
--- a/include/uapi/linux/if.h
|
|
|
07a51b |
+++ b/include/uapi/linux/if.h
|
|
|
07a51b |
@@ -210,6 +210,7 @@ struct if_settings {
|
|
|
07a51b |
fr_proto *fr;
|
|
|
07a51b |
fr_proto_pvc *fr_pvc;
|
|
|
07a51b |
fr_proto_pvc_info *fr_pvc_info;
|
|
|
07a51b |
+ x25_hdlc_proto *x25;
|
|
|
07a51b |
|
|
|
07a51b |
/* interface settings */
|
|
|
07a51b |
sync_serial_settings *sync;
|
|
|
07a51b |
diff --git a/include/uapi/linux/udp.h b/include/uapi/linux/udp.h
|
|
|
07a51b |
new file mode 100644
|
|
|
07a51b |
index 0000000000000..d0a7223a0119c
|
|
|
07a51b |
--- /dev/null
|
|
|
07a51b |
+++ b/include/uapi/linux/udp.h
|
|
|
07a51b |
@@ -0,0 +1,47 @@
|
|
|
07a51b |
+/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
|
|
|
07a51b |
+/*
|
|
|
07a51b |
+ * INET An implementation of the TCP/IP protocol suite for the LINUX
|
|
|
07a51b |
+ * operating system. INET is implemented using the BSD Socket
|
|
|
07a51b |
+ * interface as the means of communication with the user level.
|
|
|
07a51b |
+ *
|
|
|
07a51b |
+ * Definitions for the UDP protocol.
|
|
|
07a51b |
+ *
|
|
|
07a51b |
+ * Version: @(#)udp.h 1.0.2 04/28/93
|
|
|
07a51b |
+ *
|
|
|
07a51b |
+ * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
|
|
|
07a51b |
+ *
|
|
|
07a51b |
+ * This program is free software; you can redistribute it and/or
|
|
|
07a51b |
+ * modify it under the terms of the GNU General Public License
|
|
|
07a51b |
+ * as published by the Free Software Foundation; either version
|
|
|
07a51b |
+ * 2 of the License, or (at your option) any later version.
|
|
|
07a51b |
+ */
|
|
|
07a51b |
+#ifndef _LINUX_UDP_H
|
|
|
07a51b |
+#define _LINUX_UDP_H
|
|
|
07a51b |
+
|
|
|
07a51b |
+#include <linux/types.h>
|
|
|
07a51b |
+
|
|
|
07a51b |
+struct udphdr {
|
|
|
07a51b |
+ __be16 source;
|
|
|
07a51b |
+ __be16 dest;
|
|
|
07a51b |
+ __be16 len;
|
|
|
07a51b |
+ __sum16 check;
|
|
|
07a51b |
+};
|
|
|
07a51b |
+
|
|
|
07a51b |
+/* UDP socket options */
|
|
|
07a51b |
+#define UDP_CORK 1 /* Never send partially complete segments */
|
|
|
07a51b |
+#define UDP_ENCAP 100 /* Set the socket to accept encapsulated packets */
|
|
|
07a51b |
+#define UDP_NO_CHECK6_TX 101 /* Disable sending checksum for UDP6X */
|
|
|
07a51b |
+#define UDP_NO_CHECK6_RX 102 /* Disable accpeting checksum for UDP6 */
|
|
|
07a51b |
+#define UDP_SEGMENT 103 /* Set GSO segmentation size */
|
|
|
07a51b |
+#define UDP_GRO 104 /* This socket can receive UDP GRO packets */
|
|
|
07a51b |
+
|
|
|
07a51b |
+/* UDP encapsulation types */
|
|
|
07a51b |
+#define UDP_ENCAP_ESPINUDP_NON_IKE 1 /* draft-ietf-ipsec-nat-t-ike-00/01 */
|
|
|
07a51b |
+#define UDP_ENCAP_ESPINUDP 2 /* draft-ietf-ipsec-udp-encaps-06 */
|
|
|
07a51b |
+#define UDP_ENCAP_L2TPINUDP 3 /* rfc2661 */
|
|
|
07a51b |
+#define UDP_ENCAP_GTP0 4 /* GSM TS 09.60 */
|
|
|
07a51b |
+#define UDP_ENCAP_GTP1U 5 /* 3GPP TS 29.060 */
|
|
|
07a51b |
+#define UDP_ENCAP_RXRPC 6
|
|
|
07a51b |
+#define TCP_ENCAP_ESPINTCP 7 /* Yikes, this is really xfrm encap types. */
|
|
|
07a51b |
+
|
|
|
07a51b |
+#endif /* _LINUX_UDP_H */
|
|
|
07a51b |
--
|
|
|
07a51b |
2.26.2
|
|
|
07a51b |
|