sync with OpenBSD -current

This commit is contained in:
purplerain 2024-01-30 00:27:54 +00:00
parent 604988d5d3
commit 4b5c843641
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
8 changed files with 584 additions and 47 deletions

View file

@ -1,4 +1,4 @@
/* $OpenBSD: tcp_timer.h,v 1.20 2023/03/14 00:24:05 yasuoka Exp $ */
/* $OpenBSD: tcp_timer.h,v 1.21 2024/01/29 22:47:13 bluhm Exp $ */
/* $NetBSD: tcp_timer.h,v 1.6 1995/03/26 20:32:37 jtc Exp $ */
/*
@ -117,7 +117,9 @@ const char *tcptimers[TCPT_NTIMERS] =
* Init, arm, disarm, and test TCP timers.
*/
#define TCP_TIMER_INIT(tp, timer) \
timeout_set_proc(&(tp)->t_timer[(timer)], tcp_timer_funcs[(timer)], tp)
timeout_set_flags(&(tp)->t_timer[(timer)], \
tcp_timer_funcs[(timer)], tp, KCLOCK_NONE, \
TIMEOUT_PROC | TIMEOUT_MPSAFE)
#define TCP_TIMER_ARM(tp, timer, msecs) \
do { \