Lines Matching refs:current
34 uint32_t ip_checksum_add(uint32_t current, const void* data, int len) { in ip_checksum_add() argument
35 uint32_t checksum = current; in ip_checksum_add()
96 uint32_t current = 0; in ipv6_pseudo_header_checksum() local
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()
103 return current; in ipv6_pseudo_header_checksum()
117 uint32_t current = 0; in ipv4_pseudo_header_checksum() local
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()
124 return current; in ipv4_pseudo_header_checksum()