/linux/samples/bpf/ |
H A D | test_lwt_bpf.c | 127 ret = bpf_skb_store_bytes(skb, IP_DST_OFF, &new_ip, sizeof(new_ip), 0); in rewrite() 129 ret = bpf_skb_store_bytes(skb, IP_SRC_OFF, &new_ip, sizeof(new_ip), 0); in rewrite() 175 ret = bpf_skb_store_bytes(skb, 0, &ehdr, sizeof(ehdr), 0); in __do_push_ll_and_redirect() 206 bpf_skb_store_bytes(skb, 0, &f, sizeof(f), 0); in __fill_garbage() 207 bpf_skb_store_bytes(skb, 8, &f, sizeof(f), 0); in __fill_garbage() 208 bpf_skb_store_bytes(skb, 16, &f, sizeof(f), 0); in __fill_garbage() 209 bpf_skb_store_bytes(skb, 24, &f, sizeof(f), 0); in __fill_garbage() 210 bpf_skb_store_bytes(skb, 32, &f, sizeof(f), 0); in __fill_garbage() 211 bpf_skb_store_bytes(skb, 40, &f, sizeof(f), 0); in __fill_garbage() 212 bpf_skb_store_bytes(skb, 48, &f, sizeof(f), 0); in __fill_garbage() [all …]
|
H A D | tcbpf1_kern.c | 18 bpf_skb_store_bytes(skb, 0, mac, ETH_ALEN, 1); in set_dst_mac() 29 bpf_skb_store_bytes(skb, TOS_OFF, &new_tos, sizeof(new_tos), 0); in set_ip_tos() 43 bpf_skb_store_bytes(skb, IP_SRC_OFF, &new_ip, sizeof(new_ip), 0); in set_tcp_ip_src() 52 bpf_skb_store_bytes(skb, TCP_DPORT_OFF, &new_port, sizeof(new_port), 0); in set_tcp_dest_port()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_peer.c | 51 if (bpf_skb_store_bytes(skb, 0, &src_mac, ETH_ALEN, 0) != 0) in tc_src_l3() 54 if (bpf_skb_store_bytes(skb, ETH_ALEN, &dst_mac, ETH_ALEN, 0) != 0) in tc_src_l3() 57 if (bpf_skb_store_bytes(skb, ETH_ALEN + ETH_ALEN, &proto, sizeof(__u16), 0) != 0) in tc_src_l3()
|
H A D | test_tc_neigh.c | 105 if (bpf_skb_store_bytes(skb, 0, &zero, sizeof(zero), 0) < 0) in tc_dst() 130 if (bpf_skb_store_bytes(skb, 0, &zero, sizeof(zero), 0) < 0) in tc_src()
|
H A D | test_tc_tunnel.c | 238 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in __encap_ipv4() 249 if (bpf_skb_store_bytes(skb, 0, ð, sizeof(eth), 0) < 0) in __encap_ipv4() 366 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in __encap_ipv6() 414 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in encap_ipv6_ipip6() 422 if (bpf_skb_store_bytes(skb, 0, ð, sizeof(eth), 0) < 0) in encap_ipv6_ipip6()
|
H A D | test_lwt_redirect.c | 20 if (bpf_skb_store_bytes(skb, 0, mac, sizeof(mac), 0)) in prepend_dummy_mac()
|
H A D | skb_pkt_end.c | 58 bpf_skb_store_bytes(skb, offset, &proto, sizeof(proto), BPF_F_RECOMPUTE_CSUM); in main_prog()
|
H A D | verifier_bounds.c | 1171 __imm(bpf_skb_store_bytes) in reg_not_equal_const() 1199 __imm(bpf_skb_store_bytes) in reg_equal_const()
|
H A D | test_tc_neigh_fib.c | 114 if (bpf_skb_store_bytes(skb, 0, &zero, sizeof(zero), 0) < 0) in tc_redir()
|
H A D | verifier_helper_packet_access.c | 278 : __imm(bpf_skb_store_bytes), in test11_cls_unsuitable_helper_1()
|
H A D | test_cls_redirect.c | 441 rc = bpf_skb_store_bytes( in forward_with_gre() 478 rc = bpf_skb_store_bytes( in forward_with_gre()
|
H A D | test_cls_redirect_dynptr.c | 335 rc = bpf_skb_store_bytes( in forward_with_gre() 372 rc = bpf_skb_store_bytes( in forward_with_gre()
|
H A D | test_tunnel_kern.c | 469 if (bpf_skb_store_bytes(skb, ETH_HLEN + offsetof(struct iphdr, daddr), in veth_set_outer_dst()
|
/linux/net/core/ |
H A D | filter.c | 1694 BPF_CALL_5(bpf_skb_store_bytes, struct sk_buff *, skb, u32, offset, in BPF_CALL_5() argument 1721 .func = bpf_skb_store_bytes,
|