Home
last modified time | relevance | path

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

/openbmc/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()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_cls_redirect_dynptr.c361 rc = bpf_l3_csum_replace( in forward_with_gre()
448 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.c466 rc = bpf_l3_csum_replace( in forward_with_gre()
555 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.c492 if (bpf_l3_csum_replace(skb, ETH_HLEN + offsetof(struct iphdr, check), in veth_set_outer_dst()
/openbmc/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,
7855 func == bpf_l3_csum_replace || in bpf_helper_changes_pkt_data()