summaryrefslogtreecommitdiffstats
path: root/sys/net/bpfdesc.h
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2009-08-12 17:28:53 +0000
committerjkim <jkim@FreeBSD.org>2009-08-12 17:28:53 +0000
commitcda13d6d86bd52b9bdbe8d98d739aeccaf6ddff9 (patch)
tree2acde28a42f15b9f604c2ad5c43272ed83a58be7 /sys/net/bpfdesc.h
parente0f9ca5ab5b6816a246a04faceaae64adbc9b8cd (diff)
downloadFreeBSD-src-cda13d6d86bd52b9bdbe8d98d739aeccaf6ddff9.zip
FreeBSD-src-cda13d6d86bd52b9bdbe8d98d739aeccaf6ddff9.tar.gz
Always embed pointer to BPF JIT function in BPF descriptor
to avoid inconsistency when opt_bpf.h is not included. Reviewed by: rwatson Approved by: re (rwatson)
Diffstat (limited to 'sys/net/bpfdesc.h')
-rw-r--r--sys/net/bpfdesc.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/bpfdesc.h b/sys/net/bpfdesc.h
index 2ff3d5e..5784763 100644
--- a/sys/net/bpfdesc.h
+++ b/sys/net/bpfdesc.h
@@ -72,9 +72,7 @@ struct bpf_d {
u_long bd_rtout; /* Read timeout in 'ticks' */
struct bpf_insn *bd_rfilter; /* read filter code */
struct bpf_insn *bd_wfilter; /* write filter code */
-#ifdef BPF_JITTER
- bpf_jit_filter *bd_bfilter; /* binary filter code */
-#endif
+ void *bd_bfilter; /* binary filter code */
u_int64_t bd_rcount; /* number of packets received */
u_int64_t bd_dcount; /* number of packets dropped */
OpenPOWER on IntegriCloud