diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-24 11:58:48 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-24 11:58:48 +0000 |
commit | 21a2c14004c71bd46dfc2a858d02d11f57783b9a (patch) | |
tree | d780adf9fb46aa619264e1df058a3ab77d21bd82 /sys/net/if_spppsubr.c | |
parent | feecf1b0734ee3a96775d9e0e9afd2a9642f02d9 (diff) |
Some rt_ifp to rt_ifidx conversions.
ok bluhm@
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r-- | sys/net/if_spppsubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 8978df4e18b..afaa7e9ed9f 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_spppsubr.c,v 1.141 2015/10/05 19:05:09 uebayasi Exp $ */ +/* $OpenBSD: if_spppsubr.c,v 1.142 2015/10/24 11:58:46 mpi Exp $ */ /* * Synchronous PPP link level subroutines. * @@ -4263,7 +4263,7 @@ sppp_update_gw_walker(struct rtentry *rt, void *arg, unsigned int id) { struct ifnet *ifp = arg; - if (rt->rt_ifp == ifp) { + if (rt->rt_ifidx == ifp->if_index) { if (rt->rt_ifa->ifa_dstaddr->sa_family != rt->rt_gateway->sa_family || (rt->rt_flags & RTF_GATEWAY) == 0) |