summaryrefslogtreecommitdiffstats
path: root/src/openvpn/init.c
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2012-06-10 17:41:30 +0200
committerDavid Sommerseth <davids@redhat.com>2012-06-13 12:20:01 +0200
commitff9c39b6c9360fba14693ab5048567599ea5a38f (patch)
treec97885192d2230e8cf443a4898d4eef13cb88d9d /src/openvpn/init.c
parenta9af3ca44e335716c1aab46d6702cf3530e3bb73 (diff)
downloadopenvpn-ff9c39b6c9360fba14693ab5048567599ea5a38f.tar.gz
openvpn-ff9c39b6c9360fba14693ab5048567599ea5a38f.tar.xz
openvpn-ff9c39b6c9360fba14693ab5048567599ea5a38f.zip
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. Remove warning about missing IPv6 route gateway handling. Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: David Sommerseth <davids@redhat.com> Message-Id: 1339342891-28443-5-git-send-email-gert@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/6712 Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/init.c')
-rw-r--r--src/openvpn/init.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/openvpn/init.c b/src/openvpn/init.c
index bfd6cfa..61fd2a6 100644
--- a/src/openvpn/init.c
+++ b/src/openvpn/init.c
@@ -1251,9 +1251,6 @@ do_init_route_ipv6_list (const struct options *options,
int dev = dev_type_enum (options->dev, options->dev_type);
int metric = -1; /* no metric set */
- if (dev != DEV_TYPE_TUN )
- msg( M_WARN, "IPv6 routes on TAP devices are going to fail on some platforms (need gateway spec)" ); /* TODO-GERT */
-
gw = options->ifconfig_ipv6_remote; /* default GW = remote end */
#if 0 /* not yet done for IPv6 - TODO!*/
if ( options->route_ipv6_default_gateway ) /* override? */