Commit 11aa4429 authored by Jernej Kos's avatar Jernej Kos Committed by Juliusz Chroboczek

Fixed incorrect ifindex overwrite.

parent 74407f37
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment