Commit b34ba8b2 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Consider all addresses when exporting.

parent 15a2e3ad
...@@ -109,22 +109,12 @@ check_xroutes() ...@@ -109,22 +109,12 @@ check_xroutes()
debugf("\nChecking kernel routes.\n"); debugf("\nChecking kernel routes.\n");
numaddr = 0; rc = kernel_addresses(addresses, 240);
for(i = 0; i < numnets; i++) {
if(!nets[i].up)
continue;
rc = kernel_addresses(nets[i].ifindex,
addresses + numaddr, 240 - numaddr);
if(rc < 0) { if(rc < 0) {
fprintf(stderr, "Couldn't get addresses for network %s\n", fprintf(stderr, "Couldn't get local addresses.\n");
nets[i].ifname); numaddr = 0;
continue; } else {
} numaddr = rc;
numaddr += rc;
if(numaddr >= 240) {
fprintf(stderr, "Too many local routes.\n");
break;
}
} }
rc = kernel_routes(routes, 240); rc = kernel_routes(routes, 240);
......
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