mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 17:09:02 +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:
@@ -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, ...)
|
||||
|
||||
Reference in New Issue
Block a user