Home
last modified time | relevance | path

Searched refs:old_sum (Results 1 – 4 of 4) sorted by relevance

/external/android-clat/
Dipv4.c65 uint32_t old_sum, new_sum; in ipv4_packet() local
114 old_sum = ipv4_pseudo_header_checksum(header, len_left); in ipv4_packet()
128 iov_len = tcp_packet(out, pos + 2, (const struct tcphdr *) next_header, old_sum, new_sum, in ipv4_packet()
131 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum, in ipv4_packet()
Dtranslate.h90 uint32_t old_sum, uint32_t new_sum, size_t len);
92 uint32_t old_sum, uint32_t new_sum, size_t len);
95 size_t header_size, uint32_t old_sum, uint32_t new_sum,
98 uint32_t old_sum, uint32_t new_sum,
Dipv6.c85 uint32_t old_sum, new_sum; in ipv6_packet() local
151 old_sum = ipv6_pseudo_header_checksum(ip6, len_left, protocol); in ipv6_packet()
160 iov_len = tcp_packet(out, pos + 2, (const struct tcphdr *) next_header, old_sum, new_sum, in ipv6_packet()
163 iov_len = udp_packet(out, pos + 2, (const struct udphdr *) next_header, old_sum, new_sum, in ipv6_packet()
Dtranslate.c344 uint32_t old_sum, uint32_t new_sum, size_t len) { in udp_packet() argument
356 return udp_translate(out, pos, udp, old_sum, new_sum, payload, payload_size); in udp_packet()
368 uint32_t old_sum, uint32_t new_sum, size_t len) { in tcp_packet() argument
391 return tcp_translate(out, pos, tcp, header_size, old_sum, new_sum, payload, payload_size); in tcp_packet()
405 uint32_t old_sum, uint32_t new_sum, const uint8_t *payload, size_t payload_size) { in udp_translate() argument
415 udp_targ->check = ip_checksum_adjust(udp->check, old_sum, new_sum); in udp_translate()
445 size_t header_size, uint32_t old_sum, uint32_t new_sum, in tcp_translate() argument
463 tcp_targ->check = ip_checksum_adjust(tcp->check, old_sum, new_sum); in tcp_translate()