summaryrefslogtreecommitdiff
path: root/sys/netgraph/netgraph.h
diff options
context:
space:
mode:
authorMarko Zec <zec@FreeBSD.org>2008-11-28 23:30:51 +0000
committerMarko Zec <zec@FreeBSD.org>2008-11-28 23:30:51 +0000
commitf02493cbbd6e5e5f9094dc7ef872f773fa8b1a11 (patch)
treebb923196c85b9e71d363a7650c292edddfbc6beb /sys/netgraph/netgraph.h
parent39a7471508a20f2b15ca3bee3e532de069483811 (diff)
Notes
Diffstat (limited to 'sys/netgraph/netgraph.h')
-rw-r--r--sys/netgraph/netgraph.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index 78af963eaaf5..0def6414c5b6 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -1186,6 +1186,7 @@ typedef void *meta_p;
/* Hash related definitions */
#define NG_ID_HASH_SIZE 128 /* most systems wont need even this many */
+#define NG_NAME_HASH_SIZE 128 /* most systems wont need even this many */
/* Virtualization macros */
#define INIT_VNET_NETGRAPH(vnet) \
@@ -1194,6 +1195,16 @@ typedef void *meta_p;
#define VNET_NETGRAPH(sym) VSYM(vnet_netgraph, sym)
+struct vnet_netgraph {
+ LIST_HEAD(, ng_node) _ng_ID_hash[NG_ID_HASH_SIZE];
+ LIST_HEAD(, ng_node) _ng_name_hash[NG_NAME_HASH_SIZE];
+ LIST_HEAD(, ng_node) _ng_nodelist;
+ ng_ID_t _nextID;
+ struct unrhdr *_ng_iface_unit;
+ struct unrhdr *_ng_eiface_unit;
+ struct unrhdr *_ng_wormhole_unit;
+};
+
/* Symbol translation macros */
#define V_nextID VNET_NETGRAPH(nextID)
#define V_ng_ID_hash VNET_NETGRAPH(ng_ID_hash)