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

Lines Matching refs:checksum

31 #include "checksum.h"
42 * checksum - pseudo-header checksum (unused)
46 int icmp6_packet(clat_packet out, int pos, const struct icmp6_hdr *icmp6, uint32_t checksum,
59 return icmp6_to_icmp(out, pos, icmp6, checksum, payload, payload_size);
91 uint32_t checksum;
130 * UDP include parts of the IP header in the checksum. Set the length to zero because we don't
136 // Calculate the pseudo-header checksum.
137 checksum = ipv4_pseudo_header_checksum(0, ip_targ, len_left);
141 iov_len = icmp6_packet(out, pos + 1, (const struct icmp6_hdr *) next_header, checksum,
144 iov_len = tcp_packet(out, pos + 1, (const struct tcphdr *) next_header, checksum,
147 iov_len = udp_packet(out, pos + 1, (const struct udphdr *) next_header, checksum,
157 // Set the length and calculate the checksum.