Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178247963
D14023.1796330706.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
584 B
Referenced Files
None
Subscribers
None
D14023.1796330706.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
Thu, Dec 3, 8:45 PM (9 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42191284
Default Alt Text
D14023.1796330706.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