Searched refs:bf_prog (Results 1 – 1 of 1) sorted by relevance
2340 struct bpf_program bf_prog; in daemon_unpackapplyfilter() local2354 bf_prog.bf_len = ntohl(filter.nitems); in daemon_unpackapplyfilter()2362 if (bf_prog.bf_len > RPCAP_BPF_MAXINSNS) in daemon_unpackapplyfilter()2369 bf_insn = (struct bpf_insn *) malloc (sizeof(struct bpf_insn) * bf_prog.bf_len); in daemon_unpackapplyfilter()2377 bf_prog.bf_insns = bf_insn; in daemon_unpackapplyfilter()2379 for (i = 0; i < bf_prog.bf_len; i++) in daemon_unpackapplyfilter()2403 if (bpf_validate(bf_prog.bf_insns, bf_prog.bf_len) == 0) in daemon_unpackapplyfilter()2409 if (pcap_setfilter(session->fp, &bf_prog)) in daemon_unpackapplyfilter()