1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-03 05:09:14 +00:00

Make base_port a member of UltraScanInfo.

This commit is contained in:
dmiller
2021-08-06 02:47:58 +00:00
parent 180c716ca5
commit e93109ef88
4 changed files with 33 additions and 35 deletions

View File

@@ -969,6 +969,7 @@ void UltraScanInfo::Init(std::vector<Target *> &Targets, const struct scan_lists
ethsd = NULL;
}
}
base_port = UltraScanInfo::increment_base_port();
}
/* Return the total number of probes that may be sent to each host. This never
@@ -2730,8 +2731,6 @@ void ultra_scan(std::vector<Target *> &Targets, const struct scan_lists *ports,
stype scantype, struct timeout_info *to) {
o.current_scantype = scantype;
increment_base_port();
/* Load up _all_ payloads into a mapped table. Only needed for raw scans. */
init_payloads();