summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2010-02-16 15:40:31 +0100
committerGert Doering <gert@greenie.muc.de>2011-04-24 17:22:38 +0200
commit64d2297d398cbf131da5908858abcbb2dac8a033 (patch)
treefe4750a20240f3a14b5eb9c1482ebbb63e0deae1
parent9bcd2005d1f0368bebf787d95d07abe5fc5125eb (diff)
downloadopenvpn-64d2297d398cbf131da5908858abcbb2dac8a033.tar.gz
openvpn-64d2297d398cbf131da5908858abcbb2dac8a033.tar.xz
openvpn-64d2297d398cbf131da5908858abcbb2dac8a033.zip
add some TODOs to TODO.IPv6
--version: change printing of IPv6 payload patch version to [...] style fix "make check" regression in tun.c (unnecessary change reverted)
-rw-r--r--tun.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tun.c b/tun.c
index 37560e2..9dcd9e6 100644
--- a/tun.c
+++ b/tun.c
@@ -433,7 +433,6 @@ init_tun (const char *dev, /* --dev option */
{
struct gc_arena gc = gc_new ();
struct tuntap *tt;
- bool tun;
ALLOC_OBJ (tt, struct tuntap);
clear_tuntap (tt);
@@ -441,18 +440,19 @@ init_tun (const char *dev, /* --dev option */
tt->type = dev_type_enum (dev, dev_type);
tt->topology = topology;
- /*
- * We only handle TUN/TAP devices here, not --dev null devices.
- */
- tun = is_tun_p2p (tt);
-
if (ifconfig_local_parm && ifconfig_remote_netmask_parm)
{
+ bool tun = false;
const char *ifconfig_local = NULL;
const char *ifconfig_remote_netmask = NULL;
const char *ifconfig_broadcast = NULL;
/*
+ * We only handle TUN/TAP devices here, not --dev null devices.
+ */
+ tun = is_tun_p2p (tt);
+
+ /*
* Convert arguments to binary IPv4 addresses.
*/