diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-22 16:49:27 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-22 16:49:27 +0000 |
commit | 2edfccc2dfab288140ad019eedf2f35b3bf81d2d (patch) | |
tree | 633d20186d6a598bfd4f627337e5edcbffaa1682 /sys/net | |
parent | ae355dd8b66edf5551dca2f929a404046784b953 (diff) |
Only check for rt_ifp now that it is alays the same as rt_ifa->ifa_ifp.
ok millert@, bluhm@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/route.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 9af588ccaae..c71cc910153 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.256 2015/10/22 16:32:41 mpi Exp $ */ +/* $OpenBSD: route.c,v 1.257 2015/10/22 16:49:26 mpi Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -1653,8 +1653,7 @@ rt_if_linkstate_change(struct rtentry *rt, void *arg, u_int id) { struct ifnet *ifp = arg; - if ((rt->rt_ifp != ifp) && - (rt->rt_ifa == NULL || rt->rt_ifa->ifa_ifp != ifp)) + if (rt->rt_ifp != ifp) return (0); /* Local routes are always usable. */ |