Lines Matching full:csum
58 static __always_inline __u16 csum_fold_helper(__u32 csum) in csum_fold_helper() argument
60 return ~((csum & 0xffff) + (csum >> 16)); in csum_fold_helper()
64 __u32 *csum) in ipv4_csum() argument
66 *csum = bpf_csum_diff(0, 0, data_start, data_size, *csum); in ipv4_csum()
67 *csum = csum_fold_helper(*csum); in ipv4_csum()
85 __u32 csum = 0; in send_icmp4_too_big() local
100 ipv4_csum(icmp_hdr, ICMP_TOOBIG_PAYLOAD_SIZE, &csum); in send_icmp4_too_big()
101 icmp_hdr->checksum = csum; in send_icmp4_too_big()
112 csum = 0; in send_icmp4_too_big()
113 ipv4_csum(iph, sizeof(struct iphdr), &csum); in send_icmp4_too_big()
114 iph->check = csum; in send_icmp4_too_big()