Lines Matching defs:fp
2162 * This routine does *NOT* leak the memory pointed to by fp. It *must
2163 * not* do free(fp) before returning fp; doing so would make no sense,
2180 struct bpf_insn *fp;
2190 fp = (struct bpf_insn *)malloc(sizeof(*fp) * n);
2191 if (fp == NULL)
2193 memset((char *)fp, 0, sizeof(*fp) * n);
2194 fstart = fp;
2195 ftail = fp + n;
2200 free(fp);
2203 return fp;
2215 install_bpf_program(pcap_t *p, struct bpf_program *fp)
2222 if (!bpf_validate(fp->bf_insns, fp->bf_len)) {
2233 prog_size = sizeof(*fp->bf_insns) * fp->bf_len;
2234 p->fcode.bf_len = fp->bf_len;
2241 memcpy(p->fcode.bf_insns, fp->bf_insns, prog_size);