projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bugs in IPv6 update routine.
[l2tpns.git]
/
l2tpns.c
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));
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)
{
if (s)
{