summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-01-14 11:52:45 +0000
committerglebius <glebius@FreeBSD.org>2005-01-14 11:52:45 +0000
commit3a8ccb07186374cb90f52d71012539af44059525 (patch)
tree48957070c2d176778295d9b581c87ba9c182a37c
parent2d56795677fcd7c47c69285347643968afa13fd9 (diff)
downloadFreeBSD-src-3a8ccb07186374cb90f52d71012539af44059525.zip
FreeBSD-src-3a8ccb07186374cb90f52d71012539af44059525.tar.gz
Consider IFF_UP as "administratively up" flag, and IFF_RUNNING as
"operationally up" flag. Hence this, revert 1.35 to use IFF_RUNNING.
-rw-r--r--sys/netgraph/ng_iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c
index 8dee760..4a90067 100644
--- a/sys/netgraph/ng_iface.c
+++ b/sys/netgraph/ng_iface.c
@@ -735,10 +735,10 @@ ng_iface_rcvmsg(node_p node, item_p item, hook_p lasthook)
case NGM_FLOW_COOKIE:
switch (msg->header.cmd) {
case NGM_LINK_IS_UP:
- ifp->if_flags |= IFF_UP;
+ ifp->if_flags |= IFF_RUNNING;
break;
case NGM_LINK_IS_DOWN:
- ifp->if_flags &= ~IFF_UP;
+ ifp->if_flags &= ~IFF_RUNNING;
break;
default:
break;
OpenPOWER on IntegriCloud