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

/linux-4.1.27/samples/bpf/
H A Dtcbpf1_kern.c19 #define IP_CSUM_OFF (ETH_HLEN + offsetof(struct iphdr, check)) macro
26 bpf_l3_csum_replace(skb, IP_CSUM_OFF, htons(old_tos), htons(new_tos), 2); set_ip_tos()
40 bpf_l3_csum_replace(skb, IP_CSUM_OFF, old_ip, new_ip, sizeof(new_ip)); set_tcp_ip_src()

Completed in 56 milliseconds