summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ripd/interface.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2011-07-04 04:34:14 +0000
committerclaudio <claudio@openbsd.org>2011-07-04 04:34:14 +0000
commit9a2e03246675e892868339245b0f9cf1bb1112d2 (patch)
tree4b691a45591f78df988cdbd0cd9271451eb7445b /usr.sbin/ripd/interface.c
parentbread does nothing with its ucred argument. remove it. ok matthew (diff)
downloadwireguard-openbsd-9a2e03246675e892868339245b0f9cf1bb1112d2.tar.xz
wireguard-openbsd-9a2e03246675e892868339245b0f9cf1bb1112d2.zip
LINK_STATE_IS_UP() cleanup userland part. There is no need to special
case carp(4) interfaces anymore. LINK_STATE_IS_UP() almost always does the right job. OK deraadt@ henning@ This needs a -current kernel or link state may be not reported correctly.
Diffstat (limited to 'usr.sbin/ripd/interface.c')
-rw-r--r--usr.sbin/ripd/interface.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ripd/interface.c b/usr.sbin/ripd/interface.c
index c1b1c66db2c..d3ae7799f14 100644
--- a/usr.sbin/ripd/interface.c
+++ b/usr.sbin/ripd/interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.c,v 1.10 2011/06/21 17:31:07 mikeb Exp $ */
+/* $OpenBSD: interface.c,v 1.11 2011/07/04 04:34:14 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -180,9 +180,7 @@ if_act_start(struct iface *iface)
}
if (!((iface->flags & IFF_UP) &&
- (LINK_STATE_IS_UP(iface->linkstate) ||
- (iface->linkstate == LINK_STATE_UNKNOWN &&
- iface->media_type != IFT_CARP)))) {
+ LINK_STATE_IS_UP(iface->linkstate))) {
log_debug("if_act_start: interface %s link down",
iface->name);
return (0);