diff options
author | glebius <glebius@FreeBSD.org> | 2005-01-14 11:55:07 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-01-14 11:55:07 +0000 |
commit | 7e1fa1922ff8dfa6ae8ea8c8ece55c047462db99 (patch) | |
tree | a715ab35a1a745e5ec1eb57864cb283c35b215c8 | |
parent | 3a8ccb07186374cb90f52d71012539af44059525 (diff) | |
download | FreeBSD-src-7e1fa1922ff8dfa6ae8ea8c8ece55c047462db99.zip FreeBSD-src-7e1fa1922ff8dfa6ae8ea8c8ece55c047462db99.tar.gz |
Raise & drop IFF_RUNNING upon receival of netgraph flow control
messages.
-rw-r--r-- | sys/netgraph/ng_eiface.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/netgraph/ng_eiface.c b/sys/netgraph/ng_eiface.c index d976750..d59681f 100644 --- a/sys/netgraph/ng_eiface.c +++ b/sys/netgraph/ng_eiface.c @@ -574,6 +574,18 @@ ng_eiface_rcvmsg(node_p node, item_p item, hook_p lasthook) break; } /* end of inner switch() */ break; + case NGM_FLOW_COOKIE: + switch (msg->header.cmd) { + case NGM_LINK_IS_UP: + ifp->if_flags |= IFF_RUNNING; + break; + case NGM_LINK_IS_DOWN: + ifp->if_flags &= ~IFF_RUNNING; + break; + default: + break; + } + break; default: error = EINVAL; break; |