Add TCP_FASTOPEN_CONNECT from Linux 4.11 to netinet/tcp.h

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

Commit Message

Joseph Myers May 1, 2017, 3:30 p.m. UTC
  This patch adds the TCP_FASTOPEN_CONNECT macro from Linux 4.11 to
sysdeps/gnu/netinet/tcp.h.

Tested for x86-64.

2017-05-01  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_CONNECT): New macro.
  

Comments

Dmitry V. Levin May 1, 2017, 3:45 p.m. UTC | #1
On Mon, May 01, 2017 at 03:30:14PM +0000, Joseph Myers wrote:
> This patch adds the TCP_FASTOPEN_CONNECT macro from Linux 4.11 to
> sysdeps/gnu/netinet/tcp.h.
> 
> Tested for x86-64.
> 
> 2017-05-01  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_CONNECT): New macro.

Looks fine, thanks.
  

Patch

diff --git a/sysdeps/gnu/netinet/tcp.h b/sysdeps/gnu/netinet/tcp.h
index 241bdc7..af94b8e 100644
--- a/sysdeps/gnu/netinet/tcp.h
+++ b/sysdeps/gnu/netinet/tcp.h
@@ -70,6 +70,7 @@ 
 #define TCP_SAVED_SYN		 28 /* Get SYN headers recorded for
 				       connection.  */
 #define TCP_REPAIR_WINDOW	 29 /* Get/set window parameters.  */
+#define TCP_FASTOPEN_CONNECT	 30 /* Attempt FastOpen with connect.  */
 
 #ifdef __USE_MISC
 # include <sys/types.h>