/freebsd/contrib/libpcap/testprogs/ |
H A D | filtertest.c | 221 struct bpf_program fcode; in main() local 335 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main() 338 if (!bpf_validate(fcode.bf_insns, fcode.bf_len)) in main() 355 bpf_dump(&fcode, dflag); in main() 357 pcap_freecode (&fcode); in main()
|
H A D | capturetest.c | 112 struct bpf_program fcode; in main() local 250 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main() 253 if (pcap_setfilter(pd, &fcode) < 0) in main() 291 pcap_freecode(&fcode); in main()
|
H A D | threadsignaltest.c | 188 struct bpf_program fcode; in main() local 262 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main() 265 if (pcap_setfilter(pd, &fcode) < 0) in main() 321 pcap_freecode(&fcode); in main()
|
H A D | writecaptest.c | 243 struct bpf_program fcode; in main() local 414 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main() 417 if (pcap_setfilter(pd, &fcode) < 0) in main() 474 pcap_freecode(&fcode); in main()
|
H A D | valgrindtest.c | 274 struct bpf_program fcode; in main() local 435 if (pcap_compile(pd, &fcode, cmdbuf, 1, 0) < 0) in main() 437 if (pcap_setfilter(pd, &fcode) < 0) in main()
|
H A D | selpolltest.c | 74 struct bpf_program fcode; in main() local 159 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main() 161 if (pcap_setfilter(pd, &fcode) < 0) in main()
|
/freebsd/usr.bin/compress/ |
H A D | zopen.c | 159 #define fcode zs->u.w.zs_fcode macro 273 for (fcode = (long)hsize; fcode < 65536L; fcode *= 2L) in zwrite() 283 fcode = (long)(((long)c << maxbits) + ent); in zwrite() 286 if (htabof(i) == fcode) { in zwrite() 297 if (htabof(i) == fcode) { in zwrite() 309 htabof(i) = fcode; in zwrite()
|
/freebsd/contrib/libpcap/ |
H A D | pcap-enet.c | 56 register struct bpf_insn *fcode = fp->bf_insns; in readloop() local 76 if (pcapint_filter(fcode, (char *)ph->packet, in readloop() 90 if (pcapint_filter(fcode, buf.hdr.packet, cc, caplen)) { in readloop()
|
H A D | savefile.c | 255 pcap_freecode(&p->fcode); in pcapint_sf_cleanup() 629 struct bpf_insn *fcode; in pcapint_offline_read() local 687 if ((fcode = p->fcode.bf_insns) == NULL || in pcapint_offline_read() 688 pcapint_filter(fcode, data, h.len, h.caplen)) { in pcapint_offline_read()
|
H A D | pcap-linux.c | 326 static int fix_program(pcap_t *handle, struct sock_fprog *fcode); 328 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode); 4137 if (handlep->filter_in_userland && handle->fcode.bf_insns) { in pcap_handle_packet_mmap() 4143 if (pcapint_filter_with_aux_data(handle->fcode.bf_insns, in pcap_handle_packet_mmap() 4467 struct sock_fprog fcode; in pcap_setfilter_linux() local 4497 if (handle->fcode.bf_len > USHRT_MAX) { in pcap_setfilter_linux() 4505 fcode.len = 0; in pcap_setfilter_linux() 4506 fcode.filter = NULL; in pcap_setfilter_linux() 4525 switch (fix_program(handle, &fcode)) { in pcap_setfilter_linux() 4578 if ((err = set_kernel_filter(handle, &fcode)) == 0) in pcap_setfilter_linux() [all …]
|
H A D | pcap-septel.c | 125 … if ((p->fcode.bf_insns == NULL) || pcapint_filter(p->fcode.bf_insns, dp, packet_len, caplen)) { in septel_read()
|
H A D | pcap-bt-monitor-linux.c | 155 if (handle->fcode.bf_insns == NULL || in bt_monitor_read() 156 pcapint_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in bt_monitor_read()
|
H A D | pcap-usb-linux.c | 735 if (handle->fcode.bf_insns == NULL || in usb_read_linux_bin() 736 pcapint_filter(handle->fcode.bf_insns, handle->buffer, in usb_read_linux_bin() 923 if (handle->fcode.bf_insns == NULL || in usb_read_linux_mmap() 924 pcapint_filter(handle->fcode.bf_insns, (u_char*) hdr, in usb_read_linux_mmap()
|
H A D | pcap-dbus.c | 91 if (handle->fcode.bf_insns == NULL || in dbus_read() 92 pcapint_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) { in dbus_read()
|
H A D | pcap-snoop.c | 126 if (p->fcode.bf_insns == NULL || in pcap_read_snoop() 127 pcapint_filter(p->fcode.bf_insns, cp, datalen, caplen)) { in pcap_read_snoop()
|
H A D | pcap-bt-linux.c | 398 if (handle->fcode.bf_insns == NULL || in bt_read_linux() 399 pcapint_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in bt_read_linux()
|
H A D | pcap-haiku.c | 112 if (handle->fcode.bf_insns) { in pcap_read_haiku() 115 if (pcapint_filter(handle->fcode.bf_insns, buffer, wireLength, in pcap_read_haiku()
|
H A D | pcap-dos.c | 287 (!p->fcode.bf_insns || pcap_filter(p->fcode.bf_insns, p->buffer, pcap.len, pcap.caplen))) in pcap_read_one() 456 p->fcode = *fp; in pcap_setfilter_dos() 1046 pcap_save.fcode.bf_insns = NULL; in init_watt32()
|
H A D | pcap-snf.c | 192 if ((p->fcode.bf_insns == NULL) || in snf_read() 193 pcapint_filter(p->fcode.bf_insns, req.pkt_addr, req.length, caplen)) { in snf_read()
|
H A D | pcap-rdmasniff.c | 172 if (handle->fcode.bf_insns == NULL || in rdmasniff_read() 173 pcapint_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in rdmasniff_read()
|
H A D | pcap-npf.c | 724 p->fcode.bf_insns == NULL || in pcap_read_npf() 725 pcapint_filter(p->fcode.bf_insns, datap, bhp->bh_datalen, caplen)) { in pcap_read_npf() 945 if (p->fcode.bf_insns) in pcap_read_win32_dag() 947 if (pcapint_filter(p->fcode.bf_insns, dp, packet_len, caplen) == 0) in pcap_read_win32_dag()
|
H A D | pcap-netmap.c | 79 const struct bpf_insn *pc = p->fcode.bf_insns; in pcap_netmap_filter()
|
/freebsd/sys/net/ |
H A D | bpf.c | 781 bpf_check_upgrade(u_long cmd, struct bpf_d *d, struct bpf_insn *fcode, in bpf_check_upgrade() argument 789 if (d->bd_writer == 0 || fcode == NULL) in bpf_check_upgrade() 803 fcode[0].code == (BPF_RET | BPF_K)) in bpf_check_upgrade() 1951 struct bpf_program_buffer *fcode; in bpf_setf() local 1996 fcode = bpf_program_buffer_alloc(size, M_WAITOK); in bpf_setf() 1997 filter = (struct bpf_insn *)fcode->buffer; in bpf_setf() 2000 free(fcode, M_BPF); in bpf_setf() 2015 fcode = NULL; in bpf_setf() 2022 fcode = __containerof((void *)d->bd_wfilter, in bpf_setf() 2025 fcode->func = NULL; in bpf_setf() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | tcpdump.c | 1496 struct bpf_program fcode; in main() local 2282 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main() 2285 bpf_dump(&fcode, dflag); in main() 2288 pcap_freecode(&fcode); in main() 2387 if (pcap_setfilter(pd, &fcode) < 0) in main() 2700 pcap_freecode(&fcode); in main() 2701 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main() 2708 if (pcap_setfilter(pd, &fcode) < 0) in main() 2734 pcap_freecode(&fcode); in main()
|
/freebsd/contrib/sendmail/src/ |
H A D | milter.c | 1224 char fcode; local 1267 fcode = *p; 1284 switch (fcode) 1319 m->mf_name, fcode); 1420 char fcode; local 1435 fcode = *p; 1451 switch (fcode) 1472 m->mf_name, fcode); 1474 m->mf_name, fcode); 1482 m->mf_name, fcode,
|