mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 14:49:36 -04:00
Raise & drop IFF_RUNNING upon receival of netgraph flow control
messages.
This commit is contained in:
parent
e3d0434573
commit
d0aa4b3fa0
1 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue