Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140150590
D14023.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
584 B
Referenced Files
None
Subscribers
None
D14023.diff
View Options
Index: head/sys/net/bpf.c
===================================================================
--- head/sys/net/bpf.c
+++ head/sys/net/bpf.c
@@ -62,6 +62,7 @@
#include <sys/sockio.h>
#include <sys/ttycom.h>
#include <sys/uio.h>
+#include <sys/sysent.h>
#include <sys/event.h>
#include <sys/file.h>
@@ -1321,9 +1322,11 @@
case BIOCGDLTLIST32:
case BIOCGRTIMEOUT32:
case BIOCSRTIMEOUT32:
- BPFD_LOCK(d);
- d->bd_compat32 = 1;
- BPFD_UNLOCK(d);
+ if (SV_PROC_FLAG(td->td_proc, SV_ILP32)) {
+ BPFD_LOCK(d);
+ d->bd_compat32 = 1;
+ BPFD_UNLOCK(d);
+ }
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 21, 9:33 PM (6 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27122388
Default Alt Text
D14023.diff (584 B)
Attached To
Mode
D14023: BPF: Switch to 32 bit compatible mode only when thread is 32 bit
Attached
Detach File
Event Timeline
Log In to Comment