diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-11-04 11:36:32 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-11-04 11:36:32 +0000 |
commit | c08ab254bfb5644e56f4298f70cb20164e8ad5f4 (patch) | |
tree | 7f42630c3902c62ed4c1ecbf505df8966cf48765 /usr.sbin/ospfd | |
parent | 31187dcd35d3e523d4132d95e6f2b695cf12cae0 (diff) |
The maximal rate LSA can be updated is all MIN_LS_INTERVAL seconds and not
MIN_LS_ARRIVAL. MIN_LS_ARRIVAL is used to limit the rate of incomming updates.
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r-- | usr.sbin/ospfd/rde_lsdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/rde_lsdb.c b/usr.sbin/ospfd/rde_lsdb.c index d3dc969794d..c71b5868d1f 100644 --- a/usr.sbin/ospfd/rde_lsdb.c +++ b/usr.sbin/ospfd/rde_lsdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_lsdb.c,v 1.22 2005/11/04 10:50:54 claudio Exp $ */ +/* $OpenBSD: rde_lsdb.c,v 1.23 2005/11/04 11:36:31 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -610,8 +610,8 @@ lsa_merge(struct rde_nbr *nbr, struct lsa *lsa, struct vertex *v) /* set correct timeout for reflooding the LSA */ now = time(NULL); timerclear(&tv); - if (v->changed + MIN_LS_ARRIVAL >= now) - tv.tv_sec = MIN_LS_ARRIVAL; + if (v->changed + MIN_LS_INTERVAL >= now) + tv.tv_sec = MIN_LS_INTERVAL; evtimer_add(&v->ev, &tv); } |