Browse code

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

James Yonan authored on 2010/09/01 06:39:30
Showing 1 changed files
... ...
@@ -1157,7 +1157,7 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, bool ipv6
1157 1157
        * Try making the TX send queue bigger
1158 1158
        */
1159 1159
 #if defined(IFF_ONE_QUEUE) && defined(SIOCSIFTXQLEN)
1160
-      {
1160
+      if (tt->options.txqueuelen) {
1161 1161
 	struct ifreq netifr;
1162 1162
 	int ctl_fd;
1163 1163