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

Print a "TRACEROUTE" header for directly connected hosts, even though it

lacks a probe specification like "(using proto 1/icmp)".
This commit is contained in:
david
2010-03-23 23:38:34 +00:00
parent 2684b78ce5
commit d375aa25e9

View File

@@ -2037,6 +2037,9 @@ static void printtraceroute_normal(Target * currenths) {
struct protoent *proto = nmap_getprotbynum(htons(probe.proto));
log_write(LOG_PLAIN, "TRACEROUTE (using proto %d/%s)\n",
probe.proto, proto ? proto->p_name : "unknown");
} else {
/* "Traces" of directly connected targets don't send any packets. */
log_write(LOG_PLAIN, "TRACEROUTE\n");
}
row = 0;