1
0
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:
david
2012-03-27 20:33:53 +00:00
parent aa4800d76c
commit 6666c7ceaf
2 changed files with 9 additions and 0 deletions

View File

@@ -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;