Lines Matching refs:ll_proto

1963 gen_ether_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto)  in gen_ether_linktype()  argument
1967 switch (ll_proto) { in gen_ether_linktype()
1986 b1 = gen_cmp(cstate, OR_LLC, 0, BPF_H, (ll_proto << 8) | ll_proto); in gen_ether_linktype()
2084 if (ll_proto == ETHERTYPE_ATALK) in gen_ether_linktype()
2095 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, ll_proto); in gen_ether_linktype()
2101 if (ll_proto <= ETHERMTU) { in gen_ether_linktype()
2112 b1 = gen_cmp(cstate, OR_LINKTYPE, 2, BPF_B, ll_proto); in gen_ether_linktype()
2125 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, ll_proto); in gen_ether_linktype()
2131 gen_loopback_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_loopback_linktype() argument
2159 ll_proto = SWAPLONG(ll_proto); in gen_loopback_linktype()
2160 ll_proto = htonl(ll_proto); in gen_loopback_linktype()
2162 return (gen_cmp(cstate, OR_LINKHDR, 0, BPF_W, ll_proto)); in gen_loopback_linktype()
2170 gen_ipnet_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_ipnet_linktype() argument
2172 switch (ll_proto) { in gen_ipnet_linktype()
2198 gen_linux_sll_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_linux_sll_linktype() argument
2202 switch (ll_proto) { in gen_linux_sll_linktype()
2220 b1 = gen_cmp(cstate, OR_LLC, 0, BPF_H, (ll_proto << 8) | ll_proto); in gen_linux_sll_linktype()
2297 if (ll_proto == ETHERTYPE_ATALK) in gen_linux_sll_linktype()
2308 b0 = gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, ll_proto); in gen_linux_sll_linktype()
2314 if (ll_proto <= ETHERMTU) { in gen_linux_sll_linktype()
2324 ll_proto); in gen_linux_sll_linktype()
2337 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, ll_proto); in gen_linux_sll_linktype()
3096 ethertype_to_ppptype(bpf_u_int32 ll_proto) in ethertype_to_ppptype() argument
3098 switch (ll_proto) { in ethertype_to_ppptype()
3101 ll_proto = PPP_IP; in ethertype_to_ppptype()
3105 ll_proto = PPP_IPV6; in ethertype_to_ppptype()
3109 ll_proto = PPP_DECNET; in ethertype_to_ppptype()
3113 ll_proto = PPP_APPLE; in ethertype_to_ppptype()
3117 ll_proto = PPP_NS; in ethertype_to_ppptype()
3121 ll_proto = PPP_OSI; in ethertype_to_ppptype()
3130 ll_proto = PPP_BRPDU; in ethertype_to_ppptype()
3134 ll_proto = PPP_IPX; in ethertype_to_ppptype()
3137 return (ll_proto); in ethertype_to_ppptype()
3193 gen_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_linktype() argument
3200 return gen_mpls_linktype(cstate, ll_proto); in gen_linktype()
3214 b1 = gen_ether_linktype(cstate, ll_proto); in gen_linktype()
3222 switch (ll_proto) { in gen_linktype()
3225 ll_proto = (ll_proto << 8 | LLCSAP_ISONS); in gen_linktype()
3229 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, ll_proto); in gen_linktype()
3246 b1 = gen_llc_linktype(cstate, ll_proto); in gen_linktype()
3255 return gen_llc_linktype(cstate, ll_proto); in gen_linktype()
3262 return gen_llc_linktype(cstate, ll_proto); in gen_linktype()
3268 return gen_llc_linktype(cstate, ll_proto); in gen_linktype()
3280 b1 = gen_llc_linktype(cstate, ll_proto); in gen_linktype()
3286 return gen_linux_sll_linktype(cstate, ll_proto); in gen_linktype()
3299 switch (ll_proto) { in gen_linktype()
3318 if (ll_proto == ETHERTYPE_IP) in gen_linktype()
3329 if (ll_proto == ETHERTYPE_IPV6) in gen_linktype()
3345 ethertype_to_ppptype(ll_proto)); in gen_linktype()
3353 switch (ll_proto) { in gen_linktype()
3369 ethertype_to_ppptype(ll_proto)); in gen_linktype()
3376 switch (ll_proto) { in gen_linktype()
3456 if (ll_proto == ETHERTYPE_IP) in gen_linktype()
3459 else if (ll_proto == ETHERTYPE_IPV6) in gen_linktype()
3472 switch (ll_proto) { in gen_linktype()
3508 switch (ll_proto) { in gen_linktype()
3521 switch (ll_proto) { in gen_linktype()
3598 return gen_ipnet_linktype(cstate, ll_proto); in gen_linktype()
3676 return gen_cmp(cstate, OR_LINKTYPE, 0, BPF_H, ll_proto); in gen_linktype()
3947 gen_llc_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_llc_linktype() argument
3952 switch (ll_proto) { in gen_llc_linktype()
3963 ((ll_proto << 8) | ll_proto)); in gen_llc_linktype()
3989 if (ll_proto <= ETHERMTU) { in gen_llc_linktype()
3994 return gen_cmp(cstate, OR_LLC, 0, BPF_B, ll_proto); in gen_llc_linktype()
4015 return gen_cmp(cstate, OR_LLC, 6, BPF_H, ll_proto); in gen_llc_linktype()
4022 int dir, bpf_u_int32 ll_proto, u_int src_off, u_int dst_off) in gen_hostop() argument
4038 b0 = gen_hostop(cstate, addr, mask, Q_SRC, ll_proto, src_off, dst_off); in gen_hostop()
4039 b1 = gen_hostop(cstate, addr, mask, Q_DST, ll_proto, src_off, dst_off); in gen_hostop()
4045 b0 = gen_hostop(cstate, addr, mask, Q_SRC, ll_proto, src_off, dst_off); in gen_hostop()
4046 b1 = gen_hostop(cstate, addr, mask, Q_DST, ll_proto, src_off, dst_off); in gen_hostop()
4078 b0 = gen_linktype(cstate, ll_proto); in gen_hostop()
4087 struct in6_addr *mask, int dir, bpf_u_int32 ll_proto, u_int src_off, in gen_hostop6() argument
4114 b0 = gen_hostop6(cstate, addr, mask, Q_SRC, ll_proto, src_off, dst_off); in gen_hostop6()
4115 b1 = gen_hostop6(cstate, addr, mask, Q_DST, ll_proto, src_off, dst_off); in gen_hostop6()
4121 b0 = gen_hostop6(cstate, addr, mask, Q_SRC, ll_proto, src_off, dst_off); in gen_hostop6()
4122 b1 = gen_hostop6(cstate, addr, mask, Q_DST, ll_proto, src_off, dst_off); in gen_hostop6()
4164 b0 = gen_linktype(cstate, ll_proto); in gen_hostop6()
4936 gen_mpls_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_mpls_linktype() argument
4940 switch (ll_proto) { in gen_mpls_linktype()