]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
add some TODOs to TODO.IPv6
authorGert Doering <gert@greenie.muc.de>
Tue, 16 Feb 2010 14:40:31 +0000 (15:40 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 24 Apr 2011 15:22:38 +0000 (17:22 +0200)
--version: change printing of IPv6 payload patch version to [...] style
fix "make check" regression in tun.c (unnecessary change reverted)

tun.c

diff --git a/tun.c b/tun.c
index 37560e2faebbefd2a33d5bdaedd21f2defa40c81..9dcd9e6fbf8a2bb39bbb625686b8ded988e591f4 100644 (file)
--- 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,17 +440,18 @@ 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.
        */