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(rc < 0) {
if(!nets[i].up) fprintf(stderr, "Couldn't get local addresses.\n");
continue; numaddr = 0;
rc = kernel_addresses(nets[i].ifindex, } else {
addresses + numaddr, 240 - numaddr); numaddr = rc;
if(rc < 0) {
fprintf(stderr, "Couldn't get addresses for network %s\n",
nets[i].ifname);
continue;
}
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