Home
last modified time | relevance | path

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

/external/iptables/utils/
Dnfbpf_compile.c45 printf("%d,", program.bf_len); in main()
47 for (i = 0; i < program.bf_len-1; ++ins, ++i) in main()
/external/ppp/pppd/
Ddemand.c345 if ((pass_filter.bf_len != 0
347 || (active_filter.bf_len != 0
Dsys-linux.c1337 fp.len = pass->bf_len; in set_filters()
1346 fp.len = active->bf_len; in set_filters()
Dsys-solaris.c1695 if (pass->bf_len > 0) {
1702 if (active->bf_len > 0) {
/external/tcpdump/
Dbpf_dump.c37 int n = p->bf_len; in bpf_dump()
/external/libpcap/
Dbpf_dump.c36 int n = p->bf_len; in bpf_dump()
Doptimize.c2946 if (!pcap_validate_filter(fp->bf_insns, fp->bf_len)) { in install_bpf_program()
2957 prog_size = sizeof(*fp->bf_insns) * fp->bf_len; in install_bpf_program()
2958 p->fcode.bf_len = fp->bf_len; in install_bpf_program()
2982 noffset = min(block->offset + icount, (int)prog->bf_len); in dot_dump_node()
3046 f.bf_insns = icode_to_fcode(ic, ic->root, &f.bf_len, errbuf); in dot_dump()
3067 f.bf_insns = icode_to_fcode(ic, ic->root, &f.bf_len, errbuf); in plain_dump()
Dpcap-rpcap.c1193 …sizeof(struct rpcap_startcapreq) + sizeof(struct rpcap_filter) + fp->fcode.bf_len * sizeof(struct … in pcap_startcapture_remote()
1517 if (prog->bf_len == 0) /* No filters have been specified; so, let's apply a "fake" filter */ in pcap_pack_bpffilter()
1532 filter->nitems = htonl((int32)prog->bf_len); in pcap_pack_bpffilter()
1534 if (sock_bufferize(NULL, prog->bf_len * sizeof(struct rpcap_filterbpf_insn), in pcap_pack_bpffilter()
1541 for (i = 0; i < prog->bf_len; i++) in pcap_pack_bpffilter()
1593 sizeof(struct rpcap_filter) + prog->bf_len * sizeof(struct rpcap_filterbpf_insn)); in pcap_updatefilter_remote()
Dpcap-airpcap.c256 fp->bf_len * sizeof(struct bpf_insn))) { in airpcap_setfilter()
Dpcap-linux.c4216 if (handle->fcode.bf_len > USHRT_MAX) { in pcap_setfilter_linux()
5109 prog_size = sizeof(*handle->fcode.bf_insns) * handle->fcode.bf_len; in fix_program()
5110 len = handle->fcode.bf_len; in fix_program()
Dpcap-sita.c901 count = bpf->bf_len; in pcap_setfilter_acn()
Dpcap-npf.c1324 total_prog.bf_len = 1; in pcap_activate_npf()
Dpcap-bpf.c2627 total_prog.bf_len = 1;
Dgencode.c847 program->bf_len = len; in pcap_compile()
895 program->bf_len = 0; in pcap_freecode()
/external/libpcap/pcap/
Dbpf.h116 u_int bf_len; member
/external/libpcap/testprogs/
Dfiltertest.c344 if (!bpf_validate(fcode.bf_insns, fcode.bf_len)) in main()
Dvalgrindtest.c422 bad_fcode.bf_len = INSN_COUNT; in main()
/external/libpcap/rpcapd/
Ddaemon.c2329 bf_prog.bf_len = ntohl(filter.nitems); in daemon_unpackapplyfilter()
2337 if (bf_prog.bf_len > RPCAP_BPF_MAXINSNS) in daemon_unpackapplyfilter()
2344 bf_insn = (struct bpf_insn *) malloc (sizeof(struct bpf_insn) * bf_prog.bf_len); in daemon_unpackapplyfilter()
2354 for (i = 0; i < bf_prog.bf_len; i++) in daemon_unpackapplyfilter()
2378 if (bpf_validate(bf_prog.bf_insns, bf_prog.bf_len) == 0) in daemon_unpackapplyfilter()
/external/rust/crates/libc/src/unix/bsd/freebsdlike/
Dmod.rs278 pub bf_len: ::c_uint,