From: Benjamin Cama Date: Sat, 23 Jul 2011 20:29:59 +0000 (+0200) Subject: Call bgp_add/del_route6() in l2tpns.c. X-Git-Tag: debian/2.2.1-1fdn1~1^2^2~5 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/7e1e91ef98ed8d48a0aa97c44a7a3da32ef088a8 Call bgp_add/del_route6() in l2tpns.c. Signed-off-by: Benjamin Cama --- 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) {