1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Fix -PE for IPv6

This commit is contained in:
dmiller
2015-02-20 18:56:39 +00:00
parent 6ba9936d24
commit febc009a13
2 changed files with 5 additions and 1 deletions

View File

@@ -193,7 +193,7 @@ void UltraProbe::setIP(u8 *ippacket, u32 len, const probespec *pspec) {
sctp = (struct sctp_hdr *) data;
probes.IP.pd.sctp.sport = ntohs(sctp->sh_sport);
probes.IP.pd.sctp.vtag = ntohl(sctp->sh_vtag);
} else if (hdr == IPPROTO_ICMP) {
} else if (hdr == IPPROTO_ICMP || hdr == IPPROTO_ICMPV6) {
icmp = (struct ppkt *) data;
probes.IP.pd.icmp.ident = ntohs(icmp->id);
}