1
0
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:
dmiller
2013-12-04 12:51:59 +00:00
parent 89db1ca27c
commit 45179297f5
4 changed files with 16 additions and 20 deletions

View File

@@ -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 *