diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-04-27 14:47:28 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-04-27 14:47:28 +0000 |
commit | de7af8ba4433d2646bdd815cc8579b3dfc17b612 (patch) | |
tree | 6b6c1681bafc98dcb1a99e4fcb1f798842c67a3b /sys/net | |
parent | bba89759ed548c0fe718334ceab20fbc1d7d0eb6 (diff) |
Remove unused arguments from rt_checkgate().
Since the rtalloc(9) rewrite no route lookup is done in this function so
there's no need for a destination or a rtable ID.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/route.c | 5 | ||||
-rw-r--r-- | sys/net/route.h | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index b87ec412a2b..3517ef5c679 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.298 2016/03/26 21:56:04 mpi Exp $ */ +/* $OpenBSD: route.c,v 1.299 2016/04/27 14:47:27 mpi Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -1168,8 +1168,7 @@ rt_setgate(struct rtentry *rt, struct sockaddr *gate) } int -rt_checkgate(struct ifnet *ifp, struct rtentry *rt, struct sockaddr *dst, - unsigned int rtableid, struct rtentry **rtp) +rt_checkgate(struct rtentry *rt, struct rtentry **rtp) { struct rtentry *rt0; diff --git a/sys/net/route.h b/sys/net/route.h index bef35438642..0332c26379e 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.134 2016/03/30 10:13:14 mpi Exp $ */ +/* $OpenBSD: route.h,v 1.135 2016/04/27 14:47:27 mpi Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -363,8 +363,7 @@ void rt_sendmsg(struct rtentry *, int, u_int); void rt_sendaddrmsg(struct rtentry *, int); void rt_missmsg(int, struct rt_addrinfo *, int, uint8_t, u_int, int, u_int); int rt_setgate(struct rtentry *, struct sockaddr *); -int rt_checkgate(struct ifnet *, struct rtentry *, struct sockaddr *, - unsigned int, struct rtentry **); +int rt_checkgate(struct rtentry *, struct rtentry **); void rt_setmetrics(u_long, struct rt_metrics *, struct rt_kmetrics *); void rt_getmetrics(struct rt_kmetrics *, struct rt_metrics *); |