summaryrefslogtreecommitdiffhomepage
path: root/netio.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-05-18 23:45:10 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-05-18 23:45:10 +0800
commit4dae8edb76c3c252b681669c16f978477c633c16 (patch)
tree19c7eac9e1604f2bd75dcc34c266532ea98b0e41 /netio.c
parenta3e01b88841da97aae3d80b155034cc5f9f2c03e (diff)
parentf7d38a1b9ccbe6225dcf5959d922b6d073638891 (diff)
merge main to fuzz
--HG-- branch : fuzz
Diffstat (limited to 'netio.c')
-rw-r--r--netio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/netio.c b/netio.c
index d7a0630..17693ec 100644
--- a/netio.c
+++ b/netio.c
@@ -53,7 +53,7 @@ static void connect_try_next(struct dropbear_progress_connection *c) {
struct addrinfo *r;
int res = 0;
int fastopen = 0;
-#ifdef DROPBEAR_CLIENT_TCP_FAST_OPEN
+#if DROPBEAR_CLIENT_TCP_FAST_OPEN
struct msghdr message;
#endif
@@ -70,7 +70,7 @@ static void connect_try_next(struct dropbear_progress_connection *c) {
set_sock_nodelay(c->sock);
setnonblocking(c->sock);
-#ifdef DROPBEAR_CLIENT_TCP_FAST_OPEN
+#if DROPBEAR_CLIENT_TCP_FAST_OPEN
fastopen = (c->writequeue != NULL);
if (fastopen) {
@@ -290,7 +290,7 @@ void set_sock_nodelay(int sock) {
setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void*)&val, sizeof(val));
}
-#ifdef DROPBEAR_SERVER_TCP_FAST_OPEN
+#if DROPBEAR_SERVER_TCP_FAST_OPEN
void set_listen_fast_open(int sock) {
int qlen = MAX(MAX_UNAUTH_PER_IP, 5);
if (setsockopt(sock, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen)) != 0) {