summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2006-11-28 19:28:17 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2006-11-28 19:28:17 +0000
commitbec353ab011b149efdc45e04e94015512bc70547 (patch)
treea938ec527bd400547fa2cfb6c09fc634aa9d8485
parent42dc4672e2746e5183c5a29733c654f4a9644cce (diff)
handle the new link states as UP
-rw-r--r--usr.sbin/ifstated/ifstated.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ifstated/ifstated.c b/usr.sbin/ifstated/ifstated.c
index af37b43a90d..5fed575a991 100644
--- a/usr.sbin/ifstated/ifstated.c
+++ b/usr.sbin/ifstated/ifstated.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifstated.c,v 1.29 2006/03/16 06:12:58 mcbride Exp $ */
+/* $OpenBSD: ifstated.c,v 1.30 2006/11/28 19:28:16 reyk Exp $ */
/*
* Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org>
@@ -418,7 +418,9 @@ scan_ifstate_single(int ifindex, int s, struct ifsd_state *state)
struct ifsd_expression *expression;
int truth;
- truth = (ifstate->ifstate == s);
+ truth = (ifstate->ifstate == s) ||
+ (ifstate->ifstate == IFSD_LINKUP &&
+ LINK_STATE_IS_UP(s));
TAILQ_FOREACH(expression,
&ifstate->expressions, entries) {