Lines Matching refs:gen_cmp
130 static struct block *gen_cmp(u_int, u_int, bpf_int32);
471 gen_cmp(u_int offset, u_int size, bpf_int32 v)
505 struct block *b = gen_cmp(offset, size, v);
542 tmp = gen_cmp(offset + size - 4, BPF_W, w);
552 tmp = gen_cmp(offset + size - 2, BPF_H, w);
559 tmp = gen_cmp(offset, BPF_B, (bpf_int32)v[0]);
624 /* Like gen_cmp but adds the dynamic 'off_nl' to the offset */
830 b1 = gen_cmp(off_linktype + 2, BPF_B, (bpf_int32)proto);
835 return gen_cmp(off_linktype, BPF_H, (bpf_int32)proto);
856 b0 = gen_cmp(off_linktype, BPF_H, PPP_IP);
857 b1 = gen_cmp(off_linktype, BPF_H, PPP_VJC);
859 b0 = gen_cmp(off_linktype, BPF_H, PPP_VJNC);
911 return (gen_cmp(0, BPF_W, (bpf_int32)v));
916 return (gen_cmp(offsetof(struct pfloghdr, af), BPF_B,
920 return (gen_cmp(offsetof(struct pfloghdr, af), BPF_B,
928 return gen_cmp(off_linktype, BPF_H, (bpf_int32)proto);
2949 return gen_cmp((u_int)idx, BPF_B, (bpf_int32)val);
2952 b = gen_cmp((u_int)idx, BPF_B, (bpf_int32)val);
2958 b = gen_cmp((u_int)idx, BPF_B, (bpf_int32)val);
3094 b0 = gen_cmp(offsetof(struct pfloghdr, dir), BPF_B,
3160 b0 = gen_cmp(offsetof(struct pfloghdr, rulenr), BPF_W,
3182 b0 = gen_cmp(offsetof(struct pfloghdr, subrulenr), BPF_W,
3194 b0 = gen_cmp(offsetof(struct pfloghdr, reason), BPF_B,
3211 b0 = gen_cmp(offsetof(struct pfloghdr, action), BPF_B,
3354 b0 = gen_cmp(orig_linktype, BPF_H, (bpf_int32)ETHERTYPE_8021Q);