]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-dbus.c
Clean up the declaration of the packet-filtering routines.
[libpcap] / pcap-dbus.c
index 1252975e9ac7b31d71cf6270b98fcd8a25cbf8b6..9f426e671bb0fd1d1473e4734e4281ed85a81798 100644 (file)
@@ -91,7 +91,7 @@ dbus_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *us
 
                gettimeofday(&pkth.ts, NULL);
                if (handle->fcode.bf_insns == NULL ||
-                   bpf_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) {
+                   pcap_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) {
                        handlep->packets_read++;
                        callback(user, &pkth, (u_char *)raw_msg);
                        count++;