mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Change TRACEROUTE "header" (LOG_PLAIN) to say 'proto' instead of 'port' when we're using the IPProto Scan, or Ping Scan (using something other than TCP or UDP)
This commit is contained in:
parent
e52e2c9f49
commit
5469ab5f3b
1 changed files with 1 additions and 1 deletions
|
|
@ -1035,7 +1035,7 @@ Traceroute::outputTarget (Target * t) {
|
|||
/* Traceroute header and footer */
|
||||
proto = nmap_getprotbynum(htons(tg->proto));
|
||||
if(o.ipprotscan || (o.pingscan && !(o.pingtype & PINGTYPE_TCP || o.pingtype & PINGTYPE_UDP)))
|
||||
log_write(LOG_PLAIN, "\nTRACEROUTE (using port %d/%s)\n", tg->proto, proto?proto->p_name:"unknown");
|
||||
log_write(LOG_PLAIN, "\nTRACEROUTE (using proto %d/%s)\n", tg->proto, proto?proto->p_name:"unknown");
|
||||
else
|
||||
log_write(LOG_PLAIN, "\nTRACEROUTE (using port %d/%s)\n", tg->dport, proto2ascii(tg->proto));
|
||||
log_write (LOG_PLAIN, "%s", Tbl->printableTable(NULL));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue