To avoid misunderstanding, keep variables for tcp keepalive in
authoryasuoka <yasuoka@openbsd.org>
Tue, 14 Mar 2023 00:24:05 +0000 (00:24 +0000)
committeryasuoka <yasuoka@openbsd.org>
Tue, 14 Mar 2023 00:24:05 +0000 (00:24 +0000)
commitb95875753e508d8cbcef16b43fd29eac206e527b
tree258ea806c6f55519e4426a42f2fa4bb6d244a65b
parent37084734d542d59fe645cc4d7d45266343887a87
To avoid misunderstanding, keep variables for tcp keepalive in
milliseconds, which is the same unit of tcp_now().  However, keep the
unit of sysctl variables in seconds and convert their unit in
tcp_sysctl().  Additionally revert TCPTV_SRTTDFLT back to 3 seconds,
which was mistakenly changed to 1.5 seconds by tcp_timer.h 1.19.

ok claudio
sys/netinet/tcp_input.c
sys/netinet/tcp_timer.c
sys/netinet/tcp_timer.h
sys/netinet/tcp_usrreq.c
sys/netinet/tcp_var.h