Searched refs:pseudo_checksum (Results 1 – 1 of 1) sorted by relevance
/external/android-clat/ |
D | clatd_test.cpp | 204 uint32_t pseudo_checksum = 0; in check_packet() local 218 pseudo_checksum = ipv4_pseudo_header_checksum(ip, payload_length); in check_packet() 248 pseudo_checksum = ipv6_pseudo_header_checksum(ip6, payload_length, protocol); in check_packet() 264 checksum = ip_checksum_finish(ip_checksum_add(pseudo_checksum, payload, payload_length)); in check_packet() 397 uint32_t pseudo_checksum; in fix_udp_checksum() local 404 pseudo_checksum = ipv4_pseudo_header_checksum(ip, ntohs(udp->len)); in fix_udp_checksum() 410 pseudo_checksum = ipv6_pseudo_header_checksum(ip6, ntohs(udp->len), IPPROTO_UDP); in fix_udp_checksum() 419 udp->check = ip_checksum_finish(ip_checksum_add(pseudo_checksum, udp, ntohs(udp->len))); in fix_udp_checksum() 793 uint32_t pseudo_checksum; in TEST_F() local 797 pseudo_checksum = ipv4_pseudo_header_checksum((struct iphdr *) v4_header, UDP_LEN); in TEST_F() [all …]
|