On 10/06/12 17:41, Gert Doering wrote: > 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 ifconfig, FreeBSD and > MacOS X (Darwin) and have been thoroughly tested on each affected OS > (t_client tests with the current "official" set but now with indirect > ping for test set 4 - which didn't work on those platforms before! - > and manually staring at the routes). > > TAP on MacOS 5 shows some funny effects with IPv6 routes pointing to > non-existant next-hops on tap interfaces, but that seems to be an > operating system thing, and nothing OpenVPN can do about it. (Well: > don't install such routes, and everything works fine :) ). > > This patch set basically incorporates the work that Scott Zeid sent to > the list 10 months ago (<1314694036-3749-1-git-send-emai...@srwz.us>), > but his doesn't work - on the BSDs, you can't use "-iface <dev>" > together with a gateway spec, it must be either-or. Nevertheless, > thanks for this groundwork. > > Please review and ACK :-)
ACK to all. Applied to master. commit c37d9135a27b05ff9088ca6c349fca06de89444b Author: Gert Doering <g...@greenie.muc.de> List-Post: openvpn-devel@lists.sourceforge.net Date: Sun Jun 10 17:41:27 2012 +0200 cleanup and redefine metric handling for IPv6 routes "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 <g...@greenie.muc.de> Acked-by: David Sommerseth <dav...@redhat.com> Message-Id: 1339342891-28443-2-git-send-email-g...@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/6710 Signed-off-by: David Sommerseth <dav...@redhat.com> commit 3204ac73ade94fdedbed87ab92e3adb28daada88 Author: Gert Doering <g...@greenie.muc.de> List-Post: openvpn-devel@lists.sourceforge.net Date: Sun Jun 10 17:41:28 2012 +0200 remove "*option" element in "struct route_ipv6" 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 <g...@greenie.muc.de> Acked-by: David Sommerseth <dav...@redhat.com> Message-Id: 1339342891-28443-3-git-send-email-g...@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/6714 Signed-off-by: David Sommerseth <dav...@redhat.com> commit a9af3ca44e335716c1aab46d6702cf3530e3bb73 Author: Gert Doering <g...@greenie.muc.de> List-Post: openvpn-devel@lists.sourceforge.net Date: Sun Jun 10 17:41:29 2012 +0200 Remove warning about "explicit support for IPv6 tun devices is not provided for this OS" for MacOS X (because it *is*). Signed-off-by: Gert Doering <g...@greenie.muc.de> Acked-by: David Sommerseth <dav...@redhat.com> Message-Id: 1339342891-28443-4-git-send-email-g...@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/6716 Signed-off-by: David Sommerseth <dav...@redhat.com> commit ff9c39b6c9360fba14693ab5048567599ea5a38f Author: Gert Doering <g...@greenie.muc.de> List-Post: openvpn-devel@lists.sourceforge.net Date: Sun Jun 10 17:41:30 2012 +0200 Add missing pieces to IPv6 route gateway handling. 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 <dev>" with gateway spec (both together do not work) on FreeBSD and MacOS X. Also adapt "route delete" appropriately, otherwise route will not be found. All other platforms already use the gateway address for tun and tap, because there's no way to install a route "towards an interface" there. Signed-off-by: Gert Doering <g...@greenie.muc.de> Acked-by: David Sommerseth <dav...@redhat.com> Message-Id: 1339342891-28443-5-git-send-email-g...@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/6712 Signed-off-by: David Sommerseth <dav...@redhat.com> commit fc0c29b31c6f3804a074d8436ee738b0cee8f800 Author: Gert Doering <g...@greenie.muc.de> List-Post: openvpn-devel@lists.sourceforge.net Date: Sun Jun 10 17:41:31 2012 +0200 Update TODO.IPv6 list 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 <g...@greenie.muc.de> Signed-off-by: David Sommerseth <dav...@redhat.com> kind regards, David Sommerseth
signature.asc
Description: OpenPGP digital signature