]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add TCP_FASTOPEN_KEY, TCP_FASTOPEN_NO_COOKIE from Linux 4.15.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 6 Feb 2018 00:42:22 +0000 (00:42 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 6 Feb 2018 00:42:22 +0000 (00:42 +0000)
This patch adds the TCP_FASTOPEN_KEY and TCP_FASTOPEN_NO_COOKIE macros
from Linux 4.15 to sysdeps/gnu/netinet/tcp.h.

Tested for x86_64.

* sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
(TCP_FASTOPEN_NO_COOKIE): Likewise.

ChangeLog
sysdeps/gnu/netinet/tcp.h

index e026e5666993d931afa1ba6b1ac4ddf9d702a9ec..1a9b7ca2f3807cf953b4b38f750048251db7abc6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
+       (TCP_FASTOPEN_NO_COOKIE): Likewise.
+
        * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
 
        [BZ #14890]
index 75973f0955b417f6c16ef74a26d0fbfcf3576ad9..44a72e929e36b54e947ce844cf251f5a907e3d50 100644 (file)
@@ -73,6 +73,8 @@
 #define TCP_FASTOPEN_CONNECT    30 /* Attempt FastOpen with connect.  */
 #define TCP_ULP                         31 /* Attach a ULP to a TCP connection.  */
 #define TCP_MD5SIG_EXT          32 /* TCP MD5 Signature with extensions.  */
+#define TCP_FASTOPEN_KEY        33 /* Set the key for Fast Open (cookie).  */
+#define TCP_FASTOPEN_NO_COOKIE  34 /* Enable TFO without a TFO cookie.  */
 
 #ifdef __USE_MISC
 # include <sys/types.h>