Searched refs:new_sum (Results 1 – 4 of 4) sorted by relevance
/external/android-clat/ |
D | ipv4.c | 65 uint32_t old_sum, new_sum; in ipv4_packet() local 115 new_sum = ipv6_pseudo_header_checksum(ip6_targ, len_left, nxthdr); in ipv4_packet() 126 iov_len = icmp_packet(out, pos + 2, (const struct icmphdr *) next_header, new_sum, 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()
|
D | translate.h | 79 uint32_t old_sum, uint32_t new_sum, size_t len); 81 uint32_t old_sum, uint32_t new_sum, size_t len); 84 size_t header_size, uint32_t old_sum, uint32_t new_sum, 87 uint32_t old_sum, uint32_t new_sum,
|
D | translate.c | 344 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() 422 udp_targ->check = packet_checksum(new_sum, out, pos); 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()
|
D | ipv6.c | 85 uint32_t old_sum, new_sum; in ipv6_packet() local 152 new_sum = ipv4_pseudo_header_checksum(ip_targ, len_left); 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()
|