1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

Disable "WARNING: Unable to find appropriate interface for system route to...".

This often comes up these days with IPv6 routes that don't seem to
affect scanning. I don't think we have problems with routes being
removed when they shouldn't be anymore.
This commit is contained in:
david
2011-12-23 05:05:07 +00:00
parent c37d7d6d28
commit d1ef18a245

View File

@@ -1539,8 +1539,10 @@ static struct dnet_collector_route_nfo *sysroutes_dnet_find_interfaces(struct dn
strncpy(destbuf, inet_ntop_ez(&dcrn->routes[i].dest, sizeof(dcrn->routes[i].dest)), sizeof(destbuf));
strncpy(gwbuf, inet_ntop_ez(&dcrn->routes[i].gw, sizeof(dcrn->routes[i].gw)), sizeof(gwbuf));
/*
netutil_error("WARNING: Unable to find appropriate interface for system route to %s/%u gw %s",
destbuf, dcrn->routes[i].netmask_bits, gwbuf);
*/
/* Remove this entry from the table. */
memmove(dcrn->routes + i, dcrn->routes + i + 1, sizeof(dcrn->routes[0]) * (dcrn->numroutes - i - 1));
dcrn->numroutes--;