| 3610 | } |
| 3611 | |
| 3612 | int |
| 3613 | ng_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 | |
| 3637 | int |
| 3638 | ng_address_ID(node_p here, item_p item, ng_ID_t ID, ng_ID_t retaddr) |
no test coverage detected