Lines Matching refs:reassembled
295 uint8_t *reassembled, size_t *reassembled_len, const char *msg) { in reassemble_packet() argument
322 ip = (struct iphdr *)reassembled; in reassemble_packet()
337 ip6 = (struct ip6_hdr *)reassembled; in reassemble_packet()
349 memcpy(reassembled, packet, headersize); in reassemble_packet()
358 memcpy(reassembled + pos, packet + payload_offset, payload_length); in reassemble_packet()
513 uint8_t reassembled[MAXMTU]; in check_fragment_translation() local
514 size_t reassembled_len = sizeof(reassembled); in check_fragment_translation()
515 reassemble_packet(original, original_lengths, numfragments, reassembled, &reassembled_len, msg); in check_fragment_translation()
516 check_packet(reassembled, reassembled_len, msg); in check_fragment_translation()
520 do_translate_packet(reassembled, reassembled_len, translated, &translated_len, msg); in check_fragment_translation()
642 uint8_t reassembled[MAXMTU]; in TEST_F() local
643 size_t total_length = sizeof(reassembled); in TEST_F()
644 reassemble_packet(kIPv4Fragments, kIPv4FragLengths, ARRAYSIZE(kIPv4Fragments), reassembled, in TEST_F()
646 check_packet(reassembled, total_length, "IPv4 Reassembled packet is valid"); in TEST_F()
648 ASSERT_TRUE(!is_ipv4_fragment((struct iphdr *)reassembled)) in TEST_F()
650 check_data_matches(kReassembledIPv4, reassembled, total_length, "IPv4 reassembly sanity check"); in TEST_F()
652 total_length = sizeof(reassembled); in TEST_F()
653 reassemble_packet(kIPv6Fragments, kIPv6FragLengths, ARRAYSIZE(kIPv6Fragments), reassembled, in TEST_F()
655 ASSERT_TRUE(!is_ipv6_fragment((struct ip6_hdr *)reassembled, total_length)) in TEST_F()
657 check_packet(reassembled, total_length, "IPv6 Reassembled packet is valid"); in TEST_F()