Lines Matching refs:subpkt
135 PACKET pkt, subpkt; in test_PACKET_get_sub_packet() local
139 || !TEST_true(PACKET_get_sub_packet(&pkt, &subpkt, 4)) in test_PACKET_get_sub_packet()
140 || !TEST_true(PACKET_get_net_4(&subpkt, &i)) in test_PACKET_get_sub_packet()
142 || !TEST_size_t_eq(PACKET_remaining(&subpkt), 0) in test_PACKET_get_sub_packet()
144 || !TEST_true(PACKET_get_sub_packet(&pkt, &subpkt, 4)) in test_PACKET_get_sub_packet()
145 || !TEST_true(PACKET_get_net_4(&subpkt, &i)) in test_PACKET_get_sub_packet()
147 || !TEST_size_t_eq(PACKET_remaining(&subpkt), 0) in test_PACKET_get_sub_packet()
148 || !TEST_false(PACKET_get_sub_packet(&pkt, &subpkt, 4))) in test_PACKET_get_sub_packet()
353 PACKET pkt, short_pkt, subpkt; in test_PACKET_get_length_prefixed_1() local
355 memset(&subpkt, 0, sizeof(subpkt)); in test_PACKET_get_length_prefixed_1()
362 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &subpkt)) in test_PACKET_get_length_prefixed_1()
363 || !TEST_size_t_eq(PACKET_remaining(&subpkt), len) in test_PACKET_get_length_prefixed_1()
364 || !TEST_true(PACKET_get_net_2(&subpkt, &i)) in test_PACKET_get_length_prefixed_1()
366 || !TEST_false(PACKET_get_length_prefixed_1(&short_pkt, &subpkt)) in test_PACKET_get_length_prefixed_1()
378 PACKET pkt, short_pkt, subpkt; in test_PACKET_get_length_prefixed_2() local
380 memset(&subpkt, 0, sizeof(subpkt)); in test_PACKET_get_length_prefixed_2()
386 || !TEST_true(PACKET_get_length_prefixed_2(&pkt, &subpkt)) in test_PACKET_get_length_prefixed_2()
387 || !TEST_size_t_eq(PACKET_remaining(&subpkt), len) in test_PACKET_get_length_prefixed_2()
388 || !TEST_true(PACKET_get_net_2(&subpkt, &i)) in test_PACKET_get_length_prefixed_2()
390 || !TEST_false(PACKET_get_length_prefixed_2(&short_pkt, &subpkt)) in test_PACKET_get_length_prefixed_2()
402 PACKET pkt, short_pkt, subpkt; in test_PACKET_get_length_prefixed_3() local
404 memset(&subpkt, 0, sizeof(subpkt)); in test_PACKET_get_length_prefixed_3()
410 || !TEST_true(PACKET_get_length_prefixed_3(&pkt, &subpkt)) in test_PACKET_get_length_prefixed_3()
411 || !TEST_size_t_eq(PACKET_remaining(&subpkt), len) in test_PACKET_get_length_prefixed_3()
412 || !TEST_true(PACKET_get_net_2(&subpkt, &i)) in test_PACKET_get_length_prefixed_3()
414 || !TEST_false(PACKET_get_length_prefixed_3(&short_pkt, &subpkt)) in test_PACKET_get_length_prefixed_3()
426 PACKET pkt, exact_pkt, subpkt; in test_PACKET_as_length_prefixed_1() local
428 memset(&subpkt, 0, sizeof(subpkt)); in test_PACKET_as_length_prefixed_1()
435 || !TEST_false(PACKET_as_length_prefixed_1(&pkt, &subpkt)) in test_PACKET_as_length_prefixed_1()
437 || !TEST_true(PACKET_as_length_prefixed_1(&exact_pkt, &subpkt)) in test_PACKET_as_length_prefixed_1()
439 || !TEST_size_t_eq(PACKET_remaining(&subpkt), len)) in test_PACKET_as_length_prefixed_1()
450 PACKET pkt, exact_pkt, subpkt; in test_PACKET_as_length_prefixed_2() local
452 memset(&subpkt, 0, sizeof(subpkt)); in test_PACKET_as_length_prefixed_2()
458 || !TEST_false(PACKET_as_length_prefixed_2(&pkt, &subpkt)) in test_PACKET_as_length_prefixed_2()
460 || !TEST_true(PACKET_as_length_prefixed_2(&exact_pkt, &subpkt)) in test_PACKET_as_length_prefixed_2()
462 || !TEST_size_t_eq(PACKET_remaining(&subpkt), len)) in test_PACKET_as_length_prefixed_2()
544 PACKET pkt, subpkt = {0}; in test_PACKET_get_quic_length_prefixed() local
555 if (!TEST_int_eq(PACKET_get_quic_length_prefixed(&pkt, &subpkt), !cases[i].fail)) in test_PACKET_get_quic_length_prefixed()
564 if (!TEST_ptr_eq(subpkt.curr, cases[i].buf + cases[i].enclen)) in test_PACKET_get_quic_length_prefixed()
567 if (!TEST_size_t_eq(subpkt.remaining, cases[i].len)) in test_PACKET_get_quic_length_prefixed()