summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.