Raise & drop IFF_RUNNING upon receival of netgraph flow control

messages.
This commit is contained in:
Gleb Smirnoff 2005-01-14 11:55:07 +00:00
parent e3d0434573
commit d0aa4b3fa0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140240

View File

@ -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;