Home
last modified time | relevance | path

Searched refs:bpf_insn (Results 1 – 5 of 5) sorted by relevance

/xnu-11215.1.10/tests/
H A Dbpflib.c144 struct bpf_insn insns[] = { in bpf_filter_receive_none()
149 prog.bf_len = sizeof(insns) / sizeof(struct bpf_insn); in bpf_filter_receive_none()
157 struct bpf_insn insns[] = { in bpf_arp_filter()
165 prog.bf_len = sizeof(insns) / sizeof(struct bpf_insn); in bpf_arp_filter()
/xnu-11215.1.10/bsd/net/
H A Dbpf.h147 struct bpf_insn *bf_insns;
1423 struct bpf_insn { struct
1490 extern int bpf_validate(const struct bpf_insn *__counted_by(len), int len);
1493 extern u_int bpf_filter(const struct bpf_insn *__counted_by(pc_len), u_int pc_len,
H A Dbpf_filter.c427 bpf_filter(const struct bpf_insn *__counted_by(pc_len) pc_orig, u_int pc_len, in bpf_filter()
433 const struct bpf_insn *pc = pc_orig; in bpf_filter()
787 bpf_validate(const struct bpf_insn *__counted_by(len) f, int len) in bpf_validate()
790 const struct bpf_insn *p; in bpf_validate()
H A Dbpfdesc.h125 struct bpf_insn *__counted_by(bd_filter_len) bd_filter; /* filter code */
H A Dbpf.c2761 struct bpf_insn *fcode, *old; in bpf_setf()
2790 size = flen * sizeof(struct bpf_insn); in bpf_setf()
2791 fcode = (struct bpf_insn *) kalloc_data(size, Z_WAITOK | Z_ZERO); in bpf_setf()