diff options
author | Gert Doering <gert@mobile.greenie.muc.de> | 2011-12-30 21:08:49 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-01-04 11:46:49 +0100 |
commit | 9140223643f7d9bdfd2214304a7bd6ab4b662f97 (patch) | |
tree | 1c89b6f77e8d6adc6970c457728b0e3b9612223b /route.h | |
parent | 1d5c4433cdb7ab0a9d9f7496e6dc2cee189d375f (diff) | |
download | openvpn-9140223643f7d9bdfd2214304a7bd6ab4b662f97.tar.gz openvpn-9140223643f7d9bdfd2214304a7bd6ab4b662f97.tar.xz openvpn-9140223643f7d9bdfd2214304a7bd6ab4b662f97.zip |
Fix build-up of duplicate IPv6 routes on reconnect.
options.c: extend pre_pull_save() and pre_pull_restore() to
save/restore options->routes_ipv6 as well
options.h: add routes_ipv6 to "struct options_pre_pull"
route.h, route.c: add clone_route_ipv6_option_list() and
copy_route_ipv6_option_list() helper functions
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'route.h')
-rw-r--r-- | route.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -211,7 +211,10 @@ struct route_option_list *new_route_option_list (const int max_routes, struct gc struct route_ipv6_option_list *new_route_ipv6_option_list (const int max_routes, struct gc_arena *a); struct route_option_list *clone_route_option_list (const struct route_option_list *src, struct gc_arena *a); +struct route_ipv6_option_list *clone_route_ipv6_option_list (const struct route_ipv6_option_list *src, struct gc_arena *a); void copy_route_option_list (struct route_option_list *dest, const struct route_option_list *src); +void copy_route_ipv6_option_list (struct route_ipv6_option_list *dest, + const struct route_ipv6_option_list *src); struct route_list *new_route_list (const int max_routes, struct gc_arena *a); struct route_ipv6_list *new_route_ipv6_list (const int max_routes, struct gc_arena *a); |