summaryrefslogtreecommitdiff
path: root/src/src/ip.c
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-10-06 15:32:14 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2018-10-06 15:32:14 +0100
commit06e272a37fca29df8be58167a30818857a78e348 (patch)
tree0c3ab1ee5c796c35f600f57d0aa4b2e2c03634a7 /src/src/ip.c
parentae8f9024d8d4fad31457d758022e3186d782929c (diff)
TFO: use enum for client status
Diffstat (limited to 'src/src/ip.c')
-rw-r--r--src/src/ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/src/ip.c b/src/src/ip.c
index 633e0c2f9..ef133bf9f 100644
--- a/src/src/ip.c
+++ b/src/src/ip.c
@@ -267,7 +267,7 @@ if (fastopen_blob && f.tcp_fastopen_ok)
debug_printf("non-TFO mode connection attempt to %s, %lu data\n",
address, (unsigned long)fastopen_blob->len);
/*XXX also seen on successful TFO, sigh */
- tcp_out_fastopen = fastopen_blob->len > 0 ? 2 : 1;
+ tcp_out_fastopen = fastopen_blob->len > 0 ? TFO_USED : TFO_ATTEMPTED;
}
else if (errno == EINPROGRESS) /* expected if we had no cookie for peer */
/* seen for no-data, proper TFO option, both cookie-request and with-cookie cases */
@@ -280,7 +280,7 @@ if (fastopen_blob && f.tcp_fastopen_ok)
fastopen_blob->len > 0 ? "with" : "no");
if (!fastopen_blob->data)
{
- tcp_out_fastopen = 1; /* we tried; unknown if useful yet */
+ tcp_out_fastopen = TFO_ATTEMPTED; /* we tried; unknown if useful yet */
rc = 0;
}
else