summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2017-03-20 08:10:58 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2017-03-20 08:10:58 +0000
commitb9b5fd94627ea1bd45aba2f97f7ec80c0b3d0f27 (patch)
tree029a5f3daf882b12154022fc778606c5e62b3a19
parent6267e87a3366da1bde041bb454fdbb35577d09f4 (diff)
Notes
-rw-r--r--sys/net/bpf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 4251f71841e4..ed4a0544f64b 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -2678,6 +2678,10 @@ bpf_ifdetach(void *arg __unused, struct ifnet *ifp)
struct bpf_if *bp, *bp_temp;
int nmatched = 0;
+ /* Ignore ifnet renaming. */
+ if (ifp->if_flags & IFF_RENAMING)
+ return;
+
BPF_LOCK();
/*
* Find matching entries in free list.