Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_syncache.c
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Transmit the SYN,ACK fewer times than TCP_MAXRXTSHIFT specifies. | * Transmit the SYN,ACK fewer times than TCP_MAXRXTSHIFT specifies. | ||||
* 3 retransmits corresponds to a timeout with default values of | * 3 retransmits corresponds to a timeout with default values of | ||||
* TCPTV_RTOBASE * ( 1 + | * TCPTV_RTOBASE * ( 1 + | ||||
* tcp_backoff[1] + | * tcp_backoff[1] + | ||||
* tcp_backoff[2] + | * tcp_backoff[2] + | ||||
* tcp_backoff[3]) + 3 * tcp_rexmit_slop, | * tcp_backoff[3]) + 3 * tcp_rexmit_slop, | ||||
* 3000 ms * (1 + 2 + 4 + 8) + 3 * 200 ms = 45600 ms, | * 1000 ms * (1 + 2 + 4 + 8) + 3 * 200 ms = 15600 ms, | ||||
* the odds are that the user has given up attempting to connect by then. | * the odds are that the user has given up attempting to connect by then. | ||||
*/ | */ | ||||
#define SYNCACHE_MAXREXMTS 3 | #define SYNCACHE_MAXREXMTS 3 | ||||
/* Arbitrary values */ | /* Arbitrary values */ | ||||
#define TCP_SYNCACHE_HASHSIZE 512 | #define TCP_SYNCACHE_HASHSIZE 512 | ||||
#define TCP_SYNCACHE_BUCKETLIMIT 30 | #define TCP_SYNCACHE_BUCKETLIMIT 30 | ||||
▲ Show 20 Lines • Show All 2,126 Lines • Show Last 20 Lines |