summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d/kroute.c
diff options
context:
space:
mode:
authorremi <remi@cvs.openbsd.org>2018-07-12 12:19:06 +0000
committerremi <remi@cvs.openbsd.org>2018-07-12 12:19:06 +0000
commit04465519fe8d7c9cb8403aac6a5463372cf75b1f (patch)
tree7c36d39b746dadf291c04a9c35f83aa4b7ccdb5c /usr.sbin/ospf6d/kroute.c
parent08186ef8d9cc113c0d4b4d2bb691992f694cd26d (diff)
With the "depend on" option routes are sent out with a metric of 65535 if
the referenced interface is down or in state backup. This is especially useful on a carp cluster to ensure all traffic goes to the carp master. ok friehm@ jca@
Diffstat (limited to 'usr.sbin/ospf6d/kroute.c')
-rw-r--r--usr.sbin/ospf6d/kroute.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.sbin/ospf6d/kroute.c b/usr.sbin/ospf6d/kroute.c
index 5e485ff83f6..7d798cd038a 100644
--- a/usr.sbin/ospf6d/kroute.c
+++ b/usr.sbin/ospf6d/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.56 2018/07/10 12:17:38 friehm Exp $ */
+/* $OpenBSD: kroute.c,v 1.57 2018/07/12 12:19:05 remi Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -810,13 +810,9 @@ if_change(u_short ifindex, int flags, struct if_data *ifd)
return;
}
- /* inform engine and rde about state change if interface is used */
- if (iface->cflags & F_IFACE_CONFIGURED) {
- main_imsg_compose_ospfe(IMSG_IFINFO, 0, iface,
- sizeof(struct iface));
- main_imsg_compose_rde(IMSG_IFINFO, 0, iface,
- sizeof(struct iface));
- }
+ /* inform engine and rde about state change */
+ main_imsg_compose_rde(IMSG_IFINFO, 0, iface, sizeof(struct iface));
+ main_imsg_compose_ospfe(IMSG_IFINFO, 0, iface, sizeof(struct iface));
isvalid = (iface->flags & IFF_UP) &&
LINK_STATE_IS_UP(iface->linkstate);