From 7e1e91ef98ed8d48a0aa97c44a7a3da32ef088a8 Mon Sep 17 00:00:00 2001 From: Benjamin Cama Date: Sat, 23 Jul 2011 22:29:59 +0200 Subject: [PATCH] Call bgp_add/del_route6() in l2tpns.c. Signed-off-by: Benjamin Cama --- l2tpns.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.20.1