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()
95 uint32_t current = 0; in ipv6_pseudo_header_checksum() local
96 current = ip_checksum_add(current, &(ip6->ip6_src), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
97 current = ip_checksum_add(current, &(ip6->ip6_dst), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
98 current = ip_checksum_add(current, &checksum_len, sizeof(checksum_len)); in ipv6_pseudo_header_checksum()
99 current = ip_checksum_add(current, &checksum_next, sizeof(checksum_next)); in ipv6_pseudo_header_checksum()
101 return current; in ipv6_pseudo_header_checksum()
115 uint32_t current = 0; in ipv4_pseudo_header_checksum() local
116 current = ip_checksum_add(current, &(ip->saddr), sizeof(uint32_t)); in ipv4_pseudo_header_checksum()
117 current = ip_checksum_add(current, &(ip->daddr), sizeof(uint32_t)); in ipv4_pseudo_header_checksum()
118 current = ip_checksum_add(current, &temp_protocol, sizeof(uint16_t)); in ipv4_pseudo_header_checksum()
119 current = ip_checksum_add(current, &temp_length, sizeof(uint16_t)); in ipv4_pseudo_header_checksum()
121 return current; in ipv4_pseudo_header_checksum()