Lines Matching refs:payload_length
211 size_t payload_length = 0; in check_packet() local
225 payload_length = len - sizeof(*ip); in check_packet()
226 pseudo_checksum = ipv4_pseudo_header_checksum(ip, payload_length); in check_packet()
245 payload_length = len - sizeof(*ip6) - sizeof(*frag); in check_packet()
251 payload_length = len - sizeof(*ip6); in check_packet()
255 if (payload_length) { in check_packet()
256 pseudo_checksum = ipv6_pseudo_header_checksum(ip6, payload_length, protocol); in check_packet()
266 if (payload_length) { in check_packet()
272 checksum = ip_checksum_finish(ip_checksum_add(pseudo_checksum, payload, payload_length)); in check_packet()
275 checksum = ip_checksum(payload, payload_length); in check_packet()
288 if (payload_length) { in check_packet()
289 EXPECT_EQ(payload_length, ntohs(udp->len)) << msg << ": Incorrect UDP length\n"; in check_packet()
355 int payload_length = len - payload_offset; in reassemble_packet() local
356 total_length += payload_length; in reassemble_packet()
358 memcpy(reassembled + pos, packet + payload_offset, payload_length); in reassemble_packet()
359 pos += payload_length; in reassemble_packet()