mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 11:55:27 +00:00
fix(FPEngine): respect max-rtt-timeout in OS detection RTO calculation
This commit is contained in:
parent
b3948715c4
commit
213ebbef8e
1 changed files with 2 additions and 0 deletions
|
|
@ -1424,6 +1424,8 @@ int FPHost::update_RTO(int measured_rtt_usecs, bool retransmission) {
|
|||
* low-latency networks (such as localhost scans). */
|
||||
if (this->rto < (MIN_RTT_TIMEOUT*1000))
|
||||
this->rto = (MIN_RTT_TIMEOUT*1000);
|
||||
if (this->rto > (o.maxRttTimeout()*1000))
|
||||
this->rto = (o.maxRttTimeout()*1000);
|
||||
return this->rto;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue