Issue reported & patch provided by Kurt Miller:
Using "socket-flags TCP_NODELAY" results in
-->8--
Sat Jun 10 19:43:22 2017 NOTE: setsockopt TCP_NODELAY=1 failed (No kernel
support)
--8<--
instead of the expected
-->8--
Sat Jun 10 19:44:16 2017 Socket flags: TCP_NODELAY=1 succeeded
--8<--
Patch tested with 2.4.2 and the git master branch.
>From aab4839b24e4c80f5ab814a0c972a0fb029d2d9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= <j...@wxcvbn.org>
Date: Sat, 10 Jun 2017 19:31:21 +0200
Subject: [PATCH] Missing include for socket-flags TCP_NODELAY on OpenBSD
Signed-off-by: Jeremie Courreges-Anglas <j...@wxcvbn.org>
---
src/openvpn/syshead.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h
index f4458648..14b6662a 100644
--- a/src/openvpn/syshead.h
+++ b/src/openvpn/syshead.h
@@ -288,6 +288,10 @@
#include <netinet/ip.h>
#endif
+#ifdef HAVE_NETINET_TCP_H
+#include <netinet/tcp.h>
+#endif
+
#ifdef HAVE_NET_IF_TUN_H
#include <net/if_tun.h>
#endif
--
2.13.0
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel