1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-30 03:19:02 +00:00

New dynamic number of OS tries, and --max-os-tries option

This commit is contained in:
fyodor
2006-10-02 03:21:40 +00:00
parent 47b833c055
commit 25bbd2983d
8 changed files with 117 additions and 54 deletions

View File

@@ -190,6 +190,13 @@ class NmapOps {
int max_parallelism; // 0 means it has not been set
int min_parallelism; // 0 means it has not been set
/* The maximum number of OS detection (gen2) tries we will make
without any matches before giving up on a host. We may well give
up after fewer tries anyway, particularly if the target isn't
ideal for unknown fingerprint submissions */
int maxOSTries() { return max_os_tries; }
void setMaxOSTries(int mot);
/* These functions retrieve and set the Round Trip Time timeouts, in
milliseconds. The set versions do extra processing to insure sane
values and to adjust each other to insure consistance (e.g. that
@@ -308,6 +315,7 @@ class NmapOps {
bool release_memory; /* suggest to release memory before quitting. used to find memory leaks. */
private:
int max_os_tries;
int max_rtt_timeout;
int min_rtt_timeout;
int initial_rtt_timeout;