[exim-cvs] TFO: disable for FreeBSD

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Exim Git Commits Mailing List
Ημερομηνία:  
Προς: exim-cvs
Αντικείμενο: [exim-cvs] TFO: disable for FreeBSD
Gitweb: https://git.exim.org/exim.git/commitdiff/52503083b9eded01c25e1c73f4510963c3cee799
Commit:     52503083b9eded01c25e1c73f4510963c3cee799
Parent:     b30930a554edd087932dbff2d4d32f340de28ed1
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Tue Dec 3 20:41:20 2019 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Tue Dec 3 20:42:09 2019 +0000


    TFO: disable for FreeBSD
---
 src/src/ip.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


diff --git a/src/src/ip.c b/src/src/ip.c
index 19be51a..70e3e20 100644
--- a/src/src/ip.c
+++ b/src/src/ip.c
@@ -245,7 +245,7 @@ callout_address = string_sprintf("[%s]:%d", address, port);
sigalrm_seen = FALSE;
if (timeout > 0) ALARM(timeout);

-#ifdef TCP_FASTOPEN
+#if defined(TCP_FASTOPEN) && (defined(MSG_FASTOPEN) || defined(EXIM_TFO_CONNECTX))
/* TCP Fast Open, if the system has a cookie from a previous call to
this peer, can send data in the SYN packet. The peer can send data
before it gets our ACK of its SYN,ACK - the latter is useful for
@@ -255,8 +255,8 @@ possibly use the data-on-syn, so support that too. */
if (fastopen_blob && f.tcp_fastopen_ok)
{
# ifdef MSG_FASTOPEN
- /* This is a Linux implementation. It might be useable on FreeBSD; I have
- not checked. */
+ /* This is a Linux implementation. FreeBSD does not seem to have MSG_FASTOPEN so
+ how to get TFO is unknown. */

   if ((rc = sendto(sock, fastopen_blob->data, fastopen_blob->len,
             MSG_FASTOPEN | MSG_DONTWAIT, s_ptr, s_len)) >= 0)