diff options
author | markm <markm@FreeBSD.org> | 1999-05-02 13:14:16 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1999-05-02 13:14:16 +0000 |
commit | c74fc4e83b599157005f6adfcfebde46851bd0d4 (patch) | |
tree | e8f3c95ddb4dcfbbc332816196635e042e72873b /sbin/routed/radix.h | |
parent | a60c9cfa3a8359247f7ca33b3ebc8574c5c7194a (diff) | |
download | FreeBSD-src-c74fc4e83b599157005f6adfcfebde46851bd0d4.zip FreeBSD-src-c74fc4e83b599157005f6adfcfebde46851bd0d4.tar.gz |
Merge-o-matic and add a bunch of $Id's
Diffstat (limited to 'sbin/routed/radix.h')
-rw-r--r-- | sbin/routed/radix.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/sbin/routed/radix.h b/sbin/routed/radix.h index 033f31c..44fb062 100644 --- a/sbin/routed/radix.h +++ b/sbin/routed/radix.h @@ -11,7 +11,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: + * must display the following acknowledgment: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors @@ -31,6 +31,7 @@ * SUCH DAMAGE. * * @(#)radix.h 8.2 (Berkeley) 10/31/94 + * * $Id$ */ @@ -103,7 +104,7 @@ extern struct radix_mask { m = rn_mkfreelist; \ rn_mkfreelist = (m)->rm_mklist; \ } else \ - m = (struct radix_mask *)rtmalloc(sizeof (*(m)), "MKGet"); }\ + m = (struct radix_mask *)rtmalloc(sizeof(*(m)), "MKGet"); }\ #define MKFree(m) { (m)->rm_mklist = rn_mkfreelist; rn_mkfreelist = (m);} @@ -135,17 +136,18 @@ struct radix_node_head { }; -#define Bcmp(a, b, n) bcmp(((char *)(a)), ((char *)(b)), (n)) -#define Bcopy(a, b, n) bcopy(((char *)(a)), ((char *)(b)), (unsigned)(n)) -#define Bzero(p, n) bzero((char *)(p), (int)(n)); -#define Free(p) free((char *)p); +#define Bcmp(a, b, n) memcmp(((void *)(a)), ((void *)(b)), (n)) +#define Bcopy(a, b, n) memmove(((void *)(b)), ((void *)(a)), (size_t)(n)) +#define Bzero(p, n) memset((void *)(p), 0, (size_t)(n)); +#define Free(p) free((void *)p); void rn_init __P((void)); int rn_inithead __P((void **, int)); int rn_refines __P((void *, void *)); int rn_walktree __P((struct radix_node_head *, - int (*)__P((struct radix_node *, struct walkarg*)), - struct walkarg*)); + int (*)__P((struct radix_node *, struct walkarg *)), + struct walkarg *)); + struct radix_node *rn_addmask __P((void *, int, int)), *rn_addroute __P((void *, void *, struct radix_node_head *, @@ -158,4 +160,6 @@ struct radix_node *rn_search __P((void *, struct radix_node *)), *rn_search_m __P((void *, struct radix_node *, void *)); +struct radix_node *rn_lookup __P((void *, void *, struct radix_node_head *)); + #endif /* __RADIX_H_ */ |