X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/b3f40f41f7de7a383c6f1170e546d0b09cc57338..2a385573a65683c450a53fa6a558a8132327ccf4:/l2tpns.c?ds=inline diff --git a/l2tpns.c b/l2tpns.c index 07a45f7..390f564 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -5893,7 +5893,9 @@ int load_session(sessionidt s, sessiont *new) if (new->ipv6address.s6_addr[0] && new->ppp.ipv6cp == Opened && session[s].ppp.ipv6cp != Opened) { - route6set(s, new->ipv6address, 128, 1); + // Check if included in prefix + if (sessionbyipv6(new->ipv6address) != s) + route6set(s, new->ipv6address, 128, 1); } // check filters