Lines Matching refs:reassembled
287 uint8_t *reassembled, size_t *reassembled_len, const char *msg) { in reassemble_packet() argument
314 ip = (struct iphdr *) reassembled; in reassemble_packet()
329 ip6 = (struct ip6_hdr *) reassembled; in reassemble_packet()
341 memcpy(reassembled, packet, headersize); in reassemble_packet()
350 memcpy(reassembled + pos, packet + payload_offset, payload_length); in reassemble_packet()
507 uint8_t reassembled[MAXMTU]; in check_fragment_translation() local
508 size_t reassembled_len = sizeof(reassembled); in check_fragment_translation()
509 reassemble_packet(original, original_lengths, numfragments, reassembled, &reassembled_len, msg); in check_fragment_translation()
510 check_packet(reassembled, reassembled_len, msg); in check_fragment_translation()
514 do_translate_packet(reassembled, reassembled_len, translated, &translated_len, msg); in check_fragment_translation()
774 uint8_t reassembled[MAXMTU]; in TEST_F() local
775 size_t total_length = sizeof(reassembled); in TEST_F()
777 reassembled, &total_length, "Reassembly sanity check"); in TEST_F()
778 check_packet(reassembled, total_length, "IPv4 Reassembled packet is valid"); in TEST_F()
780 ASSERT_TRUE(!is_ipv4_fragment((struct iphdr *) reassembled)) in TEST_F()
782 check_data_matches(kReassembledIPv4, reassembled, total_length, "IPv4 reassembly sanity check"); in TEST_F()
784 total_length = sizeof(reassembled); in TEST_F()
786 reassembled, &total_length, "IPv6 reassembly sanity check"); in TEST_F()
787 ASSERT_TRUE(!is_ipv6_fragment((struct ip6_hdr *) reassembled, total_length)) in TEST_F()
789 check_packet(reassembled, total_length, "IPv6 Reassembled packet is valid"); in TEST_F()