Home
last modified time | relevance | path

Searched refs:bpf_skb_load_bytes (Results 1 – 22 of 22) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_raw_stack.c41 : __imm(bpf_skb_load_bytes) in skb_load_bytes_negative_len()
60 : __imm(bpf_skb_load_bytes), in load_bytes_negative_len_2()
80 : __imm(bpf_skb_load_bytes) in skb_load_bytes_zero_len()
99 : __imm(bpf_skb_load_bytes) in skb_load_bytes_no_init()
120 : __imm(bpf_skb_load_bytes) in stack_skb_load_bytes_init()
145 : __imm(bpf_skb_load_bytes), in bytes_spilled_regs_around_bounds()
169 : __imm(bpf_skb_load_bytes), in __flag()
200 : __imm(bpf_skb_load_bytes), in __flag()
231 : __imm(bpf_skb_load_bytes), in load_bytes_spilled_regs_data()
252 : __imm(bpf_skb_load_bytes) in load_bytes_invalid_access_1()
[all …]
H A Dtest_tc_tunnel.c120 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph6_inner, in __encap_ipv4()
137 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, in __encap_ipv4()
148 if (bpf_skb_load_bytes(skb, ETH_HLEN + tcp_off, in __encap_ipv4()
218 if (bpf_skb_load_bytes(skb, 0, l2_hdr, ETH_HLEN)) in __encap_ipv4()
246 if (bpf_skb_load_bytes(skb, 0, &eth, sizeof(eth)) < 0) in __encap_ipv4()
274 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, in __encap_ipv6()
279 if (bpf_skb_load_bytes(skb, ETH_HLEN + sizeof(iph_inner), in __encap_ipv6()
348 if (bpf_skb_load_bytes(skb, 0, l2_hdr, ETH_HLEN)) in __encap_ipv6()
382 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, in encap_ipv6_ipip6()
387 if (bpf_skb_load_bytes(skb, ETH_HLEN + (iph_inner.ihl << 2), in encap_ipv6_ipip6()
[all …]
H A Ddecap_sanity.c42 if (bpf_skb_load_bytes(skb, ETH_HLEN, &ip6h, sizeof(ip6h))) in decap_sanity()
48 if (bpf_skb_load_bytes(skb, ETH_HLEN + sizeof(ip6h), &udph, sizeof(udph))) in decap_sanity()
H A Dcgroup_skb_sk_lookup_kern.c79 if (bpf_skb_load_bytes(skb, 0, &ip6h, sizeof(ip6h))) in ingress_lookup()
85 if (bpf_skb_load_bytes(skb, sizeof(ip6h), &tcph, sizeof(tcph))) in ingress_lookup()
H A Dtest_lwt_seg6local.c146 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
240 err = bpf_skb_load_bytes(skb, tlv_off, &tlv, sizeof(tlv)); in delete_tlv()
267 if (bpf_skb_load_bytes(skb, tlv_offset, &tlv, sizeof(struct sr6_tlv_t))) in has_egr_tlv()
273 if (bpf_skb_load_bytes(skb, tlv_offset + 4, &egr_addr, 16)) in has_egr_tlv()
H A Dcrypto_sanity.c29 if (bpf_skb_load_bytes(skb, ETH_HLEN, &ip6h, sizeof(ip6h))) in skb_dynptr_validate()
35 if (bpf_skb_load_bytes(skb, ETH_HLEN + sizeof(ip6h), &udph, sizeof(udph))) in skb_dynptr_validate()
H A Dtest_select_reuseport_kern.c122 if (bpf_skb_load_bytes(reuse_md, th->doff << 2, &cmd_copy, in _select_by_skb_data()
138 if (bpf_skb_load_bytes(reuse_md, sizeof(struct udphdr), in _select_by_skb_data()
H A Dcgroup_tcp_skb.c31 if (bpf_skb_load_bytes(skb, 0, &ip6h, sizeof(ip6h))) in needed_tcp_pkt()
37 if (bpf_skb_load_bytes(skb, sizeof(ip6h), tcph, sizeof(*tcph))) in needed_tcp_pkt()
H A Dskb_load_bytes.c16 test_result = bpf_skb_load_bytes(skb, load_offset, buf, 10); in skb_process()
H A Dverifier_array_access.c420 call %[bpf_skb_load_bytes]; \ in a_read_only_array_2_2()
424 __imm(bpf_skb_load_bytes), in a_read_only_array_2_2()
470 call %[bpf_skb_load_bytes]; \ in a_write_only_array_2_1()
474 __imm(bpf_skb_load_bytes), in a_write_only_array_2_1()
H A Dtest_tc_link.c38 if (bpf_skb_load_bytes(skb, 0, &eth, sizeof(eth))) in tc2()
96 if (bpf_skb_load_bytes(skb, 0, &eth, sizeof(eth)))
H A Dfexit_bpf2bpf.c133 if (bpf_skb_load_bytes(skb, 14, &ip6, sizeof(ip6)) < 0) in new_get_skb_ifindex()
H A Dverifier_bounds_mix_sign_unsign.c237 __imm(bpf_skb_load_bytes) in signed_and_unsigned_variant_6()
H A Dtest_cls_redirect.c160 if (bpf_skb_load_bytes(buf->skb, buf_off(buf), dst, len)) { in buf_copy()
427 rc = bpf_skb_load_bytes( in forward_with_gre()
452 rc = bpf_skb_load_bytes( in forward_with_gre()
H A Dtest_seg6_loop.c149 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
H A Dverifier_helper_packet_access.c301 : __imm(bpf_skb_load_bytes), in test12_cls_unsuitable_helper_2()
H A Dtest_cls_redirect_dynptr.c321 rc = bpf_skb_load_bytes( in forward_with_gre()
346 rc = bpf_skb_load_bytes( in forward_with_gre()
H A Dbpf_flow.c109 if (bpf_skb_load_bytes(skb, thoff, buffer, hdr_size)) in bpf_flow_dissect_get_header()
/linux/samples/bpf/
H A Dtest_lwt_bpf.c90 ret = bpf_skb_load_bytes(skb, IP_PROTO_OFF, &proto, 1); in rewrite()
146 ret = bpf_skb_load_bytes(skb, IP_DST_OFF, &old_ip, 4); in do_test_rewrite()
H A Dhbm_kern.h116 bpf_skb_load_bytes(skb, 0, &iph, 12); in hbm_get_pkt_info()
/linux/Documentation/bpf/
H A Dmap_array.rst128 if (bpf_skb_load_bytes(skb, ETH_HLEN, &ip, sizeof(ip)) < 0)
/linux/net/core/
H A Dfilter.c1737 BPF_CALL_4(bpf_skb_load_bytes, const struct sk_buff *, skb, u32, offset, in BPF_CALL_4() argument
1758 .func = bpf_skb_load_bytes,