From 4c0899659502d1ab14f30b02ec78261728caf9c8 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Tue, 24 Jan 2017 16:52:01 +0000 Subject: [PATCH] TFO: Support compilation on Linus platforms which define TCP_FASTOPEN but not MSG_FASTOPEN --- src/OS/os.h-Linux | 2 ++ test/scripts/2100-OpenSSL/2152 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OS/os.h-Linux b/src/OS/os.h-Linux index 510865c66..cc1cef99b 100644 --- a/src/OS/os.h-Linux +++ b/src/OS/os.h-Linux @@ -69,6 +69,8 @@ then change the 0 to 1 in the next block. */ # define EXIM_HAVE_OPENAT #endif +#include /* for TCP_FASTOPEN */ +#include /* for MSG_FASTOPEN */ #if defined(TCP_FASTOPEN) && !defined(MSG_FASTOPEN) # define MSG_FASTOPEN 0x20000000 #endif diff --git a/test/scripts/2100-OpenSSL/2152 b/test/scripts/2100-OpenSSL/2152 index 329e42051..12a482a93 100644 --- a/test/scripts/2100-OpenSSL/2152 +++ b/test/scripts/2100-OpenSSL/2152 @@ -2,7 +2,7 @@ # # If all works you'll not see any difference. To enable in the # kernel, 'sudo sh -c "echo 3 > /proc/sys/net/ipv4/tcp_fastopen"'. -# A packet capture on the loopback interface will show the TFU +# A packet capture on the loopback interface will show the TFO # option on the SYN, but the fast-output SMTP banner will not # be seen unless you also deliberately emulate a long path: # 'sudo tc qdisc add dev lo root netem delay 100ms' -- 2.25.1