Home
last modified time | relevance | path

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

/external/libpcap/
Doptimize.c2217 size_t prog_size; in install_bpf_program() local
2233 prog_size = sizeof(*fp->bf_insns) * fp->bf_len; in install_bpf_program()
2235 p->fcode.bf_insns = (struct bpf_insn *)malloc(prog_size); in install_bpf_program()
2241 memcpy(p->fcode.bf_insns, fp->bf_insns, prog_size); in install_bpf_program()
Dpcap-linux.c6327 size_t prog_size; local
6337 prog_size = sizeof(*handle->fcode.bf_insns) * handle->fcode.bf_len;
6339 f = (struct bpf_insn *)malloc(prog_size);
6345 memcpy(f, handle->fcode.bf_insns, prog_size);