mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Use u32 instead of int for all ipids
IP ID is an unsigned value. Explicit wrapping checks were needed to support using a signed int, and a few users were reporting compile errors because of a large constant: http://seclists.org/nmap-dev/2013/q4/247
This commit is contained in:
@@ -189,9 +189,9 @@ void os_scan2(std::vector<Target *> &Targets);
|
||||
int get_initial_ttl_guess(u8 ttl);
|
||||
|
||||
int identify_sequence(int numSamples, u32 *ipid_diffs, int islocalhost, int allipideqz);
|
||||
int get_diffs(u32 *ipid_diffs, int numSamples, int *ipids, int islocalhost);
|
||||
int get_ipid_sequence_16(int numSamples, int *ipids, int islocalhost);
|
||||
int get_ipid_sequence_32(int numSamples, int *ipids, int islocalhost);
|
||||
int get_diffs(u32 *ipid_diffs, int numSamples, u32 *ipids, int islocalhost);
|
||||
int get_ipid_sequence_16(int numSamples, u32 *ipids, int islocalhost);
|
||||
int get_ipid_sequence_32(int numSamples, u32 *ipids, int islocalhost);
|
||||
|
||||
/******************************************************************************
|
||||
* CLASS DEFINITIONS *
|
||||
|
||||
Reference in New Issue
Block a user