aboutsummaryrefslogtreecommitdiff
path: root/tun.c
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2010-08-31 21:39:30 +0000
committerJames Yonan <james@openvpn.net>2010-08-31 21:39:30 +0000
commit1d76ecbcd03de5bbf97f9969f15debddd0387b87 (patch)
treec465f7e15b5926e5d70e1840cc4eb4f74007d83f /tun.c
parentAllow PKCS12 file content to be included inline in configuration file, (diff)
downloadopenvpn-1d76ecbcd03de5bbf97f9969f15debddd0387b87.tar.xz
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
Diffstat (limited to 'tun.c')
-rw-r--r--tun.c2
1 files changed, 1 insertions, 1 deletions
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;