Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107197599
D45599.id139855.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
877 B
Referenced Files
None
Subscribers
None
D45599.id139855.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 12:58 PM (17 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15769519
Default Alt Text
D45599.id139855.diff (877 B)
Attached To
Mode
D45599: ifnet: Remove dead code
Attached
Detach File
Event Timeline
Log In to Comment