From: James Yonan Date: Tue, 31 Aug 2010 21:39:30 +0000 (+0000) Subject: Don't configure Linux tun/tap txqueuelen setting if OpenVPN X-Git-Tag: v2.2-beta4~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d76ecbcd03de5bbf97f9969f15debddd0387b87;p=thirdparty%2Fopenvpn.git Don't configure Linux tun/tap txqueuelen setting if OpenVPN txqueuelen directive is set to 0. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@6420 e7ae566f-a301-0410-adde-c780ea21d3b5 --- diff --git a/tun.c b/tun.c index 7a87256ef..f6fb505ed 100644 --- 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;