Lines Matching refs:gen_cmp
182 static struct block *gen_cmp(enum e_offrel, u_int, u_int, bpf_int32);
556 gen_cmp(offrel, offset, size, v)
624 tmp = gen_cmp(offrel, offset + size - 4, BPF_W, w);
634 tmp = gen_cmp(offrel, offset + size - 2, BPF_H, w);
641 tmp = gen_cmp(offrel, offset, BPF_B, (bpf_int32)v[0]);
1551 b1 = gen_cmp(OR_LINK, off_linktype + 2, BPF_H, (bpf_int32)
1589 b0 = gen_cmp(OR_LINK, off_linktype + 2, BPF_B,
1591 b1 = gen_cmp(OR_LINK, off_linktype + 2, BPF_H,
1622 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H,
1664 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, (bpf_int32)proto);
1681 b1 = gen_cmp(OR_LINK, off_linktype + 2, BPF_B,
1695 return gen_cmp(OR_LINK, off_linktype, BPF_H,
1732 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, LINUX_SLL_P_802_2);
1733 b1 = gen_cmp(OR_LINK, off_linktype + 2, BPF_H, (bpf_int32)
1764 b0 = gen_cmp(OR_LINK, off_linktype + 2, BPF_B,
1769 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, LINUX_SLL_P_802_2);
1776 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, LINUX_SLL_P_802_3);
1784 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H,
1801 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, LINUX_SLL_P_802_2);
1827 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, (bpf_int32)proto);
1841 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H,
1843 b1 = gen_cmp(OR_LINK, off_linktype + 2, BPF_B,
1857 return gen_cmp(OR_LINK, off_linktype, BPF_H,
2175 return gen_cmp(OR_LINK, off_linktype, BPF_H,
2210 b0 = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS, BPF_H,
2324 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, PPP_IP);
2325 b1 = gen_cmp(OR_LINK, off_linktype, BPF_H, PPP_VJC);
2327 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, PPP_VJNC);
2433 return (gen_cmp(OR_LINK, 0, BPF_W, (bpf_int32)proto));
2442 return (gen_cmp(OR_LINK, offsetof(struct pfloghdr, af),
2446 return (gen_cmp(OR_LINK, offsetof(struct pfloghdr, af),
2468 return (gen_cmp(OR_LINK, off_linktype, BPF_B,
2473 b0 = gen_cmp(OR_LINK, off_linktype, BPF_B,
2475 b1 = gen_cmp(OR_LINK, off_linktype, BPF_B,
2481 b0 = gen_cmp(OR_LINK, off_linktype, BPF_B,
2483 b1 = gen_cmp(OR_LINK, off_linktype, BPF_B,
2489 return (gen_cmp(OR_LINK, off_linktype, BPF_B,
2493 return (gen_cmp(OR_LINK, off_linktype, BPF_B,
2520 return gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | 0xcc);
2527 return gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | 0x8e);
2542 b0 = gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | ISO8473_CLNP);
2543 b1 = gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | ISO9542_ESIS);
2544 b2 = gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | ISO10589_ISIS);
2612 return gen_cmp(OR_LINK, off_linktype, BPF_H, (bpf_int32)proto);
2671 return gen_cmp(OR_LINK, off_linktype, BPF_H, (bpf_u_int32)
2679 return gen_cmp(OR_LINK, off_linktype, BPF_B,
2704 return gen_cmp(OR_LINK, off_linktype, BPF_B,
2727 return gen_cmp(OR_LINK, off_linktype+6, BPF_H,
3330 b1 = gen_cmp(OR_NET, 2 + 1 + offset_lh,
3335 b2 = gen_cmp(OR_NET, 2 + offset_lh, BPF_H, (bpf_int32)ntohs((u_short)addr));
3341 b2 = gen_cmp(OR_NET, 2 + 1 + offset_sh, BPF_H, (bpf_int32)ntohs((u_short)addr));
3346 b2 = gen_cmp(OR_NET, 2 + offset_sh, BPF_H, (bpf_int32)ntohs((u_short)addr));
3679 b1 = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS, BPF_H,
3990 return gen_cmp(OR_TRAN_IPV4, off, BPF_H, v);
3999 return gen_cmp(OR_TRAN_IPV6, off, BPF_H, v);
4010 tmp = gen_cmp(OR_NET, 9, BPF_B, (bpf_int32)proto);
4101 b0 = gen_cmp(OR_NET, 6, BPF_B, (bpf_int32)proto);
4203 tmp = gen_cmp(OR_NET, 9, BPF_B, (bpf_int32)proto);
4306 b0 = gen_cmp(OR_NET, 6, BPF_B, (bpf_int32)proto);
4784 b1 = gen_cmp(OR_NET, 9, BPF_B, (bpf_int32)v);
4813 return gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | v);
4824 b1 = gen_cmp(OR_NET_NOSNAP, 1, BPF_B, (long)v);
4830 b1 = gen_cmp(OR_NET_NOSNAP, 0, BPF_B, (long)v);
4841 b1 = gen_cmp(OR_NET_NOSNAP, 4, BPF_B, (long)v);
4916 b1 = gen_cmp(OR_NET, 6, BPF_B, (bpf_int32)v);
5052 tmp = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS,
5510 tmp = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS, BPF_H,
6034 return gen_cmp(OR_LINK, (u_int)idx, BPF_B, (bpf_int32)val);
6099 b1 = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS, BPF_H,
6307 b1 = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS, BPF_H,
6332 b1 = gen_cmp(OR_NET, 24, BPF_B, (bpf_int32)255);
6369 b0 = gen_cmp(OR_LINK, 0, BPF_H, LINUX_SLL_OUTGOING);
6381 b0 = gen_cmp(OR_LINK, 0, BPF_H, LINUX_SLL_HOST);
6387 b0 = gen_cmp(OR_LINK, offsetof(struct pfloghdr, dir), BPF_B,
6395 b0 = gen_cmp(OR_LINK, 0, BPF_B, PPP_PPPD_OUT);
6398 b0 = gen_cmp(OR_LINK, 0, BPF_B, PPP_PPPD_IN);
6489 b0 = gen_cmp(OR_LINK, offsetof(struct pfloghdr, rulenr), BPF_W,
6510 b0 = gen_cmp(OR_LINK, offsetof(struct pfloghdr, subrulenr), BPF_W,
6522 b0 = gen_cmp(OR_LINK, offsetof(struct pfloghdr, reason), BPF_B,
6539 b0 = gen_cmp(OR_LINK, offsetof(struct pfloghdr, action), BPF_B,
6705 b0 = gen_cmp(OR_LINK, orig_linktype, BPF_H, (bpf_int32)ETHERTYPE_8021Q);