Home
last modified time | relevance | path

Searched refs:IP_CSUM_OFF (Results 1 – 2 of 2) sorted by relevance

/linux/samples/bpf/
A Dtcbpf1_kern.c21 #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 Dtest_lwt_bpf.c84 #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