Searched refs:TCP_CSUM_OFF (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/samples/bpf/ |
D | tcbpf1_kern.c | 32 #define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check)) macro 41 bpf_l4_csum_replace(skb, TCP_CSUM_OFF, old_ip, new_ip, IS_PSEUDO | sizeof(new_ip)); in set_tcp_ip_src() 51 bpf_l4_csum_replace(skb, TCP_CSUM_OFF, old_port, new_port, sizeof(new_port)); in set_tcp_dest_port()
|
D | test_lwt_bpf.c | 80 #define TCP_CSUM_OFF offsetof(struct tcphdr, check) macro 98 off = TCP_CSUM_OFF; in rewrite()
|