Home
last modified time | relevance | path

Searched refs:bpf_l3_csum_replace (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/samples/bpf/
Dtcbpf1_kern.c28 bpf_l3_csum_replace(skb, IP_CSUM_OFF, htons(old_tos), htons(new_tos), 2); in set_ip_tos()
42 bpf_l3_csum_replace(skb, IP_CSUM_OFF, old_ip, new_ip, sizeof(new_ip)); in set_tcp_ip_src()
Dtest_lwt_bpf.c120 ret = bpf_l3_csum_replace(skb, IP_CSUM_OFF, old_ip, new_ip, sizeof(new_ip)); in rewrite()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c469 rc = bpf_l3_csum_replace( in forward_with_gre()
558 int ret = bpf_l3_csum_replace(skb, off, old_saddr, next_hop->s_addr, 4); in forward_to_next_hop()
Dtest_cls_redirect_dynptr.c363 rc = bpf_l3_csum_replace( in forward_with_gre()
450 int ret = bpf_l3_csum_replace(skb, off, old_saddr, next_hop->s_addr, 4); in forward_to_next_hop()
Dtest_tunnel_kern.c474 if (bpf_l3_csum_replace(skb, ETH_HLEN + offsetof(struct iphdr, check), in veth_set_outer_dst()
/linux-6.12.1/net/core/
Dfilter.c1925 BPF_CALL_5(bpf_l3_csum_replace, struct sk_buff *, skb, u32, offset, in BPF_CALL_5() argument
1959 .func = bpf_l3_csum_replace,
7913 func == bpf_l3_csum_replace || in bpf_helper_changes_pkt_data()