Add IP_RECVFRAGSIZE from Linux 4.10

Message ID alpine.DEB.2.20.1702211725530.16839@digraph.polyomino.org.uk
State Committed
Headers

Commit Message

Joseph Myers Feb. 21, 2017, 5:26 p.m. UTC
  Linux 4.10 adds a new IP_RECVFRAGSIZE macro to
include/uapi/linux/in.h.  This patch adds it to glibc's
sysdeps/unix/sysv/linux/bits/in.h.

Tested for x86_64.

2017-02-21  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/bits/in.h (IP_RECVFRAGSIZE): New macro.
  

Comments

Florian Weimer Feb. 21, 2017, 6:05 p.m. UTC | #1
* Joseph Myers:

> Linux 4.10 adds a new IP_RECVFRAGSIZE macro to
> include/uapi/linux/in.h.  This patch adds it to glibc's
> sysdeps/unix/sysv/linux/bits/in.h.
>
> Tested for x86_64.
>
> 2017-02-21  Joseph Myers  <joseph@codesourcery.com>
>
> 	* sysdeps/unix/sysv/linux/bits/in.h (IP_RECVFRAGSIZE): New macro.

Looks good to me.  The value is just an int, so no new data type is
needed.
  

Patch

diff --git a/sysdeps/unix/sysv/linux/bits/in.h b/sysdeps/unix/sysv/linux/bits/in.h
index 483b756..cd7fd31 100644
--- a/sysdeps/unix/sysv/linux/bits/in.h
+++ b/sysdeps/unix/sysv/linux/bits/in.h
@@ -101,6 +101,7 @@ 
 #define IP_NODEFRAG     22
 #define IP_CHECKSUM     23
 #define IP_BIND_ADDRESS_NO_PORT 24
+#define IP_RECVFRAGSIZE 25
 
 /* IP_MTU_DISCOVER arguments.  */
 #define IP_PMTUDISC_DONT   0	/* Never send DF frames.  */