bpf_insn
static struct bpf_insn bpf_insn[] = {
sizeof(bpf_insn)/sizeof(bpf_insn[0]), bpf_insn
static const struct bpf_insn dhcp_bpf_wfilter[] = {
p.bf_insns = __DECONST(struct bpf_insn *, dhcp_bpf_wfilter);
static const struct bpf_insn dhcp_bpf_filter[] = {
p.bf_insns = __DECONST(struct bpf_insn *, dhcp_bpf_filter);
fr->fr_dsize = bpf.bf_len * sizeof(struct bpf_insn);
extern int bpf_validate(struct bpf_insn *, int);
extern u_int bpf_filter(struct bpf_insn *, u_char *, u_int, u_int);
struct bpf_insn *bf_insns;
bpf_filter(struct bpf_insn *pc, u_char *p, u_int wirelen, u_int buflen)
bpf_validate(struct bpf_insn *f, int len)
const struct bpf_insn *p;
bpf_jit_optimize(struct bpf_insn *prog, u_int nins)
bpf_jit_compile(struct bpf_insn *prog, u_int nins, size_t *size)
struct bpf_insn *ins;
bpf_jit_optimize(struct bpf_insn *prog, u_int nins)
bpf_jit_compile(struct bpf_insn *prog, u_int nins, size_t *size)
struct bpf_insn *ins;
struct bpf_insn *filter;
(struct bpf_insn *)(uintptr_t)fp32->bf_insns;
filter = (struct bpf_insn *)fcode->buffer;
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)
bpf_check_upgrade(u_long cmd, struct bpf_d *d, struct bpf_insn *fcode,
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;
bpf_jitter(struct bpf_insn *fp, int nins)
bpf_jit_filter *bpf_jitter(struct bpf_insn *fp, int nins);
struct bpf_insn;
bpf_filter_func bpf_jit_compile(struct bpf_insn *, u_int, size_t *);
struct bpf_insn *bd_rfilter; /* read filter code */
struct bpf_insn *bd_wfilter; /* write filter code */
struct bpf_insn bpf_prog[]; /* bpf program */
(sizeof(struct ng_bpf_hookprog) + (numInsn) * sizeof(struct bpf_insn))
if (!bpf_validate(ptr, fp->fr_dsize/sizeof(struct bpf_insn))) {
bpf_validate(const struct bpf_insn *f, int len)
register const struct bpf_insn *p;
u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int);
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn pc[] = {
static struct bpf_insn insns[] = {
struct bpf_insn *dynamic_insn;
dynamic_insn = malloc(((len * 5) + 1) * sizeof(struct bpf_insn));