-/* $OpenBSD: ip_carp.c,v 1.335 2018/12/04 12:39:54 claudio Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.336 2018/12/17 09:17:30 claudio Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
retry_later:
sc->cur_vhe = NULL;
if (advbase != 255 || advskew != 255)
- timeout_add(&vhe->ad_tmo, tvtohz(&tv));
+ timeout_add_tv(&vhe->ad_tmo, &tv);
}
/*
sc->sc_delayed_arp = -1;
switch (af) {
case AF_INET:
- timeout_add(&vhe->md_tmo, tvtohz(&tv));
+ timeout_add_tv(&vhe->md_tmo, &tv);
break;
#ifdef INET6
case AF_INET6:
- timeout_add(&vhe->md6_tmo, tvtohz(&tv));
+ timeout_add_tv(&vhe->md6_tmo, &tv);
break;
#endif /* INET6 */
default:
if (sc->sc_naddrs)
- timeout_add(&vhe->md_tmo, tvtohz(&tv));
+ timeout_add_tv(&vhe->md_tmo, &tv);
if (sc->sc_naddrs6)
- timeout_add(&vhe->md6_tmo, tvtohz(&tv));
+ timeout_add_tv(&vhe->md6_tmo, &tv);
break;
}
break;
tv.tv_usec = 1 * 1000000 / 256;
else
tv.tv_usec = vhe->advskew * 1000000 / 256;
- timeout_add(&vhe->ad_tmo, tvtohz(&tv));
+ timeout_add_tv(&vhe->ad_tmo, &tv);
break;
}
}