diff options
author | archie <archie@FreeBSD.org> | 1999-12-03 21:17:30 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1999-12-03 21:17:30 +0000 |
commit | 2bb264d4df9f7a0124b3916344d7be225c4dda75 (patch) | |
tree | c3f33752b310fced2d0cf27f8b24883a455547fc /sys/netgraph/netgraph.h | |
parent | 39d5a6d9a112c694b6ddfe314cd3fabd50842d57 (diff) | |
download | FreeBSD-src-2bb264d4df9f7a0124b3916344d7be225c4dda75.zip FreeBSD-src-2bb264d4df9f7a0124b3916344d7be225c4dda75.tar.gz |
Add a new function ng_findhook() for finding a node's hook;
if the node type provides a more efficient implementation than
the normal linear scan, use it.
Reviewed by: julian
Diffstat (limited to 'sys/netgraph/netgraph.h')
-rw-r--r-- | sys/netgraph/netgraph.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h index d693aa5..d59bc1e 100644 --- a/sys/netgraph/netgraph.h +++ b/sys/netgraph/netgraph.h @@ -245,6 +245,7 @@ void ng_cutlinks(node_p node); int ng_con_nodes(node_p node, const char *name, node_p node2, const char *name2); void ng_destroy_hook(hook_p hook); +hook_p ng_findhook(node_p node, const char *name); node_p ng_findname(node_p node, const char *name); struct ng_type *ng_findtype(const char *type); int ng_make_node(const char *type, node_p *nodepp); |