mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
76c8efc086
commit
176046784b
1 changed files with 2 additions and 2 deletions
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue