Lines Matching refs:total_length
289 size_t total_length, pos = 0;
341 total_length = headersize;
347 total_length += payload_length;
348 ASSERT_LT(total_length, *reassembled_len) << msg << ": Reassembly buffer too small\n";
355 ASSERT_EQ(total_length, pos) << msg << ": Reassembled packet length incorrect\n";
358 ip->tot_len = htons(total_length);
365 ip6->ip6_plen = htons(total_length - sizeof(*ip6));
370 *reassembled_len = total_length;
561 size_t total_length = sizeof(reassembled);
563 reassembled, &total_length, "Reassembly sanity check");
564 check_packet(reassembled, total_length, "IPv4 Reassembled packet is valid");
565 ASSERT_EQ(sizeof(kReassembledIPv4), total_length) << "IPv4 reassembly sanity check: length\n";
568 check_data_matches(kReassembledIPv4, reassembled, total_length, "IPv4 reassembly sanity check");
570 total_length = sizeof(reassembled);
572 reassembled, &total_length, "IPv6 reassembly sanity check");
573 ASSERT_TRUE(!is_ipv6_fragment((struct ip6_hdr *) reassembled, total_length))
575 check_packet(reassembled, total_length, "IPv6 Reassembled packet is valid");