From: fendo Date: Sat, 21 Sep 2013 10:51:32 +0000 (+0200) Subject: Fix: remove old IPV6 routes on slave X-Git-Tag: 2.2.1-2fdn3.11~2 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/aa737c197cb6dd1f6092d1137e60edf908541618?ds=sidebyside;hp=-c Fix: remove old IPV6 routes on slave --- aa737c197cb6dd1f6092d1137e60edf908541618 diff --git a/l2tpns.c b/l2tpns.c index 57ede3d..0167184 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -5809,6 +5809,10 @@ int load_session(sessionidt s, sessiont *new) uncache_ipmap(session[s].ip); } + // remove old IPV6 routes... + if (session[s].ipv6route.s6_addr[0] && session[s].ipv6prefixlen) + route6set(s, session[s].ipv6route, session[s].ipv6prefixlen, 0); + routed = 0; // add new routes...