1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Change explicit definition of os_scan_performance_vars to a typedef in the header file

This commit is contained in:
luis
2011-07-25 18:34:03 +00:00
parent 4faf19f738
commit 35ef43f711
2 changed files with 27 additions and 19 deletions

View File

@@ -152,25 +152,8 @@ class HostOsScan;
class HostOsScanInfo; class HostOsScanInfo;
class OsScanInfo; class OsScanInfo;
/* Performance tuning variable. */ /* Global to store performance info */
struct os_scan_performance_vars { os_scan_performance_vars_t perf;
int low_cwnd; /* The lowest cwnd (congestion window) allowed */
int host_initial_cwnd; /* Initial congestion window for ind. hosts */
int group_initial_cwnd; /* Initial congestion window for all hosts as a group */
int max_cwnd; /* I should never have more than this many probes
outstanding */
int quick_incr; /* How many probes are incremented for each response
in quick start mode */
int cc_incr; /* How many probes are incremented per (roughly) rtt in
congestion control mode */
int initial_ccthresh;
double group_drop_cwnd_divisor; /* all-host group cwnd divided by this
value if any packet drop occurs */
double group_drop_ccthresh_divisor; /* used to drop the group ccthresh when
any drop occurs */
double host_drop_ccthresh_divisor; /* used to drop the host ccthresh when
any drop occurs */
} perf;
/* Some of the algorithms used here are TCP congestion control /* Some of the algorithms used here are TCP congestion control
techniques from RFC2581. */ techniques from RFC2581. */

View File

@@ -127,6 +127,31 @@ class Target;
#define OS_SEQ_PROBE_DELAY 100 #define OS_SEQ_PROBE_DELAY 100
/******************************************************************************
* TYPE AND STRUCTURE DEFINITIONS *
******************************************************************************/
/* Performance tuning variable. */
typedef struct os_scan_performance_vars {
int low_cwnd; /* The lowest cwnd (congestion window) allowed */
int host_initial_cwnd; /* Initial congestion window for ind. hosts */
int group_initial_cwnd; /* Initial congestion window for all hosts as a group */
int max_cwnd; /* I should never have more than this many probes
outstanding */
int quick_incr; /* How many probes are incremented for each response
in quick start mode */
int cc_incr; /* How many probes are incremented per (roughly) rtt in
congestion control mode */
int initial_ccthresh;
double group_drop_cwnd_divisor; /* all-host group cwnd divided by this
value if any packet drop occurs */
double group_drop_ccthresh_divisor; /* used to drop the group ccthresh when
any drop occurs */
double host_drop_ccthresh_divisor; /* used to drop the host ccthresh when
any drop occurs */
} os_scan_performance_vars_t;
/****************************************************************************** /******************************************************************************
* FUNCTION PROTOTYPES * * FUNCTION PROTOTYPES *