Call bgp_add/del_route6() in l2tpns.c.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
Benjamin Cama 2011-07-23 22:29:59 +02:00
parent c7e67e1de2
commit 7e1e91ef98

View file

@ -502,7 +502,12 @@ void route6set(sessionidt s, struct in6_addr ip, int prefixlen, int add)
LOG(0, 0, 0, "route6set() error in ioctl: %s\n",
strerror(errno));
// FIXME: need to add BGP routing (RFC2858)
#ifdef BGP
if (add)
bgp_add_route6(ip, prefixlen);
else
bgp_del_route6(ip, prefixlen);
#endif /* BGP */
if (s)
{