Show ICMP ID and seqno in packet trace by default.

This was previously limited to ippackethdrinfo's medium detail and
above, which required -v in Nping and -d2 in Nmap.
This commit is contained in:
david 2013-01-28 22:34:37 +00:00
parent d79e431e7a
commit 41b397200b
2 changed files with 5 additions and 7 deletions

View file

@ -1,5 +1,8 @@
# Nmap Changelog ($Id$); -*-text-*-
o Packet trace of ICMP packets now include the ICMP ID and sequence
number by default. [David Fifield]
o [NSE] Added ike-version and a new ike library by Jesper Kückelhahn. Thanks
also go to Roy Hills, who allowed the use of the signature database from
the ike-scan tool.

View file

@ -2965,13 +2965,8 @@ icmpbad:
else
strncpy(icmpinfo,"type=?/code=?", sizeof(icmpinfo));
if (detail == LOW_DETAIL) {
Snprintf(protoinfo, sizeof(protoinfo), "ICMP %s > %s %s (%s) %s",
srchost, dsthost, icmptype, icmpinfo, ipinfo);
} else {
Snprintf(protoinfo, sizeof(protoinfo), "ICMP [%s > %s %s (%s) %s] IP [%s]",
srchost, dsthost, icmptype, icmpinfo, icmpfields, ipinfo);
}
Snprintf(protoinfo, sizeof(protoinfo), "ICMP [%s > %s %s (%s) %s] IP [%s]",
srchost, dsthost, icmptype, icmpinfo, icmpfields, ipinfo);
}
/* UNKNOWN PROTOCOL **********************************************************/