MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ng_tee_close

Function ng_tee_close

freebsd/netgraph/ng_tee.c:337–346  ·  view source on GitHub ↗

* We are going to be shut down soon * * If we have both a left and right hook, then we probably want to extricate * ourselves and leave the two peers still linked to each other. Otherwise we * should just shut down as a normal node would. */

Source from the content-addressed store, hash-verified

335 * should just shut down as a normal node would.
336 */
337static int
338ng_tee_close(node_p node)
339{
340 const sc_p privdata = NG_NODE_PRIVATE(node);
341
342 if (privdata->left.hook && privdata->right.hook)
343 ng_bypass(privdata->left.hook, privdata->right.hook);
344
345 return (0);
346}
347
348/*
349 * Shutdown processing

Callers

nothing calls this directly

Calls 1

ng_bypassFunction · 0.70

Tested by

no test coverage detected