Searched refs:IP_CSUM_OFF (Results 1 – 2 of 2) sorted by relevance
/linux/samples/bpf/ |
A 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()
|
A 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()
|
Completed in 5 milliseconds