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:
4
tcpip.cc
4
tcpip.cc
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user