From 1d76ecbcd03de5bbf97f9969f15debddd0387b87 Mon Sep 17 00:00:00 2001 From: James Yonan Date: Tue, 31 Aug 2010 21:39:30 +0000 Subject: 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 --- tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tun.c') diff --git a/tun.c b/tun.c index 7a87256..f6fb505 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; -- cgit v1.2.3