Searched refs:bpf_l3_csum_replace (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/samples/bpf/ |
H A D | tcbpf1_kern.c | 28 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 D | test_lwt_bpf.c | 120 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 D | test_cls_redirect_dynptr.c | 361 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 D | test_cls_redirect.c | 466 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 D | test_tunnel_kern.c | 492 if (bpf_l3_csum_replace(skb, ETH_HLEN + offsetof(struct iphdr, check), in veth_set_outer_dst()
|
/openbmc/linux/net/core/ |
H A D | filter.c | 1913 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()
|