summaryrefslogtreecommitdiff
path: root/sys/net/radix.h
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-08-19 17:23:07 +0000
committerSam Leffler <sam@FreeBSD.org>2003-08-19 17:23:07 +0000
commit91a9d708bac7c5705dc5229b0dd59e05ca062a25 (patch)
treee973588a5f36d0acea09e3193d86f3fbbf394080 /sys/net/radix.h
parent9ba208b413efa9f041fa1e938c07a3a4479f6ba0 (diff)
downloadsrc-test2-91a9d708bac7c5705dc5229b0dd59e05ca062a25.tar.gz
src-test2-91a9d708bac7c5705dc5229b0dd59e05ca062a25.zip
Notes
Diffstat (limited to 'sys/net/radix.h')
-rw-r--r--sys/net/radix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/radix.h b/sys/net/radix.h
index 81a376628598..7975434ae749 100644
--- a/sys/net/radix.h
+++ b/sys/net/radix.h
@@ -153,12 +153,14 @@ struct radix_node_head {
#define Bcopy(a, b, n) bcopy(((char *)(a)), ((char *)(b)), (unsigned)(n))
#define Bzero(p, n) bzero((char *)(p), (int)(n));
#define R_Malloc(p, t, n) (p = (t) malloc((unsigned int)(n)))
+#define R_Zalloc(p, t, n) (p = (t) calloc(1,(unsigned int)(n)))
#define Free(p) free((char *)p);
#else
#define Bcmp(a, b, n) bcmp(((caddr_t)(a)), ((caddr_t)(b)), (unsigned)(n))
#define Bcopy(a, b, n) bcopy(((caddr_t)(a)), ((caddr_t)(b)), (unsigned)(n))
#define Bzero(p, n) bzero((caddr_t)(p), (unsigned)(n));
#define R_Malloc(p, t, n) (p = (t) malloc((unsigned long)(n), M_RTABLE, M_NOWAIT))
+#define R_Zalloc(p, t, n) (p = (t) malloc((unsigned long)(n), M_RTABLE, M_NOWAIT | M_ZERO))
#define Free(p) free((caddr_t)p, M_RTABLE);
#define RADIX_NODE_HEAD_LOCK_INIT(rnh) \