Searched refs:check (Results 1 – 5 of 5) sorted by relevance
36 u32 check = (__force u32)iph->check; in ip_decrease_ttl() local38 check += (__force u32)htons(0x0100); in ip_decrease_ttl()39 iph->check = (__force __sum16)(check + (check >= 0xFFFF)); in ip_decrease_ttl()
20 #define IP_CSUM_OFF (ETH_HLEN + offsetof(struct iphdr, check))31 #define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check))
84 #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)
108 iph->check = 0; in send_icmp4_too_big()111 iph->check = csum; in send_icmp4_too_big()
133 iph->check = 0; in handle_ipv4()145 iph->check = ~((csum & 0xffff) + (csum >> 16)); in handle_ipv4()