mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Make abstract_ip_hdr.ipid 16 bits, not 8.
This was a mistake that was cauding later IP ID comparisons to be false because of truncation. In particular, it could make all protocols appear to be open when doing a -sO scan against localhost because the outgoing packets looked like protocol replies.
This commit is contained in:
parent
d7a3040644
commit
36af9da175
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ struct abstract_ip_hdr {
|
|||
struct sockaddr_storage dst;
|
||||
u8 proto; /* IPv4 proto or IPv6 next header. */
|
||||
u8 ttl; /* IPv4 TTL or IPv6 hop limit. */
|
||||
u8 ipid; /* IPv4 IP ID or IPv6 flow label. */
|
||||
u16 ipid; /* IPv4 IP ID or IPv6 flow label. */
|
||||
};
|
||||
|
||||
void netutil_fatal(const char *str, ...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue