Home
last modified time | relevance | path

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

/linux/samples/bpf/
H A 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()
H A Dtest_lwt_bpf.c120 ret = bpf_l3_csum_replace(skb, IP_CSUM_OFF, old_ip, new_ip, sizeof(new_ip)); in rewrite()
/linux/tools/testing/selftests/bpf/progs/
H A 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()
H A 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()
H A Dtest_tunnel_kern.c474 if (bpf_l3_csum_replace(skb, ETH_HLEN + offsetof(struct iphdr, check), in veth_set_outer_dst()
/linux/net/core/
H A Dfilter.c1913 BPF_CALL_5(bpf_l3_csum_replace, struct sk_buff *, skb, u32, offset, in BPF_CALL_5() argument
1947 .func = bpf_l3_csum_replace,