Home | History | Annotate | Download | only in android-clat

Lines Matching refs:checksum

30 #include "checksum.h"
40 * checksum - pseudo-header checksum
44 int icmp_packet(clat_packet out, int pos, const struct icmphdr *icmp, uint32_t checksum,
57 return icmp_to_icmp6(out, pos, icmp, checksum, payload, payload_size);
74 uint32_t checksum;
118 * UDP include parts of the IP header in the checksum. Set the length to zero because we don't
124 // Calculate the pseudo-header checksum.
125 checksum = ipv6_pseudo_header_checksum(0, ip6_targ, len_left);
128 iov_len = icmp_packet(out, pos + 1, (const struct icmphdr *) next_header, checksum, len_left);
130 iov_len = tcp_packet(out, pos + 1, (const struct tcphdr *) next_header, checksum, len_left);
132 iov_len = udp_packet(out, pos + 1, (const struct udphdr *) next_header, checksum, len_left);