diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-11-13 10:18:05 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-11-13 10:18:05 +0000 |
commit | ee9c90cf8ab98247cdf2704caba3ef582b16bba2 (patch) | |
tree | d30860a4214c27070613452efff2fb313e4bc68e /sys/net | |
parent | f18be0b17e9fd479adda2cac0138600ac652e0c5 (diff) |
Sore the index of the interface used for revarp instead of a pointer to
its descriptor. Get rid of a if_ref().
ok dlg@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 41589ce3a80..b4662375189 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.405 2015/11/11 10:23:23 mpi Exp $ */ +/* $OpenBSD: if.c,v 1.406 2015/11/13 10:18:04 mpi Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -887,8 +887,8 @@ if_detach(struct ifnet *ifp) rt_if_remove(ifp); rti_delete(ifp); #if NETHER > 0 && defined(NFSCLIENT) - if (ifp == revarp_ifp) - revarp_ifp = NULL; + if (ifp->if_index == revarp_ifidx) + revarp_ifidx = 0; #endif #ifdef MROUTING vif_delete(ifp); |