]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-netfilter-linux.c
Clean up the declaration of the packet-filtering routines.
[libpcap] / pcap-netfilter-linux.c
index d5c5dcdc485040adcbdf85805e600801e7092a6d..675df4aede0a26a308c683d9b6d5c42a19cb4444 100644 (file)
@@ -240,7 +240,7 @@ netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_c
 
                                gettimeofday(&pkth.ts, NULL);
                                if (handle->fcode.bf_insns == NULL ||
-                                               bpf_filter(handle->fcode.bf_insns, payload, pkth.len, pkth.caplen))
+                                               pcap_filter(handle->fcode.bf_insns, payload, pkth.len, pkth.caplen))
                                {
                                        handlep->packets_read++;
                                        callback(user, &pkth, payload);