diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-07-28 09:01:10 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-07-28 09:01:10 +0000 |
commit | b97af349e824cbbd4816ec4716a60825891eafae (patch) | |
tree | 78a836cfb2f7983b461e10033958d6791c3b5527 /sys/net/rtsock.c | |
parent | 2f27f1f1e864032ed15dc0fd9fe45906e7ab148d (diff) |
Add an error argument to rtm_send() instead of rerolling it inside
rtdeletemsg().
ok bluhm@
Diffstat (limited to 'sys/net/rtsock.c')
-rw-r--r-- | sys/net/rtsock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index a20973e8ab1..0472366c566 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.242 2017/07/26 20:32:58 anton Exp $ */ +/* $OpenBSD: rtsock.c,v 1.243 2017/07/28 09:01:09 mpi Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -1373,7 +1373,7 @@ again: } void -rtm_send(struct rtentry *rt, int cmd, u_int rtableid) +rtm_send(struct rtentry *rt, int cmd, int error, unsigned int rtableid) { struct rt_addrinfo info; struct ifnet *ifp; @@ -1392,7 +1392,7 @@ rtm_send(struct rtentry *rt, int cmd, u_int rtableid) info.rti_info[RTAX_IFA] = rt->rt_ifa->ifa_addr; } - rtm_miss(cmd, &info, rt->rt_flags, rt->rt_priority, rt->rt_ifidx, 0, + rtm_miss(cmd, &info, rt->rt_flags, rt->rt_priority, rt->rt_ifidx, error, rtableid); if_put(ifp); } |