From d1ef18a245ddefcfcc56a87e1d84e126325f43f5 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 23 Dec 2011 05:05:07 +0000 Subject: [PATCH] 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. --- libnetutil/netutil.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libnetutil/netutil.cc b/libnetutil/netutil.cc index 3dfa448d5..4c557d862 100644 --- a/libnetutil/netutil.cc +++ b/libnetutil/netutil.cc @@ -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--;