Lines Matching refs:payload_size
136 size_t payload_size) { in dump_udp_generic() argument
140 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size); in dump_udp_generic()
152 size_t payload_size) { in dump_udp() argument
154 temp_checksum = ipv4_pseudo_header_checksum(ip, sizeof(*udp) + payload_size); in dump_udp()
155 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp()
160 size_t payload_size) { in dump_udp6() argument
162 temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*udp) + payload_size, IPPROTO_UDP); in dump_udp6()
163 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp6()
168 uint32_t temp_checksum, const uint8_t *payload, size_t payload_size) { in dump_tcp_generic() argument
175 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size); in dump_tcp_generic()
210 size_t payload_size, const uint8_t *options, size_t options_size) { in dump_tcp() argument
213 temp_checksum = ipv4_pseudo_header_checksum(ip, sizeof(*tcp) + options_size + payload_size); in dump_tcp()
214 dump_tcp_generic(tcp, options, options_size, temp_checksum, payload, payload_size); in dump_tcp()
219 size_t payload_size, const uint8_t *options, size_t options_size) { in dump_tcp6() argument
223 ipv6_pseudo_header_checksum(ip6, sizeof(*tcp) + options_size + payload_size, IPPROTO_TCP); in dump_tcp6()
224 dump_tcp_generic(tcp, options, options_size, temp_checksum, payload, payload_size); in dump_tcp6()