Home
last modified time | relevance | path

Searched refs:fcode (Results 1 – 25 of 31) sorted by relevance

12

/external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/
DLZWEncoder.java146 int fcode; in compress() local
171 for (fcode = hsize; fcode < 65536; fcode *= 2) in compress()
182 fcode = (c << maxbits) + ent; in compress()
185 if (htab[i] == fcode) { in compress()
197 if (htab[i] == fcode) { in compress()
207 htab[i] = fcode; in compress()
/external/libpcap/tests/
Dfiltertest.c195 struct bpf_program fcode; in main() local
284 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
287 if (!bpf_validate(fcode.bf_insns, fcode.bf_len)) in main()
301 bpf_dump(&fcode, dflag); in main()
Dcapturetest.c67 struct bpf_program fcode; in main() local
164 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
167 if (pcap_setfilter(pd, &fcode) < 0) in main()
Dselpolltest.c61 struct bpf_program fcode; in main() local
133 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
136 if (pcap_setfilter(pd, &fcode) < 0) in main()
Dvalgrindtest.c228 struct bpf_program fcode; in main() local
388 if (pcap_compile(pd, &fcode, cmdbuf, 1, 0) < 0) in main()
390 if (pcap_setfilter(pd, &fcode) < 0) in main()
/external/libpcap/
Dsavefile.c165 pcap_freecode(&p->fcode); in sf_cleanup()
375 struct bpf_insn *fcode; in pcap_offline_read() local
407 if ((fcode = p->fcode.bf_insns) == NULL || in pcap_offline_read()
408 bpf_filter(fcode, data, h.len, h.caplen)) { in pcap_offline_read()
Dpcap-enet.c58 register struct bpf_insn *fcode = fp->bf_insns; in readloop() local
78 if (bpf_filter(fcode, (char *)ph->packet, in readloop()
92 if (bpf_filter(fcode, buf.hdr.packet, cc, caplen)) { in readloop()
Dpcap-septel.c137 if ((p->fcode.bf_insns == NULL) || bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen)) { in septel_read()
Dpcap-linux.c433 static int fix_program(pcap_t *handle, struct sock_fprog *fcode,
436 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
1801 if (handlep->filter_in_userland && handle->fcode.bf_insns) {
1802 if (bpf_filter_with_aux_data(handle->fcode.bf_insns, bp,
2415 struct sock_fprog fcode; local
2446 if (handle->fcode.bf_len > USHRT_MAX) {
2454 fcode.len = 0;
2455 fcode.filter = NULL;
2474 switch (fix_program(handle, &fcode, is_mmapped)) {
2527 if ((err = set_kernel_filter(handle, &fcode)) == 0)
[all …]
Dpcap-usb-linux.c655 if (handle->fcode.bf_insns == NULL || in usb_read_linux()
656 bpf_filter(handle->fcode.bf_insns, handle->buffer, in usb_read_linux()
824 if (handle->fcode.bf_insns == NULL || in usb_read_linux_bin()
825 bpf_filter(handle->fcode.bf_insns, handle->buffer, in usb_read_linux_bin()
905 if (handle->fcode.bf_insns == NULL || in usb_read_linux_mmap()
906 bpf_filter(handle->fcode.bf_insns, (u_char*) hdr, in usb_read_linux_mmap()
Dpcap-bt-monitor-linux.c120 if (handle->fcode.bf_insns == NULL || in bt_monitor_read()
121 bpf_filter(handle->fcode.bf_insns, &handle->buffer[handle->offset], in bt_monitor_read()
Dpcap-win32.c276 p->fcode.bf_insns == NULL || in pcap_read_win32_npf()
277 bpf_filter(p->fcode.bf_insns, datap, bhp->bh_datalen, caplen)) { in pcap_read_win32_npf()
428 if (p->fcode.bf_insns) in pcap_read_win32_dag()
430 if (bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen) == 0) in pcap_read_win32_dag()
Dpcap-dbus.c93 if (handle->fcode.bf_insns == NULL || in dbus_read()
94 bpf_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) { in dbus_read()
Dpcap-bt-linux.c359 if (handle->fcode.bf_insns == NULL || in bt_read_linux()
360 bpf_filter(handle->fcode.bf_insns, &handle->buffer[handle->offset], in bt_read_linux()
Dpcap-snoop.c128 if (p->fcode.bf_insns == NULL || in pcap_read_snoop()
129 bpf_filter(p->fcode.bf_insns, cp, datalen, caplen)) { in pcap_read_snoop()
Dpcap-dos.c275 (!p->fcode.bf_insns || bpf_filter(p->fcode.bf_insns, rx_buf, pcap.len, pcap.caplen))) in pcap_read_one()
418 p->fcode = *fp; in pcap_setfilter_dos()
998 pcap_save.fcode.bf_insns = NULL; in init_watt32()
Dpcap-snf.c177 if ((p->fcode.bf_insns == NULL) || in snf_read()
178 bpf_filter(p->fcode.bf_insns, req.pkt_addr, req.length, caplen)) { in snf_read()
Dpcap-int.h213 struct bpf_program fcode; member
Dpcap.c1799 pcap_freecode(&p->fcode); in pcap_cleanup_live_common()
1903 const struct bpf_insn *fcode = fp->bf_insns; in pcap_offline_filter() local
1905 if (fcode != NULL) in pcap_offline_filter()
1906 return (bpf_filter(fcode, pkt, h->len, h->caplen)); in pcap_offline_filter()
Dpcap-netfilter-linux.c186 if (handle->fcode.bf_insns == NULL || in netfilter_read_linux()
187 bpf_filter(handle->fcode.bf_insns, payload, pkth.len, pkth.caplen)) in netfilter_read_linux()
Ddlpisubs.c179 if (bpf_filter(p->fcode.bf_insns, pk, origlen, caplen)) { in pcap_process_pkts()
/external/ppp/pppd/include/
Dpcap-int.h95 struct bpf_program fcode; member
/external/pdfium/third_party/libtiff/
Dtif_lzw.c872 register long fcode; in LZWEncode() local
916 fcode = ((long)c << BITS_MAX) + ent; in LZWEncode()
926 if (hp->hash == fcode) { in LZWEncode()
945 if (hp->hash == fcode) { in LZWEncode()
968 hp->hash = fcode; in LZWEncode()
/external/opencv3/3rdparty/libtiff/
Dtif_lzw.c863 register long fcode; in LZWEncode() local
906 fcode = ((long)c << BITS_MAX) + ent; in LZWEncode()
916 if (hp->hash == fcode) { in LZWEncode()
935 if (hp->hash == fcode) { in LZWEncode()
958 hp->hash = fcode; in LZWEncode()
/external/tcpdump/
Dtcpdump.c1009 struct bpf_program fcode; in main() local
1778 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
1781 bpf_dump(&fcode, dflag); in main()
1850 if (pcap_setfilter(pd, &fcode) < 0) in main()
2069 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
2071 if (pcap_setfilter(pd, &fcode) < 0) in main()

12