[Babel-users] [PATCH] Fixed incorrect ifindex overwrite.

Jernej Kos jernej at kos.mx
Tue Dec 15 12:17:57 UTC 2015


---
 xroute.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xroute.c b/xroute.c
index c8be8b7..f18e387 100644
--- a/xroute.c
+++ b/xroute.c
@@ -222,7 +222,7 @@ filter_address(struct kernel_addr *addr, void *data) {
     memcpy(route->prefix, addr->addr.s6_addr, 16);
     route->plen = 128;
     route->metric = 0;
-    route->ifindex = ifindex;
+    route->ifindex = addr->ifindex;
     route->proto = RTPROT_BABEL_LOCAL;
     memset(route->gw, 0, 16);
     ++ *found;
-- 
1.9.1




More information about the Babel-users mailing list