summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/net/if_trunk.h5
-rw-r--r--sys/net/route.c10
2 files changed, 6 insertions, 9 deletions
diff --git a/sys/net/if_trunk.h b/sys/net/if_trunk.h
index 6b26d02876b..2d0763527ee 100644
--- a/sys/net/if_trunk.h
+++ b/sys/net/if_trunk.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_trunk.h,v 1.16 2008/06/15 06:56:09 mpf Exp $ */
+/* $OpenBSD: if_trunk.h,v 1.17 2011/07/04 04:29:17 claudio Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -150,8 +150,7 @@ struct trunk_port {
#define tp_capabilities tp_if->if_capabilities /* capabilities */
#define TRUNK_PORTACTIVE(_tp) ( \
- (LINK_STATE_IS_UP((_tp)->tp_link_state) || \
- (_tp)->tp_link_state == LINK_STATE_UNKNOWN) && \
+ LINK_STATE_IS_UP((_tp)->tp_link_state) && \
(_tp)->tp_ifflags & IFF_UP)
struct trunk_mc {
diff --git a/sys/net/route.c b/sys/net/route.c
index 90acfb7cbf1..e928158718f 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.130 2011/04/04 16:06:13 blambert Exp $ */
+/* $OpenBSD: route.c,v 1.131 2011/07/04 04:29:17 claudio Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -854,9 +854,8 @@ rtrequest1(int req, struct rt_addrinfo *info, u_int8_t prio,
senderr(EEXIST);
}
/* check the link state since the table supports it */
- if ((LINK_STATE_IS_UP(ifa->ifa_ifp->if_link_state) ||
- ifa->ifa_ifp->if_link_state == LINK_STATE_UNKNOWN)
- && ifa->ifa_ifp->if_flags & IFF_UP)
+ if (LINK_STATE_IS_UP(ifa->ifa_ifp->if_link_state) &&
+ ifa->ifa_ifp->if_flags & IFF_UP)
rt->rt_flags |= RTF_UP;
else {
rt->rt_flags &= ~RTF_UP;
@@ -1528,8 +1527,7 @@ rt_if_linkstate_change(struct radix_node *rn, void *arg, u_int id)
struct rtentry *rt = (struct rtentry *)rn;
if (rt->rt_ifp == ifp) {
- if ((LINK_STATE_IS_UP(ifp->if_link_state) ||
- ifp->if_link_state == LINK_STATE_UNKNOWN) &&
+ if (LINK_STATE_IS_UP(ifp->if_link_state) &&
ifp->if_flags & IFF_UP) {
if (!(rt->rt_flags & RTF_UP)) {
/* bring route up */