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

Lines Matching refs:ip_checksum_add

29 /* function: ip_checksum_add
35 uint32_t ip_checksum_add(uint32_t current, const void *data, int len) {
54 * temp_sum - sum from ip_checksum_add
66 * temp_sum - sum from ip_checksum_add
74 * combined ip_checksum_add and ip_checksum_finish
81 temp_sum = ip_checksum_add(0,data,len);
97 current = ip_checksum_add(current, &(ip6->ip6_src), sizeof(struct in6_addr));
98 current = ip_checksum_add(current, &(ip6->ip6_dst), sizeof(struct in6_addr));
99 current = ip_checksum_add(current, &checksum_len, sizeof(checksum_len));
100 current = ip_checksum_add(current, &checksum_next, sizeof(checksum_next));
117 current = ip_checksum_add(current, &(ip->saddr), sizeof(uint32_t));
118 current = ip_checksum_add(current, &(ip->daddr), sizeof(uint32_t));
119 current = ip_checksum_add(current, &temp_protocol, sizeof(uint16_t));
120 current = ip_checksum_add(current, &temp_length, sizeof(uint16_t));