Call bgp_add/del_route6() in l2tpns.c.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
parent
c7e67e1de2
commit
7e1e91ef98
1 changed files with 6 additions and 1 deletions
7
l2tpns.c
7
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",
|
LOG(0, 0, 0, "route6set() error in ioctl: %s\n",
|
||||||
strerror(errno));
|
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)
|
if (s)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue