bpf_insn
sizeof(struct bpf_insn) * program.bf_len);
sizeof(struct bpf_insn) * (bpf->bf_len - 1)) /
static struct bpf_insn bpf_insn[] = {
NELEM(bpf_insn), bpf_insn
struct bpf_insn dhcp_bpf_filter[] = {
int dhcp_bpf_filter_len = sizeof(dhcp_bpf_filter) / sizeof(struct bpf_insn);
struct bpf_insn dhcp_bpf_wfilter[] = {
int dhcp_bpf_wfilter_len = sizeof(dhcp_bpf_wfilter) / sizeof(struct bpf_insn);
struct bpf_insn *fcode, *old;
fcode = (struct bpf_insn *)kmalloc(size, M_BPF, M_WAITOK);
struct sockaddr *, int *, struct bpf_insn *);
struct sockaddr *sockp, int *datlen, struct bpf_insn *wfilter)
bpf_filter(const struct bpf_insn *pc, u_char *p, u_int wirelen, u_int buflen)
int bpf_validate(const struct bpf_insn *, int);
u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int);
struct bpf_insn *bf_insns;
bpf_filter(const struct bpf_insn *pc, u_char *p, u_int wirelen, u_int buflen)
bpf_validate(const struct bpf_insn *f, int len)
const struct bpf_insn *p;
struct bpf_insn *bd_rfilter; /* read filter code */
struct bpf_insn *bd_wfilter; /* write filter code */
struct bpf_insn bf_insn[1];
struct bpf_insn bpf_prog[__ARRAY_ZERO]; /* bpf program */
(sizeof(struct ng_bpf_hookprog) + (numInsn) * sizeof(struct bpf_insn))
struct bpf_insn bpf_prog[]; /* bpf program */
(sizeof(struct ng_bpf_hookprog) + (numInsn) * sizeof(struct bpf_insn))
static struct bpf_insn insns[] = {
struct bpf_insn *dynamic_insn;
dynamic_insn = malloc(((len * 5) + 1) * sizeof(struct bpf_insn));