Home
last modified time | relevance | path

Searched refs:bf_len (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/netbsd-tests/net/bpfilter/
H A Dt_bpfilter.c238 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 Dt_div-by-zero.c37 bp.bf_len = __arraycount(bins); in ATF_TC_BODY()
/freebsd/contrib/tcpdump/
H A Dbpf_dump.c36 int n = p->bf_len; in bpf_dump()
/freebsd/contrib/libpcap/
H A Dbpf_dump.c34 int n = p->bf_len; in bpf_dump()
H A Doptimize.c2966 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 Dpcap-rpcap.c1238 …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 Dpcap-airpcap.c254 fp->bf_len * sizeof(struct bpf_insn))) { in airpcap_setfilter()
H A Dpcap-linux.c4497 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 Dpcap-sita.c899 count = bpf->bf_len; in pcap_setfilter_acn()
H A Dpcap-npf.c1527 total_prog.bf_len = 1; in pcap_activate_npf()
H A Dpcap-bpf.c2711 total_prog.bf_len = 1;
H A Dgencode.c848 program->bf_len = len; in pcap_compile()
896 program->bf_len = 0; in pcap_freecode()
/freebsd/contrib/libpcap/pcap/
H A Dbpf.h131 u_int bf_len;
/freebsd/sbin/dhclient/
H A Dbpf.c162 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 Dbpf-ipf.h71 u_int bf_len; member
/freebsd/contrib/libpcap/testprogs/
H A Dfiltertest.c338 if (!bpf_validate(fcode.bf_insns, fcode.bf_len)) in main()
H A Dvalgrindtest.c420 bad_fcode.bf_len = INSN_COUNT; in main()
/freebsd/contrib/libpcap/rpcapd/
H A Ddaemon.c2354 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 Dbpf.h68 u_int bf_len; member
H A Dbpf.c158 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 Dusbdump.c259 pprog->bf_len = len; in make_filter()
/freebsd/sbin/ipf/common/
H A Dipf_y.y2240 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 Dmlx4_main.c1805 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 Dt4_main.c11834 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()