summaryrefslogtreecommitdiff
path: root/sys/net/route.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-03-22 14:37:46 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-03-22 14:37:46 +0000
commit022bdc963534de84cbd86cddbcec6e0fd47a580c (patch)
tree7222ab8ef3ce6f64341fd84aaf1864373526a67b /sys/net/route.h
parent88ee4683cf3d8d909148342a8c5cb5d380d6e7b7 (diff)
prevent anything outside rote.c from accessing the routing table heads
directly. rather provide a rt_lookup function for regular lookups, and a rt_gettable for those that need access to the head for some reason. the latter cases should be revisted later probably so that nothing outside the routing core code accesses the heads at all... tested claudio jolan me, ok claudio markus
Diffstat (limited to 'sys/net/route.h')
-rw-r--r--sys/net/route.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index 0c4724e3dd3..c8c1e887fe0 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.h,v 1.36 2006/03/20 10:03:49 henning Exp $ */
+/* $OpenBSD: route.h,v 1.37 2006/03/22 14:37:44 henning Exp $ */
/* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */
/*
@@ -304,7 +304,6 @@ void rtlabel_unref(u_int16_t);
extern struct route_cb route_cb;
extern struct rtstat rtstat;
-extern struct radix_node_head *rt_tables[];
extern const struct sockaddr_rtin rt_defmask4;
struct socket;
@@ -353,5 +352,7 @@ int rtrequest(int, struct sockaddr *,
int rtrequest1(int, struct rt_addrinfo *, struct rtentry **);
void rt_if_remove(struct ifnet *);
+struct radix_node_head *rt_gettable(sa_family_t, int);
+struct radix_node *rt_lookup(struct sockaddr *, struct sockaddr *, int);
#endif /* _KERNEL */
#endif /* _NET_ROUTE_H_ */