Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153187335
D15083.id41503.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
646 B
Referenced Files
None
Subscribers
None
D15083.id41503.diff
View Options
Index: sys/net/bpf.c
===================================================================
--- sys/net/bpf.c
+++ sys/net/bpf.c
@@ -98,6 +98,11 @@
MALLOC_DEFINE(M_BPF, "BPF", "BPF data");
+static struct bpf_if_ext dead_bpf_if = {
+ .bif_next = { NULL, NULL},
+ .bif_dlist = LIST_HEAD_INITIALIZER()
+};
+
struct bpf_if {
#define bif_next bif_ext.bif_next
#define bif_dlist bif_ext.bif_dlist
@@ -2659,7 +2664,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
Mon, Apr 20, 4:44 PM (14 m, 46 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31851596
Default Alt Text
D15083.id41503.diff (646 B)
Attached To
Mode
D15083: Use pointer to fake bpf_if structure after bpfdetach()
Attached
Detach File
Event Timeline
Log In to Comment