Fix: remove old IPV6 routes on slave
authorfendo <fendo@bi12info.com>
Sat, 21 Sep 2013 10:51:32 +0000 (12:51 +0200)
committerfendo <fendo@bi12info.com>
Sat, 21 Sep 2013 10:51:32 +0000 (12:51 +0200)
l2tpns.c

index 57ede3d..0167184 100644 (file)
--- 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...