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

Function ng_replace_retaddr

freebsd/netgraph/ng_base.c:3845–3857  ·  view source on GitHub ↗

* Set the address, if none given, give the node here. */

Source from the content-addressed store, hash-verified

3843 * Set the address, if none given, give the node here.
3844 */
3845void
3846ng_replace_retaddr(node_p here, item_p item, ng_ID_t retaddr)
3847{
3848 if (retaddr) {
3849 NGI_RETADDR(item) = retaddr;
3850 } else {
3851 /*
3852 * The old return address should be ok.
3853 * If there isn't one, use the address here.
3854 */
3855 NGI_RETADDR(item) = ng_node2ID(here);
3856 }
3857}

Callers

nothing calls this directly

Calls 1

ng_node2IDFunction · 0.70

Tested by

no test coverage detected