/freebsd/contrib/netbsd-tests/net/bpfilter/ |
H A D | t_bpfilter.c | 238 prog.bf_len = __arraycount(magic_echo_reply_prog); in magic_ping_test() 364 prog.bf_len = __arraycount(badmem_prog); in ATF_TC_BODY() 382 prog.bf_len = __arraycount(noinitA_prog); in ATF_TC_BODY() 400 prog.bf_len = __arraycount(noinitX_prog); in ATF_TC_BODY() 418 prog.bf_len = __arraycount(badjmp_prog); in ATF_TC_BODY() 436 prog.bf_len = __arraycount(negjmp_prog); in ATF_TC_BODY() 455 prog.bf_len = __arraycount(badret_prog); in ATF_TC_BODY() 462 last = &prog.bf_insns[prog.bf_len - 1]; in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/net/bpf/ |
H A D | t_div-by-zero.c | 37 bp.bf_len = __arraycount(bins); in ATF_TC_BODY()
|
/freebsd/contrib/tcpdump/ |
H A D | bpf_dump.c | 36 int n = p->bf_len; in bpf_dump()
|
/freebsd/contrib/libpcap/ |
H A D | bpf_dump.c | 34 int n = p->bf_len; in bpf_dump()
|
H A D | optimize.c | 2966 if (!pcapint_validate_filter(fp->bf_insns, fp->bf_len)) { in pcapint_install_bpf_program() 2977 prog_size = sizeof(*fp->bf_insns) * fp->bf_len; in pcapint_install_bpf_program() 2978 p->fcode.bf_len = fp->bf_len; in pcapint_install_bpf_program() 3002 noffset = min(block->offset + icount, (int)prog->bf_len); in dot_dump_node() 3066 f.bf_insns = icode_to_fcode(ic, ic->root, &f.bf_len, errbuf); in dot_dump() 3087 f.bf_insns = icode_to_fcode(ic, ic->root, &f.bf_len, errbuf); in plain_dump()
|
H A D | pcap-rpcap.c | 1238 …sizeof(struct rpcap_startcapreq) + sizeof(struct rpcap_filter) + fp->fcode.bf_len * sizeof(struct … in pcap_startcapture_remote() 1567 if (prog->bf_len == 0) /* No filters have been specified; so, let's apply a "fake" filter */ in pcap_pack_bpffilter() 1582 filter->nitems = htonl((int32)prog->bf_len); in pcap_pack_bpffilter() 1584 if (sock_bufferize(NULL, prog->bf_len * sizeof(struct rpcap_filterbpf_insn), in pcap_pack_bpffilter() 1591 for (i = 0; i < prog->bf_len; i++) in pcap_pack_bpffilter() 1643 sizeof(struct rpcap_filter) + prog->bf_len * sizeof(struct rpcap_filterbpf_insn)); in pcap_updatefilter_remote()
|
H A D | pcap-airpcap.c | 254 fp->bf_len * sizeof(struct bpf_insn))) { in airpcap_setfilter()
|
H A D | pcap-linux.c | 4497 if (handle->fcode.bf_len > USHRT_MAX) { in pcap_setfilter_linux() 5422 prog_size = sizeof(*handle->fcode.bf_insns) * handle->fcode.bf_len; in fix_program() 5423 len = handle->fcode.bf_len; in fix_program()
|
H A D | pcap-sita.c | 899 count = bpf->bf_len; in pcap_setfilter_acn()
|
H A D | pcap-npf.c | 1527 total_prog.bf_len = 1; in pcap_activate_npf()
|
H A D | pcap-bpf.c | 2711 total_prog.bf_len = 1;
|
H A D | gencode.c | 848 program->bf_len = len; in pcap_compile() 896 program->bf_len = 0; in pcap_freecode()
|
/freebsd/contrib/libpcap/pcap/ |
H A D | bpf.h | 131 u_int bf_len;
|
/freebsd/sbin/dhclient/ |
H A D | bpf.c | 162 p.bf_len = nitems(dhcp_bpf_wfilter); in if_register_send() 294 p.bf_len = nitems(dhcp_bpf_filter); in if_register_receive()
|
/freebsd/sbin/ipf/ipf/ |
H A D | bpf-ipf.h | 71 u_int bf_len; member
|
/freebsd/contrib/libpcap/testprogs/ |
H A D | filtertest.c | 338 if (!bpf_validate(fcode.bf_insns, fcode.bf_len)) in main()
|
H A D | valgrindtest.c | 420 bad_fcode.bf_len = INSN_COUNT; in main()
|
/freebsd/contrib/libpcap/rpcapd/ |
H A D | daemon.c | 2354 bf_prog.bf_len = ntohl(filter.nitems); in daemon_unpackapplyfilter() 2362 if (bf_prog.bf_len > RPCAP_BPF_MAXINSNS) in daemon_unpackapplyfilter() 2369 bf_insn = (struct bpf_insn *) malloc (sizeof(struct bpf_insn) * bf_prog.bf_len); in daemon_unpackapplyfilter() 2379 for (i = 0; i < bf_prog.bf_len; i++) in daemon_unpackapplyfilter() 2403 if (bpf_validate(bf_prog.bf_insns, bf_prog.bf_len) == 0) in daemon_unpackapplyfilter()
|
/freebsd/sys/net/ |
H A D | bpf.h | 68 u_int bf_len; member
|
H A D | bpf.c | 158 u_int bf_len; member 1966 fp_swab.bf_len = fp32->bf_len; in bpf_setf() 1990 flen = fp->bf_len; in bpf_setf()
|
/freebsd/usr.sbin/usbdump/ |
H A D | usbdump.c | 259 pprog->bf_len = len; in make_filter()
|
/freebsd/sbin/ipf/common/ |
H A D | ipf_y.y | 2240 fr->fr_dsize = bpf.bf_len * sizeof(struct bpf_insn); in dobpf() 2243 if (!bpf_validate(fr->fr_data, bpf.bf_len)) { in dobpf()
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_main.c | 1805 resource_size_t bf_len; in map_bf_area() local 1813 bf_len = pci_resource_len(dev->persist->pdev, 2) - in map_bf_area() 1815 priv->bf_mapping = io_mapping_create_wc(bf_start, bf_len); in map_bf_area()
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_main.c | 11834 if (bf->bf_len == 0) { in set_offload_policy() 11838 len = bf->bf_len * sizeof(*bf->bf_insns); in set_offload_policy() 11844 if (!bpf_validate(bf->bf_insns, bf->bf_len)) { in set_offload_policy()
|