In tcp_now() switch from getnsecuptime() to getnsecruntime()
authorclaudio <claudio@openbsd.org>
Tue, 13 Dec 2022 18:10:55 +0000 (18:10 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 13 Dec 2022 18:10:55 +0000 (18:10 +0000)
commitd88352743c468204607aa42025ec3469aacd02bb
tree2a74c2593edc218156c38f7f500eb952afd06e31
parent6fba7c695c88ce551cbfb5461cad0d4f29e0d23b
In tcp_now() switch from getnsecuptime() to getnsecruntime()

The tcp timer is not supposed to run during suspend but getnsecuptime() does
and because of this sessions with TCP_KEEPALIVE on reset after a few hours
of sleep.

Problem noticed by mlarkin@, investigation by yasuoka@ additional testing jca@
OK yasuoka@ jca@ cheloha@
sys/netinet/tcp_var.h