Lines Matching refs:gen_cmp

221 static struct block *gen_cmp(enum e_offrel, u_int, u_int, bpf_int32);
641 gen_cmp(offrel, offset, size, v) in gen_cmp() function
709 tmp = gen_cmp(offrel, offset + size - 4, BPF_W, w);
719 tmp = gen_cmp(offrel, offset + size - 2, BPF_H, w);
726 tmp = gen_cmp(offrel, offset, BPF_B, (bpf_int32)v[0]);
1762 b1 = gen_cmp(OR_MACPL, 0, BPF_H, (bpf_int32)
1800 b0 = gen_cmp(OR_MACPL, 0, BPF_B, (bpf_int32)LLCSAP_IPX);
1801 b1 = gen_cmp(OR_MACPL, 0, BPF_H, (bpf_int32)0xFFFF);
1831 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H,
1873 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, (bpf_int32)proto);
1890 b1 = gen_cmp(OR_LINK, off_linktype + 2, BPF_B,
1904 return gen_cmp(OR_LINK, off_linktype, BPF_H,
1921 return gen_cmp(OR_LINK, off_linktype, BPF_B,
1926 return gen_cmp(OR_LINK, off_linktype, BPF_B,
1968 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, LINUX_SLL_P_802_2);
1969 b1 = gen_cmp(OR_MACPL, 0, BPF_H, (bpf_int32)
2000 b0 = gen_cmp(OR_MACPL, 0, BPF_B, (bpf_int32)LLCSAP_IPX);
2003 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, LINUX_SLL_P_802_2);
2010 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, LINUX_SLL_P_802_3);
2018 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H,
2035 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, LINUX_SLL_P_802_2);
2059 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, (bpf_int32)proto);
2073 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H,
2075 b1 = gen_cmp(OR_LINK, off_macpl, BPF_B,
2089 return gen_cmp(OR_LINK, off_linktype, BPF_H,
2940 return gen_cmp(OR_MACPL, off_linktype, BPF_H, (bpf_int32)proto);
2960 return gen_cmp(OR_LINK, off_linktype, BPF_H,
3023 b0 = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS, BPF_H,
3110 return gen_cmp(OR_LINK, off_linktype, BPF_H, (bpf_int32)proto);
3126 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, PPP_IP);
3127 b1 = gen_cmp(OR_LINK, off_linktype, BPF_H, PPP_VJC);
3129 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H, PPP_VJNC);
3135 return gen_cmp(OR_LINK, off_linktype, BPF_H,
3204 return (gen_cmp(OR_LINK, 0, BPF_W, (bpf_int32)proto));
3213 return (gen_cmp(OR_LINK, offsetof(struct pfloghdr, af),
3216 return (gen_cmp(OR_LINK, offsetof(struct pfloghdr, af),
3236 return (gen_cmp(OR_LINK, off_linktype, BPF_B,
3240 b0 = gen_cmp(OR_LINK, off_linktype, BPF_B,
3242 b1 = gen_cmp(OR_LINK, off_linktype, BPF_B,
3248 b0 = gen_cmp(OR_LINK, off_linktype, BPF_B,
3250 b1 = gen_cmp(OR_LINK, off_linktype, BPF_B,
3256 return (gen_cmp(OR_LINK, off_linktype, BPF_B,
3260 return (gen_cmp(OR_LINK, off_linktype, BPF_B,
3287 return gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | 0xcc);
3293 return gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | 0x8e);
3307 b0 = gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | ISO8473_CLNP);
3308 b1 = gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | ISO9542_ESIS);
3309 b2 = gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | ISO10589_ISIS);
3432 return gen_cmp(OR_LINK, off_linktype, BPF_H, (bpf_int32)proto);
3490 return gen_cmp(OR_MACPL, 0, BPF_H, (bpf_u_int32)
3498 return gen_cmp(OR_MACPL, 0, BPF_B,
3523 return gen_cmp(OR_MACPL, 0, BPF_B, (bpf_int32)proto);
3544 return gen_cmp(OR_MACPL, 6, BPF_H, (bpf_int32)proto);
4365 b1 = gen_cmp(OR_NET, 2 + 1 + offset_lh,
4370 b2 = gen_cmp(OR_NET, 2 + offset_lh, BPF_H, (bpf_int32)ntohs((u_short)addr));
4376 b2 = gen_cmp(OR_NET, 2 + 1 + offset_sh, BPF_H, (bpf_int32)ntohs((u_short)addr));
4381 b2 = gen_cmp(OR_NET, 2 + offset_sh, BPF_H, (bpf_int32)ntohs((u_short)addr));
4725 b1 = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS,
5029 return gen_cmp(OR_TRAN_IPV4, off, BPF_H, v);
5037 return gen_cmp(OR_TRAN_IPV6, off, BPF_H, v);
5047 tmp = gen_cmp(OR_NET, 9, BPF_B, (bpf_int32)proto);
5138 b0 = gen_cmp(OR_NET, 6, BPF_B, (bpf_int32)proto);
5239 tmp = gen_cmp(OR_NET, 9, BPF_B, (bpf_int32)proto);
5342 b0 = gen_cmp(OR_NET, 6, BPF_B, (bpf_int32)proto);
5837 b1 = gen_cmp(OR_NET, 9, BPF_B, (bpf_int32)v);
5866 return gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | v);
5877 b1 = gen_cmp(OR_NET_NOSNAP, 1, BPF_B, (long)v);
5883 b1 = gen_cmp(OR_NET_NOSNAP, 0, BPF_B, (long)v);
5894 b1 = gen_cmp(OR_NET_NOSNAP, 4, BPF_B, (long)v);
5976 b2 = gen_cmp(OR_NET, 6, BPF_B, IPPROTO_FRAGMENT);
5977 b1 = gen_cmp(OR_NET, 40, BPF_B, (bpf_int32)v);
5979 b2 = gen_cmp(OR_NET, 6, BPF_B, (bpf_int32)v);
6117 tmp = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS,
6583 tmp = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS, BPF_H,
7118 return gen_cmp(OR_LINK, (u_int)idx, BPF_B, (bpf_int32)val);
7185 b1 = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS,
7402 b1 = gen_cmp(OR_LINK, SUNATM_PKT_BEGIN_POS,
7426 b1 = gen_cmp(OR_NET, 24, BPF_B, (bpf_int32)255);
7464 b0 = gen_cmp(OR_LINK, 2, BPF_H, IPNET_OUTBOUND);
7467 b0 = gen_cmp(OR_LINK, 2, BPF_H, IPNET_INBOUND);
7473 b0 = gen_cmp(OR_LINK, 0, BPF_H, LINUX_SLL_OUTGOING);
7482 b0 = gen_cmp(OR_LINK, offsetof(struct pfloghdr, dir), BPF_B,
7490 b0 = gen_cmp(OR_LINK, 0, BPF_B, PPP_PPPD_OUT);
7493 b0 = gen_cmp(OR_LINK, 0, BPF_B, PPP_PPPD_IN);
7552 b0 = gen_cmp(OR_LINK, SKF_AD_OFF + SKF_AD_PKTTYPE, BPF_H,
7624 b0 = gen_cmp(OR_LINK, offsetof(struct pfloghdr, rulenr), BPF_W, in gen_pf_rnr()
7640 b0 = gen_cmp(OR_LINK, offsetof(struct pfloghdr, subrulenr), BPF_W, in gen_pf_srnr()
7656 b0 = gen_cmp(OR_LINK, offsetof(struct pfloghdr, reason), BPF_B, in gen_pf_reason()
7672 b0 = gen_cmp(OR_LINK, offsetof(struct pfloghdr, action), BPF_B, in gen_pf_action()
7909 b0 = gen_cmp(OR_LINK, off_linktype, BPF_H,
7911 b1 = gen_cmp(OR_LINK, off_linktype, BPF_H,