X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/59411b879992b8b6b9a5f8d42ae102719f6b245c..350b06e6f4e8c49fc68105c834e99db226de8720:/l2tpns.c diff --git a/l2tpns.c b/l2tpns.c index d70cc45..6a4656e 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -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) {