-/* $OpenBSD: route.c,v 1.417 2023/04/26 15:40:33 kn Exp $ */
+/* $OpenBSD: route.c,v 1.418 2023/04/26 16:09:44 kn Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
} \
}
-/*
- * Some subtle order problems with domain initialization mean that
- * we cannot count on this being run from rt_init before various
- * protocol initializations are done. Therefore, we make sure
- * that this is run when the first queue is added...
- */
-
void
rt_timer_init(void)
{
{
const struct rttimer *r;
time_t expire = 0;
-
+
mtx_enter(&rttimer_mtx);
LIST_FOREACH(r, &rt->rt_timer, rtt_link) {
if (expire == 0 || expire > r->rtt_expire)