diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-03-06 08:56:40 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-03-06 08:56:40 +0000 |
commit | 206a0c89ac678b4a909903e785901319ce9fe30a (patch) | |
tree | df7d6e8bc2a0d566c214184ab2979eef364e9158 /sys/net/route.h | |
parent | 0f632f868c80e066a9f6bf6b7aacd0146aae83bd (diff) |
Prefix functions dealing with routing messages with 'rtm_' and keep
them all in net/rtsock.c.
This allows to easily spot which functions are doing a copyout(9)
when dealing with the routing midlayer.
ok phessler@, bluhm@, dhill@, krw@, claudio@
Diffstat (limited to 'sys/net/route.h')
-rw-r--r-- | sys/net/route.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index 1a0d20a691a..376d086994e 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.158 2017/03/03 15:48:02 bluhm Exp $ */ +/* $OpenBSD: route.h,v 1.159 2017/03/06 08:56:39 mpi Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -421,19 +421,17 @@ int route_output(struct mbuf *, struct socket *, struct sockaddr *, struct mbuf *); int route_usrreq(struct socket *, int, struct mbuf *, struct mbuf *, struct mbuf *, struct proc *); -void rt_ifmsg(struct ifnet *); -void rt_ifannouncemsg(struct ifnet *, int); -void rt_bfdmsg(struct bfd_config *); +void rtm_ifchg(struct ifnet *); +void rtm_ifannounce(struct ifnet *, int); +void rtm_bfd(struct bfd_config *); void rt_maskedcopy(struct sockaddr *, struct sockaddr *, struct sockaddr *); struct sockaddr *rt_plen2mask(struct rtentry *, struct sockaddr_in6 *); -void rt_sendmsg(struct rtentry *, int, u_int); -void rt_sendaddrmsg(struct rtentry *, int, struct ifaddr *); -void rt_missmsg(int, struct rt_addrinfo *, int, uint8_t, u_int, int, u_int); +void rtm_send(struct rtentry *, int, u_int); +void rtm_addr(struct rtentry *, int, struct ifaddr *); +void rtm_miss(int, struct rt_addrinfo *, int, uint8_t, u_int, int, u_int); int rt_setgate(struct rtentry *, struct sockaddr *, u_int); struct rtentry *rt_getll(struct rtentry *); -void rt_setmetrics(u_long, const struct rt_metrics *, struct rt_kmetrics *); -void rt_getmetrics(const struct rt_kmetrics *, struct rt_metrics *); int rt_timer_add(struct rtentry *, void(*)(struct rtentry *, struct rttimer *), |