Home
last modified time | relevance | path

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

/system/core/libnetutils/
Dchecksum.c34 uint32_t ip_checksum_add(uint32_t current, const void* data, int len) { in ip_checksum_add() function
82 temp_sum = ip_checksum_add(0, data, len); in ip_checksum()
98 current = ip_checksum_add(current, &(ip6->ip6_src), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
99 current = ip_checksum_add(current, &(ip6->ip6_dst), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
100 current = ip_checksum_add(current, &checksum_len, sizeof(checksum_len)); in ipv6_pseudo_header_checksum()
101 current = ip_checksum_add(current, &checksum_next, sizeof(checksum_next)); in ipv6_pseudo_header_checksum()
119 current = ip_checksum_add(current, &(ip->saddr), sizeof(uint32_t)); in ipv4_pseudo_header_checksum()
120 current = ip_checksum_add(current, &(ip->daddr), sizeof(uint32_t)); in ipv4_pseudo_header_checksum()
121 current = ip_checksum_add(current, &temp_protocol, sizeof(uint16_t)); in ipv4_pseudo_header_checksum()
122 current = ip_checksum_add(current, &temp_length, sizeof(uint16_t)); in ipv4_pseudo_header_checksum()
/system/netd/server/
DClatdControllerTest.cpp170 uint16_t c1 = ip_checksum_finish(ip_checksum_add(0, &v4, sizeof(v4))); in TEST_F()
171 uint16_t c2 = ip_checksum_finish(ip_checksum_add(0, &nat64Prefix, sizeof(nat64Prefix)) + in TEST_F()
172 ip_checksum_add(0, &v6, sizeof(v6))); in TEST_F()
DClatdController.cpp187 uint32_t c1 = ip_checksum_add(0, &v4, sizeof(v4)); in makeChecksumNeutral()
188 uint32_t c2 = ip_checksum_add(0, &nat64Prefix, sizeof(nat64Prefix)) + in makeChecksumNeutral()
189 ip_checksum_add(0, v6, sizeof(*v6)); in makeChecksumNeutral()
/system/core/libnetutils/include/netutils/
Dchecksum.h25 uint32_t ip_checksum_add(uint32_t current, const void* data, int len);