diff options
author | Gert Doering <gert@greenie.muc.de> | 2011-05-22 19:02:39 +0200 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2011-05-22 19:08:22 +0200 |
commit | b55e49bd69484fdd440098f9485de159251e1cce (patch) | |
tree | fad30ddc3db287ef24de8df83f5f630792893817 /route.h | |
parent | 39990a2b83308baf1372bbc8846136036a55cf50 (diff) | |
download | openvpn-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |