]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define UDP_ENCAP_* from Linux 4.7 in netinet/udp.h.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 3 Aug 2016 12:13:16 +0000 (12:13 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 3 Aug 2016 12:13:16 +0000 (12:13 +0000)
This patch adds the new UDP_ENCAP_GTP0 and UDP_ENCAP_GTP1U from Linux
4.7 to sysdeps/gnu/netinet/udp.h.

Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).

* sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
(UDP_ENCAP_GTP1U): Likewise.

ChangeLog
sysdeps/gnu/netinet/udp.h

index 63673cfd32e653df9bf9b90bc2420026d00bc8ba..d34d67286058ace0d28c155025021f8fd8a2a8ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
+       (UDP_ENCAP_GTP1U): Likewise.
+
        * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
        (PF_MAX): Update value.
        (AF_QIPCRTR): New macro.
index bcc3213dc26a46349c9675c5156331758e357617..e3d4492c8ab8a6386f9c6561c104f30b6f5de5e6 100644 (file)
@@ -87,6 +87,8 @@ struct udphdr
 #define UDP_ENCAP_ESPINUDP_NON_IKE 1   /* draft-ietf-ipsec-nat-t-ike-00/01 */
 #define UDP_ENCAP_ESPINUDP     2       /* draft-ietf-ipsec-udp-encaps-06 */
 #define UDP_ENCAP_L2TPINUDP    3       /* rfc2661 */
+#define UDP_ENCAP_GTP0         4       /* GSM TS 09.60 */
+#define UDP_ENCAP_GTP1U                5       /* 3GPP TS 29.060 */
 
 #define SOL_UDP            17      /* sockopt level for UDP */