Searched refs:bpf_l3_csum_replace (Results 1 – 6 of 6) sorted by relevance
/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()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_cls_redirect.c | 469 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 D | test_cls_redirect_dynptr.c | 363 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 D | test_tunnel_kern.c | 474 if (bpf_l3_csum_replace(skb, ETH_HLEN + offsetof(struct iphdr, check), in veth_set_outer_dst()
|
/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,
|