mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Add PS_ICMPV6 to probespec2ascii and pspectype2ascii.
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
# Nmap Changelog ($Id$); -*-text-*-
|
# Nmap Changelog ($Id$); -*-text-*-
|
||||||
|
|
||||||
|
o Fixed an error that could occur with ICMPv6 probes and -d4 debugging:
|
||||||
|
"Unexpected probespec2ascii type encountered" [David Fifield]
|
||||||
|
|
||||||
o Fixed the routing table loop on OS X so that on-link routes appear.
|
o Fixed the routing table loop on OS X so that on-link routes appear.
|
||||||
Previously, they were ignored so that things like ARP scan didn't
|
Previously, they were ignored so that things like ARP scan didn't
|
||||||
work. [Patrik Karlsson, David Fifield]
|
work. [Patrik Karlsson, David Fifield]
|
||||||
|
|||||||
@@ -155,6 +155,8 @@ static const char *pspectype2ascii(int type) {
|
|||||||
return "ICMP";
|
return "ICMP";
|
||||||
case PS_ARP:
|
case PS_ARP:
|
||||||
return "ARP";
|
return "ARP";
|
||||||
|
case PS_ICMPV6:
|
||||||
|
return "ICMPv6";
|
||||||
case PS_ND:
|
case PS_ND:
|
||||||
return "ND";
|
return "ND";
|
||||||
case PS_CONNECTTCP:
|
case PS_CONNECTTCP:
|
||||||
@@ -732,6 +734,10 @@ static char *probespec2ascii(const probespec *pspec, char *buf, unsigned int buf
|
|||||||
case PS_ARP:
|
case PS_ARP:
|
||||||
Snprintf(buf, bufsz, "ARP");
|
Snprintf(buf, bufsz, "ARP");
|
||||||
break;
|
break;
|
||||||
|
case PS_ICMPV6:
|
||||||
|
Snprintf(buf, bufsz, "icmpv6 type %d code %d",
|
||||||
|
pspec->pd.icmpv6.type, pspec->pd.icmpv6.code);
|
||||||
|
break;
|
||||||
case PS_ND:
|
case PS_ND:
|
||||||
Snprintf(buf, bufsz, "ND");
|
Snprintf(buf, bufsz, "ND");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user