Lines Matching full:current
31 * current - the current checksum (or 0 to start a new checksum)
35 uint32_t ip_checksum_add(uint32_t current, const void *data, int len) {
36 uint32_t checksum = current;
96 uint32_t current = 0;
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));
102 return current;
116 uint32_t current = 0;
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));
122 return current;