Home
last modified time | relevance | path

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

/external/syzkaller/executor/
Dcommon.h320 #define BITMASK_LEN(type, bf_len) (type)((1ull << (bf_len)) - 1) argument
322 #define BITMASK_LEN_OFF(type, bf_off, bf_len) (type)(BITMASK_LEN(type, (bf_len)) << (bf_off)) argument
324 #define STORE_BY_BITMASK(type, addr, val, bf_off, bf_len) \ argument
325 if ((bf_off) == 0 && (bf_len) == 0) { \
329 new_val &= ~BITMASK_LEN_OFF(type, (bf_off), (bf_len)); \
330 new_val |= ((type)(val)&BITMASK_LEN(type, (bf_len))) << (bf_off); \
Dexecutor.cc289 static void copyin(char* addr, uint64 val, uint64 size, uint64 bf, uint64 bf_off, uint64 bf_len);
549 uint64 size, bf, bf_off, bf_len; in execute_one() local
550 uint64 arg = read_const_arg(&input_pos, &size, &bf, &bf_off, &bf_len); in execute_one()
551 copyin(addr, arg, size, bf, bf_off, bf_len); in execute_one()
1005 void copyin(char* addr, uint64 val, uint64 size, uint64 bf, uint64 bf_off, uint64 bf_len) in copyin() argument
1007 if (bf != binary_format_native && (bf_off != 0 || bf_len != 0)) in copyin()
1008 fail("bitmask for string format %llu/%llu", bf_off, bf_len); in copyin()
1013 STORE_BY_BITMASK(uint8, addr, val, bf_off, bf_len); in copyin()
1016 STORE_BY_BITMASK(uint16, addr, val, bf_off, bf_len); in copyin()
1019 STORE_BY_BITMASK(uint32, addr, val, bf_off, bf_len); in copyin()
[all …]
/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.c2362 if (!bpf_validate(fp->bf_insns, fp->bf_len)) { in install_bpf_program()
2373 prog_size = sizeof(*fp->bf_insns) * fp->bf_len; in install_bpf_program()
2374 p->fcode.bf_len = fp->bf_len; in install_bpf_program()
2398 noffset = min(block->offset + icount, (int)prog->bf_len); in dot_dump_node()
2462 f.bf_insns = icode_to_fcode(cstate, ic, ic->root, &f.bf_len); in dot_dump()
2480 f.bf_insns = icode_to_fcode(cstate, ic, ic->root, &f.bf_len); in plain_dump()
Dpcap-rpcap.c1142 …sizeof(struct rpcap_startcapreq) + sizeof(struct rpcap_filter) + fp->fcode.bf_len * sizeof(struct … in pcap_startcapture_remote()
1436 if (prog->bf_len == 0) /* No filters have been specified; so, let's apply a "fake" filter */ in pcap_pack_bpffilter()
1451 filter->nitems = htonl((int32)prog->bf_len); in pcap_pack_bpffilter()
1453 if (sock_bufferize(NULL, prog->bf_len * sizeof(struct rpcap_filterbpf_insn), in pcap_pack_bpffilter()
1460 for (i = 0; i < prog->bf_len; i++) in pcap_pack_bpffilter()
1512 sizeof(struct rpcap_filter) + prog->bf_len * sizeof(struct rpcap_filterbpf_insn)); in pcap_updatefilter_remote()
Dpcap-sita.c900 count = bpf->bf_len; in pcap_setfilter_acn()
Dpcap-linux.c2862 if (handle->fcode.bf_len > USHRT_MAX) {
6882 prog_size = sizeof(*handle->fcode.bf_insns) * handle->fcode.bf_len;
6883 len = handle->fcode.bf_len;
Dpcap-bpf.c2486 total_prog.bf_len = 1;
Dgencode.c759 program->bf_len = len; in pcap_compile()
807 program->bf_len = 0; in pcap_freecode()
/external/libpcap/pcap/
Dbpf.h105 u_int bf_len; member
/external/libpcap/testprogs/
Dfiltertest.c321 if (!bpf_validate(fcode.bf_insns, fcode.bf_len)) in main()
Dvalgrindtest.c394 bad_fcode.bf_len = INSN_COUNT; in main()
/external/libpcap/rpcapd/
Ddaemon.c1985 bf_prog.bf_len = ntohl(filter.nitems); in daemon_unpackapplyfilter()
1993 bf_insn = (struct bpf_insn *) malloc (sizeof(struct bpf_insn) * bf_prog.bf_len); in daemon_unpackapplyfilter()
2003 for (i = 0; i < bf_prog.bf_len; i++) in daemon_unpackapplyfilter()
2024 if (bpf_validate(bf_prog.bf_insns, bf_prog.bf_len) == 0) in daemon_unpackapplyfilter()
/external/syzkaller/pkg/csource/
Dgenerated.go305 #define BITMASK_LEN(type, bf_len) (type)((1ull << (bf_len)) - 1)
307 #define BITMASK_LEN_OFF(type, bf_off, bf_len) (type)(BITMASK_LEN(type, (bf_len)) << (bf_off))
309 #define STORE_BY_BITMASK(type, addr, val, bf_off, bf_len) \
310 if ((bf_off) == 0 && (bf_len) == 0) { \
314 new_val &= ~BITMASK_LEN_OFF(type, (bf_off), (bf_len)); \
315 new_val |= ((type)(val)&BITMASK_LEN(type, (bf_len))) << (bf_off); \