summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2005-02-09 15:41:33 +0000
committerclaudio <claudio@openbsd.org>2005-02-09 15:41:33 +0000
commit69d17b7add5df0d6fa7a2ae445d7956cd7f5451c (patch)
tree752116408a35d17bb3d4143a75b704d25594bc46
parentOnce again a round of bugfixes in the db exchange process. This is (diff)
downloadwireguard-openbsd-69d17b7add5df0d6fa7a2ae445d7956cd7f5451c.tar.xz
wireguard-openbsd-69d17b7add5df0d6fa7a2ae445d7956cd7f5451c.zip
If the router self is the originator of the LS update flood it out
no matter what. This solves an issue where self originated updates where not flooded because the router was the DR.
-rw-r--r--usr.sbin/ospfd/lsupdate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/lsupdate.c b/usr.sbin/ospfd/lsupdate.c
index e4b9b2d3c0d..e84ee701e0f 100644
--- a/usr.sbin/ospfd/lsupdate.c
+++ b/usr.sbin/ospfd/lsupdate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lsupdate.c,v 1.3 2005/02/02 19:15:07 henning Exp $ */
+/* $OpenBSD: lsupdate.c,v 1.4 2005/02/09 15:41:33 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -86,7 +86,7 @@ lsa_flood(struct iface *iface, struct nbr *originator, struct lsa_hdr *lsa_hdr,
if (!queued)
return (0);
- if (iface == originator->iface) {
+ if (iface == originator->iface && iface->self != originator) {
if (iface->dr == originator || iface->bdr == originator)
return (0);
if (iface->state & IF_STA_BACKUP)