diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2009-08-12 17:28:53 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2009-08-12 17:28:53 +0000 |
commit | a36599cce745ccc5dbf04d6f5b3fd1b2141a4a7f (patch) | |
tree | 2acde28a42f15b9f604c2ad5c43272ed83a58be7 /sys/net/bpfdesc.h | |
parent | 0990c0a12cbe0c7d6388270ab33717b348100217 (diff) | |
download | src-a36599cce745ccc5dbf04d6f5b3fd1b2141a4a7f.tar.gz src-a36599cce745ccc5dbf04d6f5b3fd1b2141a4a7f.zip |
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)
Notes
Notes:
svn path=/head/; revision=196150
Diffstat (limited to 'sys/net/bpfdesc.h')
-rw-r--r-- | sys/net/bpfdesc.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/bpfdesc.h b/sys/net/bpfdesc.h index 2ff3d5e92168..5784763ed8a8 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 */ |