mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 04:25:15 +00:00
Fix -PE for IPv6
This commit is contained in:
parent
6ba9936d24
commit
febc009a13
2 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue