• Home
  • Raw
  • Download

Lines Matching refs:gen_cmp

467 static struct block *gen_cmp(compiler_state_t *, enum e_offrel, u_int,
918 gen_cmp(compiler_state_t *cstate, enum e_offrel offrel, u_int offset, in gen_cmp() function
971 tmp = gen_cmp(cstate, offrel, offset + size - 4, BPF_W, w); in gen_bcmp()
981 tmp = gen_cmp(cstate, offrel, offset + size - 2, BPF_H, w); in gen_bcmp()
988 tmp = gen_cmp(cstate, offrel, offset, BPF_B, (bpf_int32)v[0]); in gen_bcmp()
1851 b1 = gen_cmp(cstate, OR_LLC, 0, BPF_H, (bpf_int32) in gen_ether_linktype()
1889 b0 = gen_cmp(cstate, OR_LLC, 0, BPF_B, (bpf_int32)LLCSAP_IPX); in gen_ether_linktype()
1890 b1 = gen_cmp(cstate, OR_LLC, 0, BPF_H, (bpf_int32)0xFFFF); in gen_ether_linktype()
1920 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, (bpf_int32)ETHERTYPE_IPX); in gen_ether_linktype()
1961 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, (bpf_int32)proto); in gen_ether_linktype()
1978 b1 = gen_cmp(cstate, OR_LINKTYPE, 2, BPF_B, (bpf_int32)proto); in gen_ether_linktype()
1991 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, in gen_ether_linktype()
2029 return (gen_cmp(cstate, OR_LINKHDR, 0, BPF_W, (bpf_int32)proto)); in gen_loopback_linktype()
2042 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_B, (bpf_int32)IPH_AF_INET); in gen_ipnet_linktype()
2046 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_B, in gen_ipnet_linktype()
2087 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, LINUX_SLL_P_802_2); in gen_linux_sll_linktype()
2088 b1 = gen_cmp(cstate, OR_LLC, 0, BPF_H, (bpf_int32) in gen_linux_sll_linktype()
2119 b0 = gen_cmp(cstate, OR_LLC, 0, BPF_B, (bpf_int32)LLCSAP_IPX); in gen_linux_sll_linktype()
2122 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, LINUX_SLL_P_802_2); in gen_linux_sll_linktype()
2129 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, LINUX_SLL_P_802_3); in gen_linux_sll_linktype()
2137 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, (bpf_int32)ETHERTYPE_IPX); in gen_linux_sll_linktype()
2153 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, LINUX_SLL_P_802_2); in gen_linux_sll_linktype()
2177 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, (bpf_int32)proto); in gen_linux_sll_linktype()
2191 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, LINUX_SLL_P_802_2); in gen_linux_sll_linktype()
2192 b1 = gen_cmp(cstate, OR_LINKHDR, cstate->off_linkpl.constant_part, BPF_B, in gen_linux_sll_linktype()
2206 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, (bpf_int32)proto); in gen_linux_sll_linktype()
2955 b0 = gen_cmp(cstate, OR_PREVLINKHDR, SUNATM_PKT_BEGIN_POS, BPF_H, 0xFF00); in gen_prevlinkhdr_check()
3035 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, (bpf_int32)proto); in gen_linktype()
3162 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, (bpf_int32)proto); in gen_linktype()
3178 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, PPP_IP); in gen_linktype()
3179 b1 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, PPP_VJC); in gen_linktype()
3181 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, PPP_VJNC); in gen_linktype()
3187 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, in gen_linktype()
3278 return (gen_cmp(cstate, OR_LINKHDR, offsetof(struct pfloghdr, af), in gen_linktype()
3281 return (gen_cmp(cstate, OR_LINKHDR, offsetof(struct pfloghdr, af), in gen_linktype()
3301 return (gen_cmp(cstate, OR_LINKTYPE, 0, BPF_B, in gen_linktype()
3305 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_B, in gen_linktype()
3307 b1 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_B, in gen_linktype()
3313 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_B, in gen_linktype()
3315 b1 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_B, in gen_linktype()
3321 return (gen_cmp(cstate, OR_LINKTYPE, 0, BPF_B, in gen_linktype()
3325 return (gen_cmp(cstate, OR_LINKTYPE, 0, BPF_B, in gen_linktype()
3352 return gen_cmp(cstate, OR_LINKHDR, 2, BPF_H, (0x03<<8) | 0xcc); in gen_linktype()
3358 return gen_cmp(cstate, OR_LINKHDR, 2, BPF_H, (0x03<<8) | 0x8e); in gen_linktype()
3372 b0 = gen_cmp(cstate, OR_LINKHDR, 2, BPF_H, (0x03<<8) | ISO8473_CLNP); in gen_linktype()
3373 b1 = gen_cmp(cstate, OR_LINKHDR, 2, BPF_H, (0x03<<8) | ISO9542_ESIS); in gen_linktype()
3374 b2 = gen_cmp(cstate, OR_LINKHDR, 2, BPF_H, (0x03<<8) | ISO10589_ISIS); in gen_linktype()
3500 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, (bpf_int32)proto); in gen_linktype()
3563 b1 = gen_cmp(cstate, OR_LLC, 0, BPF_H, (bpf_int32)0xFFFF); in gen_llc()
3741 return gen_cmp(cstate, OR_LLC, 0, BPF_H, (bpf_u_int32) in gen_llc_linktype()
3749 return gen_cmp(cstate, OR_LLC, 0, BPF_B, in gen_llc_linktype()
3774 return gen_cmp(cstate, OR_LLC, 0, BPF_B, (bpf_int32)proto); in gen_llc_linktype()
3795 return gen_cmp(cstate, OR_LLC, 6, BPF_H, (bpf_int32)proto); in gen_llc_linktype()
4598 b1 = gen_cmp(cstate, OR_LINKPL, 2 + 1 + offset_lh, in gen_dnhostop()
4603 b2 = gen_cmp(cstate, OR_LINKPL, 2 + offset_lh, BPF_H, (bpf_int32)ntohs((u_short)addr)); in gen_dnhostop()
4609 b2 = gen_cmp(cstate, OR_LINKPL, 2 + 1 + offset_sh, BPF_H, (bpf_int32)ntohs((u_short)addr)); in gen_dnhostop()
4614 b2 = gen_cmp(cstate, OR_LINKPL, 2 + offset_sh, BPF_H, (bpf_int32)ntohs((u_short)addr)); in gen_dnhostop()
5243 return gen_cmp(cstate, OR_TRAN_IPV4, off, BPF_H, v); in gen_portatom()
5249 return gen_cmp(cstate, OR_TRAN_IPV6, off, BPF_H, v); in gen_portatom6()
5258 tmp = gen_cmp(cstate, OR_LINKPL, 9, BPF_B, (bpf_int32)proto); in gen_portop()
5345 b0 = gen_cmp(cstate, OR_LINKPL, 6, BPF_B, (bpf_int32)proto); in gen_portop6()
5440 tmp = gen_cmp(cstate, OR_LINKPL, 9, BPF_B, (bpf_int32)proto); in gen_portrangeop()
5538 b0 = gen_cmp(cstate, OR_LINKPL, 6, BPF_B, (bpf_int32)proto); in gen_portrangeop6()
6016 b1 = gen_cmp(cstate, OR_LINKPL, 9, BPF_B, (bpf_int32)v); in gen_proto()
6045 return gen_cmp(cstate, OR_LINKHDR, 2, BPF_H, (0x03<<8) | v); in gen_proto()
6056 b1 = gen_cmp(cstate, OR_LINKPL_NOSNAP, 1, BPF_B, (long)v); in gen_proto()
6062 b1 = gen_cmp(cstate, OR_LINKPL_NOSNAP, 0, BPF_B, (long)v); in gen_proto()
6073 b1 = gen_cmp(cstate, OR_LINKPL_NOSNAP, 4, BPF_B, (long)v); in gen_proto()
6155 b2 = gen_cmp(cstate, OR_LINKPL, 6, BPF_B, IPPROTO_FRAGMENT); in gen_proto()
6156 b1 = gen_cmp(cstate, OR_LINKPL, 40, BPF_B, (bpf_int32)v); in gen_proto()
6158 b2 = gen_cmp(cstate, OR_LINKPL, 6, BPF_B, (bpf_int32)v); in gen_proto()
7247 return gen_cmp(cstate, OR_LINKHDR, (u_int)idx, BPF_B, (bpf_int32)val); in gen_byteop()
7524 b1 = gen_cmp(cstate, OR_LINKPL, 24, BPF_B, (bpf_int32)255); in gen_multicast()
7561 b0 = gen_cmp(cstate, OR_LINKHDR, 2, BPF_H, IPNET_OUTBOUND); in gen_inbound()
7564 b0 = gen_cmp(cstate, OR_LINKHDR, 2, BPF_H, IPNET_INBOUND); in gen_inbound()
7570 b0 = gen_cmp(cstate, OR_LINKHDR, 0, BPF_H, LINUX_SLL_OUTGOING); in gen_inbound()
7579 b0 = gen_cmp(cstate, OR_LINKHDR, offsetof(struct pfloghdr, dir), BPF_B, in gen_inbound()
7587 b0 = gen_cmp(cstate, OR_LINKHDR, 0, BPF_B, PPP_PPPD_OUT); in gen_inbound()
7590 b0 = gen_cmp(cstate, OR_LINKHDR, 0, BPF_B, PPP_PPPD_IN); in gen_inbound()
7649 b0 = gen_cmp(cstate, OR_LINKHDR, SKF_AD_OFF + SKF_AD_PKTTYPE, BPF_H, in gen_inbound()
7721 b0 = gen_cmp(cstate, OR_LINKHDR, offsetof(struct pfloghdr, rulenr), BPF_W, in gen_pf_rnr()
7737 b0 = gen_cmp(cstate, OR_LINKHDR, offsetof(struct pfloghdr, subrulenr), BPF_W, in gen_pf_srnr()
7753 b0 = gen_cmp(cstate, OR_LINKHDR, offsetof(struct pfloghdr, reason), BPF_B, in gen_pf_reason()
7769 b0 = gen_cmp(cstate, OR_LINKHDR, offsetof(struct pfloghdr, action), BPF_B, in gen_pf_action()