]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/gnu/netinet/udp.h
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / gnu / netinet / udp.h
index 62079f5524de695c03f6d2761877659af3489e9d..eddd2486555d37cabcd7a9daa785659e65875ade 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -47,9 +47,8 @@
 #ifndef __NETINET_UDP_H
 #define __NETINET_UDP_H    1
 
-#include <features.h>
 #include <sys/types.h>
-
+#include <stdint.h>
 
 /* UDP header as specified by RFC 768, August 1980. */
 
@@ -59,17 +58,17 @@ struct udphdr
   {
     struct
     {
-      u_int16_t uh_sport;              /* source port */
-      u_int16_t uh_dport;              /* destination port */
-      u_int16_t uh_ulen;               /* udp length */
-      u_int16_t uh_sum;                /* udp checksum */
+      uint16_t uh_sport;       /* source port */
+      uint16_t uh_dport;       /* destination port */
+      uint16_t uh_ulen;                /* udp length */
+      uint16_t uh_sum;         /* udp checksum */
     };
     struct
     {
-      u_int16_t source;
-      u_int16_t dest;
-      u_int16_t len;
-      u_int16_t check;
+      uint16_t source;
+      uint16_t dest;
+      uint16_t len;
+      uint16_t check;
     };
   };
 };
@@ -87,6 +86,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 */