summaryrefslogtreecommitdiffstats
path: root/src/openvpn/syshead.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2013-01-12 13:41:17 +0100
committerGert Doering <gert@greenie.muc.de>2013-02-03 14:23:47 +0100
commit3e86f688757529f8b33f9e6b49e31ba8d8564c5e (patch)
treea06858ec0675ee963ed1a54251a5ace463f741e6 /src/openvpn/syshead.h
parentd94873f6cc2c24e29964e4483b0bc02653860deb (diff)
downloadopenvpn-3e86f688757529f8b33f9e6b49e31ba8d8564c5e.tar.gz
openvpn-3e86f688757529f8b33f9e6b49e31ba8d8564c5e.tar.xz
openvpn-3e86f688757529f8b33f9e6b49e31ba8d8564c5e.zip
Enable TCP_NODELAY configuration on FreeBSD.
The missing #include <netinet/tcp.h> causes a defined(TCP_NODELAY) to fail. I have added the patch to the FreeBSD ports OpenVPN 2.2.2 and 2.3.0, and confirmed (with strings ... | grep) that the TCP_NODELAY code is now part of the executable on amd64, and results in this log output: Sat Jan 12 13:39:18 2013 Listening for incoming TCP connection on [undef] Sat Jan 12 13:39:18 2013 Socket flags: TCP_NODELAY=1 succeeded Obtained from: https://community.openvpn.net/openvpn/ticket/158 Credits to: M. Nottebrock Signed-off-by: Matthias Andree <matthias.andree@gmx.de> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: 1357994477-29981-1-git-send-email-matthias.andree@gmx.de URL: http://article.gmane.org/gmane.network.openvpn.devel/7230 Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/syshead.h')
-rw-r--r--src/openvpn/syshead.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h
index c81f08a..b14214d 100644
--- a/src/openvpn/syshead.h
+++ b/src/openvpn/syshead.h
@@ -307,6 +307,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