diff options
author | Michele Marchetto <michele@cvs.openbsd.org> | 2009-01-25 15:24:22 +0000 |
---|---|---|
committer | Michele Marchetto <michele@cvs.openbsd.org> | 2009-01-25 15:24:22 +0000 |
commit | f71edd7db61fb37a845ba3dc3bcc40e846c70704 (patch) | |
tree | b4cff17ef4554f3c9aee8d0d72a410b8ce782dc2 /usr.sbin/dvmrpd | |
parent | 40ee6dc19054ef6b1e7072b44c44fad0cf2df736 (diff) |
Add missing evtimer_set on route hold down timer.
ok norby@
Diffstat (limited to 'usr.sbin/dvmrpd')
-rw-r--r-- | usr.sbin/dvmrpd/rde_srt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/dvmrpd/rde_srt.c b/usr.sbin/dvmrpd/rde_srt.c index c0b08498ece..2b8189555a8 100644 --- a/usr.sbin/dvmrpd/rde_srt.c +++ b/usr.sbin/dvmrpd/rde_srt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_srt.c,v 1.15 2009/01/20 01:35:34 todd Exp $ */ +/* $OpenBSD: rde_srt.c,v 1.16 2009/01/25 15:24:21 michele Exp $ */ /* * Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org> @@ -193,6 +193,7 @@ rr_new_rt(struct route_report *rr, u_int32_t adj_metric, int connected) rn->uptime = now.tv_sec; evtimer_set(&rn->expiration_timer, rt_expire_timer, rn); + evtimer_set(&rn->holddown_timer, rt_holddown_timer, rn); return (rn); } @@ -529,7 +530,7 @@ srt_expire_nbr(struct in_addr addr, struct iface *iface) RB_FOREACH(rn, rt_tree, &rt) { ds = srt_find_ds(rn, addr.s_addr); - if (ds) + if (ds) srt_delete_ds(rn, ds, iface); } } |