tcp: Whitespace cleanup, move a define to header and fix a typo.
This commit is contained in:
parent
bed94ebc49
commit
8982293017
@ -304,8 +304,6 @@ protected:
|
||||
# define T(x)
|
||||
#endif // TCP_TRACING
|
||||
|
||||
// Initial estimate for packet round trip time (RTT)
|
||||
#define TCP_INITIAL_RTT 2000000
|
||||
|
||||
// constants for the fFlags field
|
||||
enum {
|
||||
@ -1280,8 +1278,7 @@ TCPEndpoint::_DuplicateAcknowledge(tcp_segment_header &segment)
|
||||
|
||||
if (fDuplicateAcknowledgeCount == 3) {
|
||||
_ResetSlowStart();
|
||||
fCongestionWindow = fSlowStartThreshold + 3
|
||||
* fSendMaxSegmentSize;
|
||||
fCongestionWindow = fSlowStartThreshold + 3 * fSendMaxSegmentSize;
|
||||
fSendNext = segment.acknowledge;
|
||||
} else if (fDuplicateAcknowledgeCount > 3)
|
||||
fCongestionWindow += fSendMaxSegmentSize;
|
||||
@ -2253,7 +2250,7 @@ TCPEndpoint::_Acknowledged(tcp_segment_header& segment)
|
||||
fCongestionWindow += increment;
|
||||
}
|
||||
|
||||
// if there is data left to be send, send it now
|
||||
// if there is data left to be sent, send it now
|
||||
if (fSendQueue.Used() > 0)
|
||||
_SendQueued();
|
||||
}
|
||||
|
@ -187,6 +187,8 @@ operator==(tcp_sequence a, tcp_sequence b)
|
||||
#define TCP_MAX_SEGMENT_LIFETIME 60000000 // 60 secs
|
||||
#define TCP_PERSIST_TIMEOUT 1000000 // 1 sec
|
||||
|
||||
// Initial estimate for packet round trip time (RTT)
|
||||
#define TCP_INITIAL_RTT 2000000 // 2 secs
|
||||
// Minimum retransmit timeout (consider delayed ack)
|
||||
#define TCP_MIN_RETRANSMIT_TIMEOUT 200000 // 200 msecs
|
||||
// Maximum retransmit timeout (per RFC6298)
|
||||
|
Loading…
Reference in New Issue
Block a user