Skip to content

Commit 1d76ecb

Browse files
committed
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
1 parent 2e8ff6c commit 1d76ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tun.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, bool ipv6
11571157
* Try making the TX send queue bigger
11581158
*/
11591159
#if defined(IFF_ONE_QUEUE) && defined(SIOCSIFTXQLEN)
1160-
{
1160+
if (tt->options.txqueuelen) {
11611161
struct ifreq netifr;
11621162
int ctl_fd;
11631163

0 commit comments

Comments
 (0)