don't leak kernel variable declarations to userland.

This commit is contained in:
christos 2006-10-22 20:55:09 +00:00
parent 6fef5d355e
commit a4b205c85a
1 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: radix.h,v 1.16 2005/12/10 23:21:39 elad Exp $ */
/* $NetBSD: radix.h,v 1.17 2006/10/22 20:55:09 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1993
@ -77,7 +77,7 @@ struct radix_node {
* Annotations to tree concerning potential routes applying to subtrees.
*/
extern struct radix_mask {
struct radix_mask {
short rm_b; /* bit offset; -1-index(netmask) */
char rm_unused; /* cf. rn_bmask */
u_char rm_flags; /* cf. rn_flags */
@ -87,7 +87,7 @@ extern struct radix_mask {
struct radix_node *rmu_leaf; /* for normal routes */
} rm_rmu;
int rm_refs; /* # of references to this struct */
} *rn_mkfreelist;
};
#define rm_mask rm_rmu.rmu_mask
#define rm_leaf rm_rmu.rmu_leaf /* extra field would make 32 bytes */
@ -129,6 +129,8 @@ struct radix_node_head {
#ifdef _KERNEL
extern struct radix_mask *rn_mkfreelist;
#define Bcmp(a, b, n) ((n) == 0 ? 0 : memcmp((a), (b), (n)))
#define Bcopy(a, b, n) memmove((b), (a), (n))
#define Bzero(p, n) memset((p), 0, (n));