diff options
Diffstat (limited to 'bpf_filter.c')
-rw-r--r-- | bpf_filter.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/bpf_filter.c b/bpf_filter.c index 8691d0d1a882..9b899bbb3669 100644 --- a/bpf_filter.c +++ b/bpf_filter.c @@ -38,9 +38,7 @@ * @(#)bpf.c 7.5 (Berkeley) 7/15/91 */ -#ifdef HAVE_CONFIG_H #include <config.h> -#endif #include <pcap/pcap-inttypes.h> #include "pcap-types.h" @@ -86,11 +84,11 @@ enum { */ #if defined(SKF_AD_VLAN_TAG_PRESENT) u_int -pcap_filter_with_aux_data(const struct bpf_insn *pc, const u_char *p, +pcapint_filter_with_aux_data(const struct bpf_insn *pc, const u_char *p, u_int wirelen, u_int buflen, const struct pcap_bpf_aux_data *aux_data) #else u_int -pcap_filter_with_aux_data(const struct bpf_insn *pc, const u_char *p, +pcapint_filter_with_aux_data(const struct bpf_insn *pc, const u_char *p, u_int wirelen, u_int buflen, const struct pcap_bpf_aux_data *aux_data _U_) #endif { @@ -388,10 +386,10 @@ DIAG_ON_DEFAULT_ONLY_SWITCH } u_int -pcap_filter(const struct bpf_insn *pc, const u_char *p, u_int wirelen, +pcapint_filter(const struct bpf_insn *pc, const u_char *p, u_int wirelen, u_int buflen) { - return pcap_filter_with_aux_data(pc, p, wirelen, buflen, NULL); + return pcapint_filter_with_aux_data(pc, p, wirelen, buflen, NULL); } /* @@ -406,7 +404,7 @@ pcap_filter(const struct bpf_insn *pc, const u_char *p, u_int wirelen, * Otherwise, a bogus program could easily crash the system. */ int -pcap_validate_filter(const struct bpf_insn *f, int len) +pcapint_validate_filter(const struct bpf_insn *f, int len) { u_int i, from; const struct bpf_insn *p; @@ -536,11 +534,11 @@ u_int bpf_filter(const struct bpf_insn *pc, const u_char *p, u_int wirelen, u_int buflen) { - return pcap_filter(pc, p, wirelen, buflen); + return pcapint_filter(pc, p, wirelen, buflen); } int bpf_validate(const struct bpf_insn *f, int len) { - return pcap_validate_filter(f, len); + return pcapint_validate_filter(f, len); } |