Searched refs:prog_size (Results 1 – 2 of 2) sorted by relevance
2217 size_t prog_size; in install_bpf_program() local2233 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()
6327 size_t prog_size; local6337 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);