diff options
Diffstat (limited to 'sys')
-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; |