summaryrefslogtreecommitdiffstats
path: root/sbin/routed/radix.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2009-04-05 15:55:09 +0000
committerphk <phk@FreeBSD.org>2009-04-05 15:55:09 +0000
commit0aa4473504e30b8c42fde93c3e832d615620f0c0 (patch)
tree6feb868b340092763bc9b967ac76d4decc89314e /sbin/routed/radix.h
parent30d15f06f1df7487f207c55cacbc1ea43eb39559 (diff)
downloadFreeBSD-src-0aa4473504e30b8c42fde93c3e832d615620f0c0.zip
FreeBSD-src-0aa4473504e30b8c42fde93c3e832d615620f0c0.tar.gz
Modernize prototypes (ie: no extern)
Make lots of stuff static.
Diffstat (limited to 'sbin/routed/radix.h')
-rw-r--r--sbin/routed/radix.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/sbin/routed/radix.h b/sbin/routed/radix.h
index 4558e87..5c7c2d6 100644
--- a/sbin/routed/radix.h
+++ b/sbin/routed/radix.h
@@ -80,7 +80,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 */
@@ -90,7 +90,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 */
@@ -139,23 +139,8 @@ struct radix_node_head {
void rn_init(void);
int rn_inithead(struct radix_node_head **head, int off);
-int rn_refines(void *, void *);
int rn_walktree(struct radix_node_head *,
int (*)(struct radix_node *, struct walkarg *),
struct walkarg *);
-struct radix_node
- *rn_addmask(void *, int, int),
- *rn_addroute(void *, void *, struct radix_node_head *,
- struct radix_node [2]),
- *rn_delete(void *, void *, struct radix_node_head *),
- *rn_insert(void *, struct radix_node_head *, int *,
- struct radix_node [2]),
- *rn_match(void *, struct radix_node_head *),
- *rn_newpair(void *, int, struct radix_node[2]),
- *rn_search(void *, struct radix_node *),
- *rn_search_m(void *, struct radix_node *, void *);
-
-struct radix_node *rn_lookup(void *, void *, struct radix_node_head *);
-
#endif /* __RADIX_H_ */
OpenPOWER on IntegriCloud