Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157590344
D15083.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
633 B
Referenced Files
None
Subscribers
None
D15083.diff
View Options
Index: head/sys/net/bpf.c
===================================================================
--- head/sys/net/bpf.c
+++ head/sys/net/bpf.c
@@ -98,6 +98,10 @@
MALLOC_DEFINE(M_BPF, "BPF", "BPF data");
+static struct bpf_if_ext dead_bpf_if = {
+ .bif_dlist = LIST_HEAD_INITIALIZER()
+};
+
struct bpf_if {
#define bif_next bif_ext.bif_next
#define bif_dlist bif_ext.bif_dlist
@@ -2659,7 +2663,7 @@
*/
BPFIF_WLOCK(bp);
bp->bif_flags |= BPFIF_FLAG_DYING;
- *bp->bif_bpf = NULL;
+ *bp->bif_bpf = (struct bpf_if *)&dead_bpf_if;;
BPFIF_WUNLOCK(bp);
CTR4(KTR_NET, "%s: sheduling free for encap %d (%p) for if %p",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 24, 3:41 AM (1 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33463619
Default Alt Text
D15083.diff (633 B)
Attached To
Mode
D15083: Use pointer to fake bpf_if structure after bpfdetach()
Attached
Detach File
Event Timeline
Log In to Comment