Home
last modified time | relevance | path

Searched refs:check (Results 1 – 5 of 5) sorted by relevance

/samples/bpf/
Dxdp_fwd_kern.c36 u32 check = (__force u32)iph->check; in ip_decrease_ttl() local
38 check += (__force u32)htons(0x0100); in ip_decrease_ttl()
39 iph->check = (__force __sum16)(check + (check >= 0xFFFF)); in ip_decrease_ttl()
Dtcbpf1_kern.c20 #define IP_CSUM_OFF (ETH_HLEN + offsetof(struct iphdr, check))
31 #define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check))
Dtest_lwt_bpf.c84 #define IP_CSUM_OFF offsetof(struct iphdr, check)
88 #define TCP_CSUM_OFF offsetof(struct tcphdr, check)
89 #define UDP_CSUM_OFF offsetof(struct udphdr, check)
Dxdp_adjust_tail_kern.c108 iph->check = 0; in send_icmp4_too_big()
111 iph->check = csum; in send_icmp4_too_big()
Dxdp_tx_iptunnel_kern.c133 iph->check = 0; in handle_ipv4()
145 iph->check = ~((csum & 0xffff) + (csum >> 16)); in handle_ipv4()