Searched defs:fcode (Results 1 - 11 of 11) sorted by relevance

/external/libpcap/
H A Dpcap-enet.c62 register struct bpf_insn *fcode = fp->bf_insns; local
82 if (bpf_filter(fcode, (char *)ph->packet,
96 if (bpf_filter(fcode, buf.hdr.packet, cc, caplen)) {
H A Dsavefile.c170 pcap_freecode(&p->fcode);
318 /* Padding only needed for live capture fcode */
375 struct bpf_insn *fcode; local
407 if ((fcode = p->fcode.bf_insns) == NULL ||
408 bpf_filter(fcode, data, h.len, h.caplen)) {
H A Dpcap-int.h187 struct bpf_program fcode; member in struct:pcap
H A Dpcap.c1769 pcap_freecode(&p->fcode);
1867 const struct bpf_insn *fcode = fp->bf_insns; local
1869 if (fcode != NULL)
1870 return (bpf_filter(fcode, pkt, h->len, h->caplen));
H A Dpcap-linux.c394 static int fix_program(pcap_t *handle, struct sock_fprog *fcode,
397 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
1707 if (handlep->filter_in_userland && handle->fcode.bf_insns) {
1708 if (bpf_filter(handle->fcode.bf_insns, bp,
2366 struct sock_fprog fcode; local
2397 if (handle->fcode.bf_len > USHRT_MAX) {
2399 * fcode.len is an unsigned short for current kernel.
2405 fcode.len = 0;
2406 fcode.filter = NULL;
2424 switch (fix_program(handle, &fcode, is_mmappe
5836 fix_program(pcap_t *handle, struct sock_fprog *fcode, int is_mmapped) argument
5974 set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode) argument
[all...]
/external/libpcap/tests/
H A Dfiltertest.c172 struct bpf_program fcode; local
250 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0)
252 bpf_dump(&fcode, dflag);
H A Dnonblocktest.c60 struct bpf_program fcode; local
103 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0)
106 if (pcap_setfilter(pd, &fcode) < 0)
H A Dselpolltest.c61 struct bpf_program fcode; local
133 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0)
136 if (pcap_setfilter(pd, &fcode) < 0)
H A Dvalgrindtest.c230 struct bpf_program fcode; local
390 if (pcap_compile(pd, &fcode, cmdbuf, 1, 0) < 0)
392 if (pcap_setfilter(pd, &fcode) < 0)
/external/ppp/pppd/include/
H A Dpcap-int.h95 struct bpf_program fcode; member in struct:pcap
/external/tcpdump/
H A Dtcpdump.c698 struct bpf_program fcode; local
1408 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0)
1411 bpf_dump(&fcode, dflag);
1479 if (pcap_setfilter(pd, &fcode) < 0)
1635 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0)
1637 if (pcap_setfilter(pd, &fcode) < 0)

Completed in 1511 milliseconds