projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: remove old IPV6 routes on slave
[l2tpns.git]
/
l2tpns.c
diff --git
a/l2tpns.c
b/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...