diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-10-25 10:05:10 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-10-25 10:05:10 +0000 |
commit | 52ac71cc7685fa0ffd377da1993d0a065bf74525 (patch) | |
tree | d96e4ed7bcef4f6f32aca74c540c4eb7c174eafe /sys/netinet | |
parent | 2704f9d6e2196bd006022b23d1857705bcefe287 (diff) |
Instead of doing the the if_get() dance for rt_missmsg(), change the
function to take an interface index.
discussed with mpi@; OK claudio@
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/in_pcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 477db52ba91..8930c49f74b 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.c,v 1.186 2015/10/23 13:26:07 mpi Exp $ */ +/* $OpenBSD: in_pcb.c,v 1.187 2015/10/25 10:05:09 bluhm Exp $ */ /* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */ /* @@ -635,7 +635,7 @@ in_losing(struct inpcb *inp) info.rti_info[RTAX_DST] = &inp->inp_route.ro_dst; info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; info.rti_info[RTAX_NETMASK] = rt_mask(rt); - rt_missmsg(RTM_LOSING, &info, rt->rt_flags, rt->rt_ifp, 0, + rt_missmsg(RTM_LOSING, &info, rt->rt_flags, rt->rt_ifidx, 0, inp->inp_rtableid); if (rt->rt_flags & RTF_DYNAMIC) (void)rtrequest1(RTM_DELETE, &info, rt->rt_priority, |