mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Fix the setting of ipid in setIP.
This commit is contained in:
parent
d42ef0edbc
commit
0793852c90
1 changed files with 1 additions and 1 deletions
|
|
@ -826,7 +826,7 @@ void UltraProbe::setIP(u8 *ippacket, u32 len, const probespec *pspec) {
|
|||
data = ipv6_get_data(ip6, &len, &hdr);
|
||||
assert(data != NULL);
|
||||
assert(len == (u32) ntohs(ip6->ip6_plen));
|
||||
probes.IP.ipid = ntohs(ip6->ip6_flow & IP6_FLOWLABEL_MASK) & 0xFFFF;
|
||||
probes.IP.ipid = ntohl(ip6->ip6_flow & IP6_FLOWLABEL_MASK) & 0xFFFF;
|
||||
hdr = ip6->ip6_nxt;
|
||||
} else {
|
||||
fatal("Bogus packet passed to %s -- only IP packets allowed", __func__);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue