diff options
| author | Julian Elischer <julian@FreeBSD.org> | 2001-01-10 07:13:58 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 2001-01-10 07:13:58 +0000 |
| commit | 9c8c302fd01fe6dcb6d24d7b6a36e473809533dd (patch) | |
| tree | 3c77f9845cdca951ed10d107deb3d7b95882f18c /sys/netgraph/ng_sample.c | |
| parent | a208c55ad3737732fd564be267090de62a1b0de5 (diff) | |
Notes
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 90ed838cd98b..5c98b830b9f0 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'. |
