summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-11-13 10:18:05 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-11-13 10:18:05 +0000
commitee9c90cf8ab98247cdf2704caba3ef582b16bba2 (patch)
treed30860a4214c27070613452efff2fb313e4bc68e /sys/net
parentf18be0b17e9fd479adda2cac0138600ac652e0c5 (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.c6
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);