diff options
Diffstat (limited to 'contrib/libpcap/pcap-enet.c')
-rw-r--r-- | contrib/libpcap/pcap-enet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libpcap/pcap-enet.c b/contrib/libpcap/pcap-enet.c index cd8cdbbb78b4..6f0512f35947 100644 --- a/contrib/libpcap/pcap-enet.c +++ b/contrib/libpcap/pcap-enet.c @@ -75,7 +75,7 @@ readloop(int cnt, int if_fd, struct bpf_program *fp, printfunc printit) ph = (struct packet_header *)bp; caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap .th_wirelen ; - if (bpf_filter(fcode, (char *)ph->packet, + if (pcap_filter(fcode, (char *)ph->packet, ph->tap.th_wirelen, caplen)) { if (cnt >= 0 && --cnt < 0) goto out; @@ -89,7 +89,7 @@ readloop(int cnt, int if_fd, struct bpf_program *fp, printfunc printit) } #else /* !IBMRTPC */ caplen = cc > snaplen ? snaplen : cc ; - if (bpf_filter(fcode, buf.hdr.packet, cc, caplen)) { + if (pcap_filter(fcode, buf.hdr.packet, cc, caplen)) { if (cnt >= 0 && --cnt < 0) goto out; (*printit)(buf.hdr.packet, &tv, cc, caplen); |