summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornorby <norby@openbsd.org>2006-02-19 19:23:17 +0000
committernorby <norby@openbsd.org>2006-02-19 19:23:17 +0000
commit718e8ec2cf04743d330144176adf84371d4a46df (patch)
tree7017284a9520b0fcfc58e9d71c567c20be6ff7f3
parentmemset(p, 0, sizeof(p)) -> memset(p, 0, sizeof(*p)). (diff)
downloadwireguard-openbsd-718e8ec2cf04743d330144176adf84371d4a46df.tar.xz
wireguard-openbsd-718e8ec2cf04743d330144176adf84371d4a46df.zip
Do not kick the adj_timer for neighbors that are in state 2-Way.
ok claudio@
-rw-r--r--usr.sbin/ospfd/neighbor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/neighbor.c b/usr.sbin/ospfd/neighbor.c
index a84dbab2236..da9755dcea4 100644
--- a/usr.sbin/ospfd/neighbor.c
+++ b/usr.sbin/ospfd/neighbor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: neighbor.c,v 1.28 2006/02/19 18:55:47 norby Exp $ */
+/* $OpenBSD: neighbor.c,v 1.29 2006/02/19 19:23:17 norby Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -407,6 +407,9 @@ nbr_adj_timer(int fd, short event, void *arg)
{
struct nbr *nbr = arg;
+ if (nbr->state == NBR_STA_2_WAY)
+ return ;
+
if (nbr->state & NBR_STA_ACTIVE && nbr->state != NBR_STA_FULL) {
log_warnx("nbr_adj_timer: failed to form adjacency with %s",
inet_ntoa(nbr->id));