]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Don't configure Linux tun/tap txqueuelen setting if OpenVPN
authorJames Yonan <james@openvpn.net>
Tue, 31 Aug 2010 21:39:30 +0000 (21:39 +0000)
committerJames Yonan <james@openvpn.net>
Tue, 31 Aug 2010 21:39:30 +0000 (21:39 +0000)
txqueuelen directive is set to 0.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@6420 e7ae566f-a301-0410-adde-c780ea21d3b5

tun.c

diff --git a/tun.c b/tun.c
index 7a87256efe11df5a2d0f7409089a73ecf81ddcd2..f6fb505ed85c30e9f67df6be6a420e4e11290663 100644 (file)
--- a/tun.c
+++ b/tun.c
@@ -1157,7 +1157,7 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, bool ipv6
        * Try making the TX send queue bigger
        */
 #if defined(IFF_ONE_QUEUE) && defined(SIOCSIFTXQLEN)
-      {
+      if (tt->options.txqueuelen) {
        struct ifreq netifr;
        int ctl_fd;