Hi,

On Fri, Sep 16, 2016 at 04:35:58PM +0200, Arne Schwabe wrote:
> @@ -1420,8 +1417,8 @@ do_open_tun (struct context *c)
>    struct gc_arena gc = gc_new ();
>    bool ret = false;
>  
> -  c->c2.ipv4_tun = (!c->options.tun_ipv6
> -                 && is_dev_type (c->options.dev, c->options.dev_type, 
> "tun"));
> +  //c->c2.ipv4_tun = (!c->options.tun_ipv6
> + //              && is_dev_type (c->options.dev, c->options.dev_type, 
> "tun"));

"something sneaked in here" :)

> --- a/src/openvpn/route.c
> +++ b/src/openvpn/route.c
> @@ -1729,13 +1729,6 @@ add_route_ipv6 (struct route_ipv6 *r6, const struct 
> tuntap *tt, unsigned int fla
>      }
>  #endif
>  
> -  if ( !tt->ipv6 )
> -    {
> -      msg( M_INFO, "add_route_ipv6(): not adding %s/%d, no IPv6 on if %s",
> -                 network, r6->netbits, device );
> -      return;
> -    }
> -

I think general check should stay, and be turned into "have done ifconfig 
for IPv6" - because "if no ifconfig, route makes no sense".


[..]
> @@ -1141,7 +1141,6 @@ do_ifconfig (struct tuntap *tt,
>         add_route_connected_v6_net(tt, es);
>  #else
>         msg( M_INFO, "no IPv6 support for tun interfaces on NetBSD before 4.0 
> (if your system is newer, recompile openvpn)" );
> -       tt->ipv6 = false;
>  #endif

I think that whole #ifdef block can go (NETBSD_MULTI_AF).

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             g...@greenie.muc.de
fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to