projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7e67e1
)
Call bgp_add/del_route6() in l2tpns.c.
author
Benjamin Cama
<benoar@dolka.fr>
Sat, 23 Jul 2011 20:29:59 +0000
(22:29 +0200)
committer
Benjamin Cama
<benoar@dolka.fr>
Thu, 28 Jul 2011 13:01:57 +0000
(15:01 +0200)
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
l2tpns.c
patch
|
blob
|
history
diff --git
a/l2tpns.c
b/l2tpns.c
index
d70cc45
..
6a4656e
100644
(file)
--- 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)
{