Home
last modified time | relevance | path

Searched refs:bpf_skb_store_bytes (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/samples/bpf/
Dtest_lwt_bpf.c135 ret = bpf_skb_store_bytes(skb, IP_DST_OFF, &new_ip, sizeof(new_ip), 0); in rewrite()
137 ret = bpf_skb_store_bytes(skb, IP_SRC_OFF, &new_ip, sizeof(new_ip), 0); in rewrite()
183 ret = bpf_skb_store_bytes(skb, 0, &ehdr, sizeof(ehdr), 0); in __do_push_ll_and_redirect()
214 bpf_skb_store_bytes(skb, 0, &f, sizeof(f), 0); in __fill_garbage()
215 bpf_skb_store_bytes(skb, 8, &f, sizeof(f), 0); in __fill_garbage()
216 bpf_skb_store_bytes(skb, 16, &f, sizeof(f), 0); in __fill_garbage()
217 bpf_skb_store_bytes(skb, 24, &f, sizeof(f), 0); in __fill_garbage()
218 bpf_skb_store_bytes(skb, 32, &f, sizeof(f), 0); in __fill_garbage()
219 bpf_skb_store_bytes(skb, 40, &f, sizeof(f), 0); in __fill_garbage()
220 bpf_skb_store_bytes(skb, 48, &f, sizeof(f), 0); in __fill_garbage()
[all …]
Dtcbpf1_kern.c18 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-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_tc_peer.c51 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()
Dtest_tc_neigh.c105 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()
Dtest_tc_tunnel.c231 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in __encap_ipv4()
242 if (bpf_skb_store_bytes(skb, 0, &eth, sizeof(eth), 0) < 0) in __encap_ipv4()
359 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, in __encap_ipv6()
Dtest_tc_neigh_fib.c114 if (bpf_skb_store_bytes(skb, 0, &zero, sizeof(zero), 0) < 0) in tc_redir()
Dtest_cls_redirect.c438 rc = bpf_skb_store_bytes( in forward_with_gre()
475 rc = bpf_skb_store_bytes( in forward_with_gre()
Dtest_tunnel_kern.c457 if (bpf_skb_store_bytes(skb, ETH_HLEN + offsetof(struct iphdr, daddr), in veth_set_outer_dst()
/linux-6.1.9/net/core/
Dfilter.c1687 BPF_CALL_5(bpf_skb_store_bytes, struct sk_buff *, skb, u32, offset, in BPF_CALL_5() argument
1714 .func = bpf_skb_store_bytes,
7587 func == bpf_skb_store_bytes || in bpf_helper_changes_pkt_data()