mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Add PS_ICMPV6 to probespec2ascii and pspectype2ascii.
This commit is contained in:
@@ -155,6 +155,8 @@ static const char *pspectype2ascii(int type) {
|
||||
return "ICMP";
|
||||
case PS_ARP:
|
||||
return "ARP";
|
||||
case PS_ICMPV6:
|
||||
return "ICMPv6";
|
||||
case PS_ND:
|
||||
return "ND";
|
||||
case PS_CONNECTTCP:
|
||||
@@ -732,6 +734,10 @@ static char *probespec2ascii(const probespec *pspec, char *buf, unsigned int buf
|
||||
case PS_ARP:
|
||||
Snprintf(buf, bufsz, "ARP");
|
||||
break;
|
||||
case PS_ICMPV6:
|
||||
Snprintf(buf, bufsz, "icmpv6 type %d code %d",
|
||||
pspec->pd.icmpv6.type, pspec->pd.icmpv6.code);
|
||||
break;
|
||||
case PS_ND:
|
||||
Snprintf(buf, bufsz, "ND");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user