Home
last modified time | relevance | path

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

/xnu-12377.1.9/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-12377.1.9/bsd/net/
H A Dbpf_private.h322 extern int bpf_validate(const struct bpf_insn *__counted_by(len), int len);
325 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 Dbpf.h138 struct bpf_insn *bf_insns;
1217 struct bpf_insn { struct
H A Dbpfdesc.h125 struct bpf_insn *__counted_by(bd_filter_len) bd_filter; /* filter code */
H A Dbpf.c2764 struct bpf_insn *fcode, *old; in bpf_setf()
2793 size = flen * sizeof(struct bpf_insn); in bpf_setf()
2794 fcode = (struct bpf_insn *) kalloc_data(size, Z_WAITOK | Z_ZERO); in bpf_setf()