aboutsummaryrefslogtreecommitdiff
path: root/sys/net/radix.h
diff options
context:
space:
mode:
authorBosko Milekic <bmilekic@FreeBSD.org>2002-12-19 22:58:27 +0000
committerBosko Milekic <bmilekic@FreeBSD.org>2002-12-19 22:58:27 +0000
commit86fea6be59ad2f1fb3bb539eb35ae7bf9ce276c0 (patch)
treefb78678839efbdec9c58873ff5e7df1cf42aa7f5 /sys/net/radix.h
parent9dbbb2829e57340aef670a1b9b522a4db9c01e3a (diff)
downloadsrc-86fea6be59ad2f1fb3bb539eb35ae7bf9ce276c0.tar.gz
src-86fea6be59ad2f1fb3bb539eb35ae7bf9ce276c0.zip
o Untangle the confusion with the malloc flags {M_WAITOK, M_NOWAIT} and
the mbuf allocator flags {M_TRYWAIT, M_DONTWAIT}. o Fix a bpf_compat issue where malloc() was defined to just call bpf_alloc() and pass the 'canwait' flag(s) along. It's been changed to call bpf_alloc() but pass the corresponding M_TRYWAIT or M_DONTWAIT flag (and only one of those two). Submitted by: Hiten Pandya <hiten@unixdaemons.com> (hiten->commit_count++)
Notes
Notes: svn path=/head/; revision=108107
Diffstat (limited to 'sys/net/radix.h')
-rw-r--r--sys/net/radix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/radix.h b/sys/net/radix.h
index 5d5174558f1e..3a6558559640 100644
--- a/sys/net/radix.h
+++ b/sys/net/radix.h
@@ -150,7 +150,7 @@ struct radix_node_head {
#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_DONTWAIT))
+#define R_Malloc(p, t, n) (p = (t) malloc((unsigned long)(n), M_RTABLE, M_NOWAIT))
#define Free(p) free((caddr_t)p, M_RTABLE);
#endif /* _KERNEL */