summaryrefslogtreecommitdiffstats
path: root/route.h
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2011-05-22 19:02:39 +0200
committerGert Doering <gert@greenie.muc.de>2011-05-22 19:08:22 +0200
commitb55e49bd69484fdd440098f9485de159251e1cce (patch)
treefad30ddc3db287ef24de8df83f5f630792893817 /route.h
parent39990a2b83308baf1372bbc8846136036a55cf50 (diff)
downloadopenvpn-b55e49bd69484fdd440098f9485de159251e1cce.tar.gz
openvpn-b55e49bd69484fdd440098f9485de159251e1cce.tar.xz
openvpn-b55e49bd69484fdd440098f9485de159251e1cce.zip
Windows IPv6 cleanup - properly remove IPv6 routes and interface config
after tunnel shutdown. Needs to make delete_route_ipv6() visible from tun.c (route.c, route.h) and to properly zero-out host bits from IPv6 "network" at interface route clearing. Further, add IPv6 routes with "store=active" to make sure nothing lingers after a system crash while OpenVPN was running. While at it, small Solaris cleanup - use CLEAR() to zero-out "ifr" struct. Tested on Windows XP SP3 and Win7 by Gert Doering and Tony Lim. Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'route.h')
-rw-r--r--route.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/route.h b/route.h
index 739d12d..6a7704f 100644
--- a/route.h
+++ b/route.h
@@ -176,6 +176,7 @@ struct route_ipv6_list *new_route_ipv6_list (const int max_routes, struct gc_are
void add_route (struct route *r, const struct tuntap *tt, unsigned int flags, const struct env_set *es);
void add_route_ipv6 (struct route_ipv6 *r, const struct tuntap *tt, unsigned int flags, const struct env_set *es);
+void delete_route_ipv6 (const struct route_ipv6 *r, const struct tuntap *tt, unsigned int flags, const struct env_set *es);
void add_route_to_option_list (struct route_option_list *l,
const char *network,