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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user