diff options
author | zec <zec@FreeBSD.org> | 2009-04-26 07:14:50 +0000 |
---|---|---|
committer | zec <zec@FreeBSD.org> | 2009-04-26 07:14:50 +0000 |
commit | c269cc664ea0bb95561b14b109212e8640c8d53a (patch) | |
tree | a1175fbb0223247a55badf8c425bc6113277d52f /sys/netgraph/netgraph.h | |
parent | 712d9928291fa1fa1a011adcfd08c48ac1a6adc7 (diff) | |
download | FreeBSD-src-c269cc664ea0bb95561b14b109212e8640c8d53a.zip FreeBSD-src-c269cc664ea0bb95561b14b109212e8640c8d53a.tar.gz |
In preparation to make options VIMAGE operational, where needed,
initialize / release netgraph related state in iattach() / idetach()
functions called via the vnet module registration / initialization
framework, instead of initialization / cleanups being done in
mod_event handlers.
While here, introduce a crude hack aimed at preventing ng_ether to
autoattach to ng_eiface ifnets, which are also netgraph nodes already.
Reviewed by: bz
Approved by: julian (mentor)
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 859af71..e36234f 100644 --- a/sys/netgraph/netgraph.h +++ b/sys/netgraph/netgraph.h @@ -1123,6 +1123,7 @@ hook_p ng_findhook(node_p node, const char *name); struct ng_type *ng_findtype(const char *type); int ng_make_node_common(struct ng_type *typep, node_p *nodep); int ng_name_node(node_p node, const char *name); +node_p ng_name2noderef(node_p node, const char *name); int ng_newtype(struct ng_type *tp); ng_ID_t ng_node2ID(node_p node); item_p ng_package_data(struct mbuf *m, int flags); |