From: fendo Date: Tue, 10 Dec 2013 22:17:21 +0000 (+0100) Subject: Fix: remove old IPV6 routes on master X-Git-Tag: 2.2.1-2fdn3.12 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/786a8c4546c4a28f21d8995567e6f8f28f2eb053?hp=-c Fix: remove old IPV6 routes on master --- 786a8c4546c4a28f21d8995567e6f8f28f2eb053 diff --git a/debian/changelog b/debian/changelog index 8600178..5dc13f3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,10 @@ -l2tpns (2.2.1-2fdn3.11) UNRELEASED; urgency=low +l2tpns (2.2.1-2fdn3.12) UNRELEASED; urgency=low + + * Fix: remove old IPV6 routes on master + + -- Fernando Alves Tue, 10 Dec 2013 23:13:20 +0100 + +l2tpns (2.2.1-2fdn3.11) unstable; urgency=low * Fix: throttle ipv6 out. * Fix: remove old IPV6 routes on slave @@ -13,7 +19,7 @@ l2tpns (2.2.1-2fdn3.11) UNRELEASED; urgency=low * Add build-arch/build-indep targets to debian/rules * Fix: compiling Warning - -- Fernando Alves Sun, 06 Oct 2013 10:38:53 +0200 + -- Fernando Alves Tue, 10 Dec 2013 23:08:45 +0100 l2tpns (2.2.1-2fdn3.10) unstable; urgency=low diff --git a/l2tpns.c b/l2tpns.c index 6c1e620..04fe44b 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -2120,9 +2120,9 @@ void sessionshutdown(sessionidt s, char const *reason, int cdn_result, int cdn_e free_ip_address(s); // unroute IPv6, if setup - if (session[s].ppp.ipv6cp == Opened && session[s].ipv6prefixlen && del_routes) + if (session[s].ipv6route.s6_addr[0] && session[s].ipv6prefixlen && del_routes) route6set(s, session[s].ipv6route, session[s].ipv6prefixlen, 0); - + if (b) { // This session was part of a bundle