Searched refs:IP_CSUM_OFF (Results  1 – 2 of 2) sorted by relevance
| /Linux-v5.15/samples/bpf/ | 
| D | tcbpf1_kern.c | 21 #define IP_CSUM_OFF (ETH_HLEN + offsetof(struct iphdr, check))  macro 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()
  | 
| D | test_lwt_bpf.c | 84 #define IP_CSUM_OFF offsetof(struct iphdr, check)  macro 128 	ret = bpf_l3_csum_replace(skb, IP_CSUM_OFF, old_ip, new_ip, sizeof(new_ip));  in rewrite()
  |