Lines Matching refs:temp_checksum
133 void dump_udp_generic(const struct udphdr *udp, uint32_t temp_checksum, in dump_udp_generic() argument
137 temp_checksum = ip_checksum_add(temp_checksum, udp, sizeof(struct udphdr)); in dump_udp_generic()
138 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size); in dump_udp_generic()
139 my_checksum = ip_checksum_finish(temp_checksum); in dump_udp_generic()
151 uint32_t temp_checksum; in dump_udp() local
152 temp_checksum = ipv4_pseudo_header_checksum(ip, sizeof(*udp) + payload_size); in dump_udp()
153 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp()
159 uint32_t temp_checksum; in dump_udp6() local
160 temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*udp) + payload_size, IPPROTO_UDP); in dump_udp6()
161 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp6()
165 …ct tcphdr *tcp, const uint8_t *options, size_t options_size, uint32_t temp_checksum, const uint8_t… in dump_tcp_generic() argument
168 temp_checksum = ip_checksum_add(temp_checksum, tcp, sizeof(struct tcphdr)); in dump_tcp_generic()
170 temp_checksum = ip_checksum_add(temp_checksum, options, options_size); in dump_tcp_generic()
172 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size); in dump_tcp_generic()
173 my_checksum = ip_checksum_finish(temp_checksum); in dump_tcp_generic()
209 uint32_t temp_checksum; in dump_tcp() local
211 temp_checksum = ipv4_pseudo_header_checksum(ip, sizeof(*tcp) + options_size + payload_size); in dump_tcp()
212 dump_tcp_generic(tcp, options, options_size, temp_checksum, payload, payload_size); in dump_tcp()
219 uint32_t temp_checksum; in dump_tcp6() local
221 …temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*tcp) + options_size + payload_size, IPPRO… in dump_tcp6()
222 dump_tcp_generic(tcp, options, options_size, temp_checksum, payload, payload_size); in dump_tcp6()