summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2009-09-30 14:39:07 +0000
committerclaudio <claudio@openbsd.org>2009-09-30 14:39:07 +0000
commitf6f3b5e045689d955ad1fd661f83da97b8d1d71a (patch)
tree39466b9c6c3c9643a52769248795cd2c8fcde6c5
parentAnnounce a stub network LSA for backup carp interfaces. This should help (diff)
downloadwireguard-openbsd-f6f3b5e045689d955ad1fd661f83da97b8d1d71a.tar.xz
wireguard-openbsd-f6f3b5e045689d955ad1fd661f83da97b8d1d71a.zip
Oups, these changes should not have been commited. Revert.
-rw-r--r--usr.sbin/ospfd/interface.c8
-rw-r--r--usr.sbin/ospfd/neighbor.c7
2 files changed, 6 insertions, 9 deletions
diff --git a/usr.sbin/ospfd/interface.c b/usr.sbin/ospfd/interface.c
index 784acdf9161..a5d53ab9b0a 100644
--- a/usr.sbin/ospfd/interface.c
+++ b/usr.sbin/ospfd/interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.c,v 1.65 2009/09/30 14:37:11 claudio Exp $ */
+/* $OpenBSD: interface.c,v 1.66 2009/09/30 14:39:07 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -139,9 +139,11 @@ if_fsm(struct iface *iface, enum iface_event event)
if (iface->state != old_state)
orig_rtr_lsa(iface->area);
- if (old_state & IF_STA_MULTI && (iface->state & IF_STA_MULTI) == 0)
+ if (old_state & (IF_STA_MULTI | IF_STA_POINTTOPOINT) &&
+ (iface->state & (IF_STA_MULTI | IF_STA_POINTTOPOINT)) == 0)
ospfe_demote_iface(iface, 0);
- if ((old_state & IF_STA_MULTI) == 0 && iface->state & IF_STA_MULTI)
+ if ((old_state & (IF_STA_MULTI | IF_STA_POINTTOPOINT)) == 0 &&
+ iface->state & (IF_STA_MULTI | IF_STA_POINTTOPOINT))
ospfe_demote_iface(iface, 1);
log_debug("if_fsm: event %s resulted in action %s and changing "
diff --git a/usr.sbin/ospfd/neighbor.c b/usr.sbin/ospfd/neighbor.c
index 7cd6796fb48..ed7f5492807 100644
--- a/usr.sbin/ospfd/neighbor.c
+++ b/usr.sbin/ospfd/neighbor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: neighbor.c,v 1.38 2009/09/30 14:37:11 claudio Exp $ */
+/* $OpenBSD: neighbor.c,v 1.39 2009/09/30 14:39:07 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -211,11 +211,6 @@ nbr_fsm(struct nbr *nbr, enum nbr_event event)
gettimeofday(&now, NULL);
nbr->uptime = now.tv_sec;
-
- /* demote P2P links if the neighbor resets */
- if (nbr->iface->type == IF_TYPE_POINTOPOINT)
- ospfe_demote_iface(nbr->iface,
- !(old_state & NBR_STA_FULL));
}
/* bidirectional communication lost */