Lines Matching refs:total_length
290 size_t total_length, pos = 0;
342 total_length = headersize;
348 total_length += payload_length;
349 ASSERT_LT(total_length, *reassembled_len) << msg << ": Reassembly buffer too small\n";
356 ASSERT_EQ(total_length, pos) << msg << ": Reassembled packet length incorrect\n";
359 ip->tot_len = htons(total_length);
366 ip6->ip6_plen = htons(total_length - sizeof(*ip6));
371 *reassembled_len = total_length;
775 size_t total_length = sizeof(reassembled);
777 reassembled, &total_length, "Reassembly sanity check");
778 check_packet(reassembled, total_length, "IPv4 Reassembled packet is valid");
779 ASSERT_EQ(sizeof(kReassembledIPv4), total_length) << "IPv4 reassembly sanity check: length\n";
782 check_data_matches(kReassembledIPv4, reassembled, total_length, "IPv4 reassembly sanity check");
784 total_length = sizeof(reassembled);
786 reassembled, &total_length, "IPv6 reassembly sanity check");
787 ASSERT_TRUE(!is_ipv6_fragment((struct ip6_hdr *) reassembled, total_length))
789 check_packet(reassembled, total_length, "IPv6 Reassembled packet is valid");