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

Function ng_address_path

freebsd/netgraph/ng_base.c:3612–3635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3610}
3611
3612int
3613ng_address_path(node_p here, item_p item, const char *address, ng_ID_t retaddr)
3614{
3615 node_p dest = NULL;
3616 hook_p hook = NULL;
3617 int error;
3618
3619 ITEM_DEBUG_CHECKS;
3620 /*
3621 * Note that ng_path2noderef increments the reference count
3622 * on the node for us if it finds one. So we don't have to.
3623 */
3624 error = ng_path2noderef(here, address, &dest, &hook);
3625 if (error) {
3626 NG_FREE_ITEM(item);
3627 return (error);
3628 }
3629 NGI_SET_NODE(item, dest);
3630 if (hook)
3631 NGI_SET_HOOK(item, hook);
3632
3633 SET_RETADDR(item, here, retaddr);
3634 return (0);
3635}
3636
3637int
3638ng_address_ID(node_p here, item_p item, ng_ID_t ID, ng_ID_t retaddr)

Callers 2

ngc_sendFunction · 0.70
ng_connect_dataFunction · 0.70

Calls 1

ng_path2noderefFunction · 0.70

Tested by

no test coverage detected