mirror of
https://github.com/OpenVPN/openvpn.git
synced 2025-05-09 21:51:05 +08:00
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
This commit is contained in:
parent
2e8ff6c1bd
commit
1d76ecbcd0
2
tun.c
2
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
|
* Try making the TX send queue bigger
|
||||||
*/
|
*/
|
||||||
#if defined(IFF_ONE_QUEUE) && defined(SIOCSIFTXQLEN)
|
#if defined(IFF_ONE_QUEUE) && defined(SIOCSIFTXQLEN)
|
||||||
{
|
if (tt->options.txqueuelen) {
|
||||||
struct ifreq netifr;
|
struct ifreq netifr;
|
||||||
int ctl_fd;
|
int ctl_fd;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user