Home
last modified time | relevance | path

Searched refs:prog_size (Results 1 – 2 of 2) sorted by relevance

/external/libpcap/
Doptimize.c2207 size_t prog_size; in install_bpf_program() local
2223 prog_size = sizeof(*fp->bf_insns) * fp->bf_len; in install_bpf_program()
2225 p->fcode.bf_insns = (struct bpf_insn *)malloc(prog_size); in install_bpf_program()
2231 memcpy(p->fcode.bf_insns, fp->bf_insns, prog_size); in install_bpf_program()
Dpcap-linux.c5839 size_t prog_size; local
5849 prog_size = sizeof(*handle->fcode.bf_insns) * handle->fcode.bf_len;
5851 f = (struct bpf_insn *)malloc(prog_size);
5857 memcpy(f, handle->fcode.bf_insns, prog_size);