diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-11-27 16:22:46 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-11-27 16:22:46 +0000 |
commit | 878b85bab54504f0210881ee32d3dc9ac088232e (patch) | |
tree | 7dfc062415efa89c01935fc07c0956f39778cfba /sys/net/route.h | |
parent | 65b8e7f92145f4c4f69649a66db8d9a3133d299a (diff) |
don't let anything outside route.c access the routing table heads directly,
but go through a provided wrapper.
also provide rt_lookup() instead of doing the lookup manually in many places.
ryan ok
Diffstat (limited to 'sys/net/route.h')
-rw-r--r-- | sys/net/route.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index dd15a362b2f..d6a3d2b1992 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.32 2005/11/25 13:45:02 henning Exp $ */ +/* $OpenBSD: route.h,v 1.33 2005/11/27 16:22:45 henning Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -299,7 +299,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; @@ -348,5 +347,8 @@ 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_ */ |