From 78435476df9473488c7eae952b2a9e6d39a1f562 Mon Sep 17 00:00:00 2001 From: tudor Date: Sun, 7 Aug 2016 16:05:47 +0000 Subject: [PATCH] Certain variables are now unsigned int instead of int to accommodate full internet scans --- NmapOps.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NmapOps.h b/NmapOps.h index b767f5f1e..664b9c34a 100644 --- a/NmapOps.h +++ b/NmapOps.h @@ -285,7 +285,7 @@ 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; } - int max_ips_to_scan; // Used for Random input (-iR) to specify how + unsigned int max_ips_to_scan; // Used for Random input (-iR) to specify how // many IPs to try before stopping. 0 means unlimited. int extra_payload_length; /* These two are for --data-length op */ char *extra_payload; @@ -401,8 +401,8 @@ class NmapOps { int ipopt_lasthop; // offset in ipoptions where is space for targets ip for source/strict routing // Statistics Options set in nmap.cc - int numhosts_scanned; - int numhosts_up; + unsigned int numhosts_scanned; + unsigned int numhosts_up; int numhosts_scanning; stype current_scantype; bool noninteractive;