Page MenuHomeFreeBSD

D45599.diff
No OneTemporary

D45599.diff

diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1265,20 +1265,8 @@
static int
if_vmove(struct ifnet *ifp, struct vnet *new_vnet)
{
-#ifdef DEV_BPF
- u_int bif_dlt, bif_hdrlen;
-#endif
int rc;
-#ifdef DEV_BPF
- /*
- * if_detach_internal() will call the eventhandler to notify
- * interface departure. That will detach if_bpf. We need to
- * safe the dlt and hdrlen so we can re-attach it later.
- */
- bpf_get_bp_params(ifp->if_bpf, &bif_dlt, &bif_hdrlen);
-#endif
-
/*
* Detach from current vnet, but preserve LLADDR info, do not
* mark as dead etc. so that the ifnet can be reattached later.
@@ -1300,12 +1288,6 @@
*/
CURVNET_SET_QUIET(new_vnet);
if_attach_internal(ifp, true);
-
-#ifdef DEV_BPF
- if (ifp->if_bpf == NULL)
- bpfattach(ifp, bif_dlt, bif_hdrlen);
-#endif
-
CURVNET_RESTORE();
return (0);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 5, 9:39 AM (4 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13631156
Default Alt Text
D45599.diff (877 B)

Event Timeline