Lines Matching refs:current
35 uint32_t ip_checksum_add(uint32_t current, const void *data, int len) { in ip_checksum_add() argument
36 uint32_t checksum = current; in ip_checksum_add()
83 uint32_t ipv6_pseudo_header_checksum(uint32_t current, const struct ip6_hdr *ip6, uint16_t len) { in ipv6_pseudo_header_checksum() argument
89 current = ip_checksum_add(current, &(ip6->ip6_src), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
90 current = ip_checksum_add(current, &(ip6->ip6_dst), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
91 current = ip_checksum_add(current, &checksum_len, sizeof(checksum_len)); in ipv6_pseudo_header_checksum()
92 current = ip_checksum_add(current, &checksum_next, sizeof(checksum_next)); in ipv6_pseudo_header_checksum()
94 return current; in ipv6_pseudo_header_checksum()
103 uint32_t ipv4_pseudo_header_checksum(uint32_t current, const struct iphdr *ip, uint16_t len) { in ipv4_pseudo_header_checksum() argument
109 current = ip_checksum_add(current, &(ip->saddr), sizeof(uint32_t)); in ipv4_pseudo_header_checksum()
110 current = ip_checksum_add(current, &(ip->daddr), sizeof(uint32_t)); in ipv4_pseudo_header_checksum()
111 current = ip_checksum_add(current, &temp_protocol, sizeof(uint16_t)); in ipv4_pseudo_header_checksum()
112 current = ip_checksum_add(current, &temp_length, sizeof(uint16_t)); in ipv4_pseudo_header_checksum()
114 return current; in ipv4_pseudo_header_checksum()