summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfd/ospfd.c
diff options
context:
space:
mode:
authorremi <remi@openbsd.org>2019-01-02 18:47:59 +0000
committerremi <remi@openbsd.org>2019-01-02 18:47:59 +0000
commit1eaf9454d70bfc25efeeaa6948825c9557c20e31 (patch)
tree790714e708a925ab422f1f1bc2e06033c30b2644 /usr.sbin/ospfd/ospfd.c
parentsync (diff)
downloadwireguard-openbsd-1eaf9454d70bfc25efeeaa6948825c9557c20e31.tar.xz
wireguard-openbsd-1eaf9454d70bfc25efeeaa6948825c9557c20e31.zip
Send a router LSA update when an interface was removed.
OK claudio@
Diffstat (limited to 'usr.sbin/ospfd/ospfd.c')
-rw-r--r--usr.sbin/ospfd/ospfd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c
index d3d995180cc..eeb7ff8f1f5 100644
--- a/usr.sbin/ospfd/ospfd.c
+++ b/usr.sbin/ospfd/ospfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.c,v 1.102 2018/12/28 19:25:10 remi Exp $ */
+/* $OpenBSD: ospfd.c,v 1.103 2019/01/02 18:47:59 remi Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -827,7 +827,7 @@ merge_interfaces(struct area *a, struct area *xa)
/* problems:
* - new interfaces (easy)
- * - deleted interfaces (needs to be done via fsm?)
+ * - deleted interfaces
* - changing passive (painful?)
*/
for (i = LIST_FIRST(&a->iface_list); i != NULL; i = ni) {
@@ -842,6 +842,7 @@ merge_interfaces(struct area *a, struct area *xa)
rde_nbr_iface_del(i);
LIST_REMOVE(i, entry);
if_del(i);
+ dirty = 1; /* force rtr LSA update */
}
}