mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Change explicit definition of struct osscan_timing_vals to a typedef in the header file
This commit is contained in:
parent
35ef43f711
commit
80a8a8a418
2 changed files with 22 additions and 19 deletions
19
osscan2.h
19
osscan2.h
|
|
@ -153,6 +153,25 @@ typedef struct os_scan_performance_vars {
|
|||
|
||||
|
||||
|
||||
/* Some of the algorithms used here are TCP congestion control
|
||||
techniques from RFC2581. */
|
||||
typedef struct osscan_timing_vals {
|
||||
double cwnd; /* Congestion window - in probes */
|
||||
|
||||
/* The threshold after which mode is changed from QUICK_START to
|
||||
CONGESTION_CONTROL */
|
||||
int ccthresh;
|
||||
|
||||
/* Number of updates to this utv (generally packet receipts ) */
|
||||
int num_updates;
|
||||
|
||||
/* Last time values were adjusted for a drop (you usually only want
|
||||
to adjust again based on probes sent after that adjustment so a
|
||||
sudden batch of drops doesn't destroy timing. Init to now */
|
||||
struct timeval last_drop;
|
||||
} osscan_timing_vals_t;
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* FUNCTION PROTOTYPES *
|
||||
******************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue