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:
James Yonan 2010-08-31 21:39:30 +00:00
parent 2e8ff6c1bd
commit 1d76ecbcd0

2
tun.c
View File

@ -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;