/external/syzkaller/executor/ |
D | common.h | 320 #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); \
|
D | executor.cc | 289 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/ |
D | nfbpf_compile.c | 45 printf("%d,", program.bf_len); in main() 47 for (i = 0; i < program.bf_len-1; ++ins, ++i) in main()
|
/external/ppp/pppd/ |
D | demand.c | 345 if ((pass_filter.bf_len != 0 347 || (active_filter.bf_len != 0
|
D | sys-linux.c | 1337 fp.len = pass->bf_len; in set_filters() 1346 fp.len = active->bf_len; in set_filters()
|
D | sys-solaris.c | 1695 if (pass->bf_len > 0) { 1702 if (active->bf_len > 0) {
|
/external/tcpdump/ |
D | bpf_dump.c | 37 int n = p->bf_len; in bpf_dump()
|
/external/libpcap/ |
D | bpf_dump.c | 36 int n = p->bf_len; in bpf_dump()
|
D | optimize.c | 2362 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()
|
D | pcap-rpcap.c | 1142 …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()
|
D | pcap-sita.c | 900 count = bpf->bf_len; in pcap_setfilter_acn()
|
D | pcap-linux.c | 2862 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;
|
D | pcap-bpf.c | 2486 total_prog.bf_len = 1;
|
D | gencode.c | 759 program->bf_len = len; in pcap_compile() 807 program->bf_len = 0; in pcap_freecode()
|
/external/libpcap/pcap/ |
D | bpf.h | 105 u_int bf_len; member
|
/external/libpcap/testprogs/ |
D | filtertest.c | 321 if (!bpf_validate(fcode.bf_insns, fcode.bf_len)) in main()
|
D | valgrindtest.c | 394 bad_fcode.bf_len = INSN_COUNT; in main()
|
/external/libpcap/rpcapd/ |
D | daemon.c | 1985 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/ |
D | generated.go | 305 #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); \
|