diff mbox

Update netinet/udp.h from Linux 4.18

Message ID alpine.DEB.2.21.1808202217310.646@digraph.polyomino.org.uk
State Committed
Commit 4061791fccec50dfcd13b72ccb926dedc58b9680
Headers show

Commit Message

Joseph Myers Aug. 20, 2018, 10:17 p.m. UTC
This patch adds the UDP_SEGMENT constant from Linux 4.18 to
netinet/udp.h.

Tested for x86_64.

2018-08-20  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.

Comments

Joseph Myers Aug. 27, 2018, 1:39 p.m. UTC | #1
Ping.  This patch 
<https://sourceware.org/ml/libc-alpha/2018-08/msg00439.html> is pending 
review.
H.J. Lu Aug. 27, 2018, 1:41 p.m. UTC | #2
On Mon, Aug 20, 2018 at 3:17 PM, Joseph Myers <joseph@codesourcery.com> wrote:
> This patch adds the UDP_SEGMENT constant from Linux 4.18 to
> netinet/udp.h.
>
> Tested for x86_64.
>
> 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
>
>         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
>
> diff --git a/sysdeps/gnu/netinet/udp.h b/sysdeps/gnu/netinet/udp.h
> index eddd248655..45f007b7b5 100644
> --- a/sysdeps/gnu/netinet/udp.h
> +++ b/sysdeps/gnu/netinet/udp.h
> @@ -81,6 +81,7 @@ struct udphdr
>                                    over IPv6.  */
>  #define UDP_NO_CHECK6_RX 102   /* Disable accepting checksum for UDP
>                                    over IPv6.  */
> +#define UDP_SEGMENT    103     /* Set GSO segmentation size.  */
>
>  /* UDP encapsulation types */
>  #define UDP_ENCAP_ESPINUDP_NON_IKE 1   /* draft-ietf-ipsec-nat-t-ike-00/01 */

LGTM.

Thanks.
diff mbox

Patch

diff --git a/sysdeps/gnu/netinet/udp.h b/sysdeps/gnu/netinet/udp.h
index eddd248655..45f007b7b5 100644
--- a/sysdeps/gnu/netinet/udp.h
+++ b/sysdeps/gnu/netinet/udp.h
@@ -81,6 +81,7 @@  struct udphdr
 				   over IPv6.  */
 #define UDP_NO_CHECK6_RX 102	/* Disable accepting checksum for UDP
 				   over IPv6.  */
+#define UDP_SEGMENT	103	/* Set GSO segmentation size.  */
 
 /* UDP encapsulation types */
 #define UDP_ENCAP_ESPINUDP_NON_IKE 1	/* draft-ietf-ipsec-nat-t-ike-00/01 */