1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 21:21:31 +00:00

Fix sign and width issues around max_ips_to_scan. Fixes #2838. Fixes #2836

This commit is contained in:
dmiller
2024-06-04 18:22:17 +00:00
parent e4a4b2854f
commit 03c9f34959
5 changed files with 26 additions and 16 deletions

View File

@@ -226,8 +226,8 @@ class NmapOps {
/* Gets the spoofed MAC address, but returns NULL if it hasn't been set */
const u8 *spoofMACAddress() { return spoof_mac_set? spoof_mac : NULL; }
unsigned int max_ips_to_scan; // Used for Random input (-iR) to specify how
// many IPs to try before stopping. 0 means unlimited.
unsigned long max_ips_to_scan; // Used for Random input (-iR) to specify how
// many IPs to try before stopping. 0 means unlimited if generate_random_ips is true
int extra_payload_length; /* These two are for --data-length op */
char *extra_payload;
unsigned long host_timeout;