]> The Tcpdump Group git mirrors - libpcap/blobdiff - optimize.c
Clean up the declaration of the packet-filtering routines.
[libpcap] / optimize.c
index 947a39933f669aa91ecbb30c1b73b0436067375f..fa8e0ac1feb2bd1008496eb22b57a80c9767a63b 100644 (file)
@@ -2359,7 +2359,7 @@ install_bpf_program(pcap_t *p, struct bpf_program *fp)
        /*
         * Validate the program.
         */
-       if (!bpf_validate(fp->bf_insns, fp->bf_len)) {
+       if (!pcap_validate_filter(fp->bf_insns, fp->bf_len)) {
                pcap_snprintf(p->errbuf, sizeof(p->errbuf),
                        "BPF program is not valid");
                return (-1);