diff options
Diffstat (limited to 'sys/netgraph/ng_sample.c')
-rw-r--r-- | sys/netgraph/ng_sample.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/netgraph/ng_sample.c b/sys/netgraph/ng_sample.c index 90ed838..5c98b83 100644 --- a/sys/netgraph/ng_sample.c +++ b/sys/netgraph/ng_sample.c @@ -54,6 +54,14 @@ #include <netgraph/ng_sample.h> #include <netgraph/netgraph.h> +/* If you do complicated mallocs you may want to do this */ +/* and use it for your mallocs */ +#ifdef NG_SEPARATE_MALLOC +MALLOC_DEFINE(M_NETGRAPH_XXX, "netgraph_xxx", "netgraph xxx node "); +#else +#define M_NETGRAPH_XXX M_NETGRAPH +#endif + /* * This section contains the netgraph method declarations for the * sample node. These methods define the netgraph 'type'. |