diff options
author | 2006-02-09 15:23:08 +0000 | |
---|---|---|
committer | 2006-02-09 15:23:08 +0000 | |
commit | 1ccc5a96a4459c9191c92e3afdf044004493579f (patch) | |
tree | 7017e2f8bacc3006a1e2b60be2851c8631865ce6 | |
parent | remove trailing ',' in enum declaration (diff) | |
download | wireguard-openbsd-1ccc5a96a4459c9191c92e3afdf044004493579f.tar.xz wireguard-openbsd-1ccc5a96a4459c9191c92e3afdf044004493579f.zip |
Prevent the neighbor FSM from getting stuck forever in state EXSTART.
ok claudio@
-rw-r--r-- | usr.sbin/ospfd/neighbor.c | 7 | ||||
-rw-r--r-- | usr.sbin/ospfd/ospf.h | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/ospfd/neighbor.c b/usr.sbin/ospfd/neighbor.c index abbdf294538..a0bf9baa07a 100644 --- a/usr.sbin/ospfd/neighbor.c +++ b/usr.sbin/ospfd/neighbor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: neighbor.c,v 1.26 2005/12/15 20:29:06 claudio Exp $ */ +/* $OpenBSD: neighbor.c,v 1.27 2006/02/09 15:23:08 norby Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -493,6 +493,8 @@ nbr_act_eval(struct nbr *nbr) /* initial db negotiation */ start_db_tx_timer(nbr); + nbr_start_adj_timer(nbr); + return (0); } @@ -500,7 +502,6 @@ int nbr_act_snapshot(struct nbr *nbr) { stop_db_tx_timer(nbr); - nbr_start_adj_timer(nbr); ospfe_imsg_compose_rde(IMSG_DB_SNAPSHOT, nbr->peerid, 0, NULL, 0); @@ -559,6 +560,8 @@ nbr_act_restart_dd(struct nbr *nbr) /* initial db negotiation */ start_db_tx_timer(nbr); + nbr_start_adj_timer(nbr); + return (0); } diff --git a/usr.sbin/ospfd/ospf.h b/usr.sbin/ospfd/ospf.h index e464ab99a2f..ec6bcaf525d 100644 --- a/usr.sbin/ospfd/ospf.h +++ b/usr.sbin/ospfd/ospf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ospf.h,v 1.13 2005/12/04 20:56:46 norby Exp $ */ +/* $OpenBSD: ospf.h,v 1.14 2006/02/09 15:23:08 norby Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> @@ -55,7 +55,7 @@ #define MIN_TRANSMIT_DELAY 1 #define MAX_TRANSMIT_DELAY 3600 -#define DEFAULT_ADJ_TMOUT 600 /* XXX sane value? */ +#define DEFAULT_ADJ_TMOUT 60 /* XXX sane value? */ #define DEFAULT_NBR_TMOUT 86400 /* 24 hours */ |