1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 08:29:04 +00:00

Use ipid parameter for build_icmp_raw() and build_igmp_raw() instead of get_random_u16() when calling build_ip_raw().

This commit is contained in:
kris
2007-01-30 00:35:44 +00:00
parent 76c8efc086
commit 176046784b

View File

@@ -1441,7 +1441,7 @@ if ( o.badsum )
return build_ip_raw(source, victim,
IPPROTO_ICMP,
ttl, get_random_u16(), tos, df,
ttl, ipid, tos, df,
ipopt, ipoptlen,
ping, icmplen,
packetlen);
@@ -1501,7 +1501,7 @@ u8 *build_igmp_raw(const struct in_addr *source, const struct in_addr *victim,
return build_ip_raw(source, victim,
IPPROTO_IGMP,
ttl, get_random_u16(), tos, df,
ttl, ipid, tos, df,
ipopt, ipoptlen,
pkt, igmplen,
packetlen);