Re: [Openvpn-devel] adding ipv6 routes wrong for tap

2012-06-10 Thread Gert Doering
Hi, On Tue, Apr 17, 2012 at 05:13:19PM +0400, Sergey Matveychuk wrote: > I see openvpn adds ipv6 routes always for interface not addresses. I > think it should be like in add_route(): something like is_on_link() to > determ if interface should be added or address. This has now been implemented

[Openvpn-devel] [PATCH 4/5] Add missing pieces to IPv6 route gateway handling.

2012-06-10 Thread Gert Doering
OpenVPN on Linux (iproute2+ifconfig), FreeBSD and MacOS X (Darwin) normally points routes directly towards the "tun" interface, obviating the need for a gateway. For "tap" interfaces, now add gateway spec to linux route command, and replace "-iface " with gateway spec (both together do not work) o

[Openvpn-devel] [PATCH 5/5] Update TODO.IPv6 list

2012-06-10 Thread Gert Doering
Clarify status of each already-done item for "IPv6 payload" TODOs. Remove TODOs from "IPv6 transport" list that have been solved in "IPv6 payload" work. Signed-off-by: Gert Doering --- TODO.IPv6 | 35 --- 1 files changed, 28 insertions(+), 7 deletions(-) diff

[Openvpn-devel] [PATCH 1/5] cleanup and redefine metric handling for IPv6 routes

2012-06-10 Thread Gert Doering
"no metric set" is now stored as "-1" "metric 0" means "on-link route" (what the BSDs do) properly initialize metric value to "0" for on-link IPv6 net on BSDs Signed-off-by: Gert Doering --- src/openvpn/init.c |2 +- src/openvpn/route.c |9 - src/openvpn/tun.c |4 3 f

[Openvpn-devel] [PATCH 3/5] Remove warning about "explicit support for IPv6 tun devices is not provided for this OS" for MacOS X (because it *is*).

2012-06-10 Thread Gert Doering
Signed-off-by: Gert Doering --- src/openvpn/tun.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 460684f..1842a97 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -2442,7 +2442,7 @@ read_tun (struct tuntap* tt, uint8_

[Openvpn-devel] [PATCH 2/5] remove "*option" element in "struct route_ipv6"

2012-06-10 Thread Gert Doering
this used to point to the "route_ipv6_option" that created this specific route entry, but nobody ever queried this field -> dead code. Signed-off-by: Gert Doering --- src/openvpn/route.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/openvpn/route.h b/src/openvpn/ro

[Openvpn-devel] some missing pieces for 2.3_alpha2

2012-06-10 Thread Gert Doering
Hi, somewhat unexpectedly, I had two days of free time at my hand, and here are what I consider the last missing pieces for basic IPv6 support in 2.3_alpha2 (the route-gateway handling for IPv6), plus a bit of cleanup that crossed my way doing this. The code changes affect Linux iproute2, Linux

Re: [Openvpn-devel] [PATCH] Add IPv6 gateway support for Linux, FreeBSD, and Darwin

2012-06-10 Thread Gert Doering
Hi, sorry for never replying to your mail. It was on my TODO list, and David regularily reminded me that it was there, but well... On Tue, Aug 30, 2011 at 03:47:16AM -0500, Scott Zeid wrote: > This patch adds IPv6 gateway configuration for Linux, FreeBSD, and Darwin. > Apparently this functional