summaryrefslogtreecommitdiffstats
path: root/tun.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-11-09 09:49:14 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-11-09 09:49:14 +0000
commit004d8b48a8962828b3f63227fdf0667d3c3b18af (patch)
treea8d1cb76e1a39902c47225a436a65f1fef660dfc /tun.c
parent112efc71da0bbb86fbbb6eb9479a4322f9ca9809 (diff)
downloadopenvpn-004d8b48a8962828b3f63227fdf0667d3c3b18af.tar.gz
openvpn-004d8b48a8962828b3f63227fdf0667d3c3b18af.tar.xz
openvpn-004d8b48a8962828b3f63227fdf0667d3c3b18af.zip
Fixed issue where OpenVPN does not apply the --txqueuelen option
to persistent interfaces made with --mktun (Roy Marples). git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1447 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'tun.c')
-rw-r--r--tun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tun.c b/tun.c
index 3166b32..abfd760 100644
--- a/tun.c
+++ b/tun.c
@@ -1163,13 +1163,14 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, bool ipv6
#ifdef TUNSETPERSIST
void
-tuncfg (const char *dev, const char *dev_type, const char *dev_node, bool ipv6, int persist_mode)
+tuncfg (const char *dev, const char *dev_type, const char *dev_node, bool ipv6, int persist_mode, const struct tuntap_options *options)
{
struct tuntap *tt;
ALLOC_OBJ (tt, struct tuntap);
clear_tuntap (tt);
tt->type = dev_type_enum (dev, dev_type);
+ tt->options = *options;
open_tun (dev, dev_type, dev_node, ipv6, tt);
if (ioctl (tt->fd, TUNSETPERSIST, persist_mode) < 0)
msg (M_ERR, "Cannot ioctl TUNSETPERSIST(%d) %s", persist_mode, dev);