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 = {0}; in test_PACKET_get_length_prefixed_1() local
361 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &subpkt)) in test_PACKET_get_length_prefixed_1()
362 || !TEST_size_t_eq(PACKET_remaining(&subpkt), len) in test_PACKET_get_length_prefixed_1()
363 || !TEST_true(PACKET_get_net_2(&subpkt, &i)) in test_PACKET_get_length_prefixed_1()
365 || !TEST_false(PACKET_get_length_prefixed_1(&short_pkt, &subpkt)) in test_PACKET_get_length_prefixed_1()
377 PACKET pkt, short_pkt, subpkt = {0}; in test_PACKET_get_length_prefixed_2() local
384 || !TEST_true(PACKET_get_length_prefixed_2(&pkt, &subpkt)) in test_PACKET_get_length_prefixed_2()
385 || !TEST_size_t_eq(PACKET_remaining(&subpkt), len) in test_PACKET_get_length_prefixed_2()
386 || !TEST_true(PACKET_get_net_2(&subpkt, &i)) in test_PACKET_get_length_prefixed_2()
388 || !TEST_false(PACKET_get_length_prefixed_2(&short_pkt, &subpkt)) in test_PACKET_get_length_prefixed_2()
400 PACKET pkt, short_pkt, subpkt = {0}; in test_PACKET_get_length_prefixed_3() local
407 || !TEST_true(PACKET_get_length_prefixed_3(&pkt, &subpkt)) in test_PACKET_get_length_prefixed_3()
408 || !TEST_size_t_eq(PACKET_remaining(&subpkt), len) in test_PACKET_get_length_prefixed_3()
409 || !TEST_true(PACKET_get_net_2(&subpkt, &i)) in test_PACKET_get_length_prefixed_3()
411 || !TEST_false(PACKET_get_length_prefixed_3(&short_pkt, &subpkt)) in test_PACKET_get_length_prefixed_3()
423 PACKET pkt, exact_pkt, subpkt = {0}; in test_PACKET_as_length_prefixed_1() local
431 || !TEST_false(PACKET_as_length_prefixed_1(&pkt, &subpkt)) in test_PACKET_as_length_prefixed_1()
433 || !TEST_true(PACKET_as_length_prefixed_1(&exact_pkt, &subpkt)) in test_PACKET_as_length_prefixed_1()
435 || !TEST_size_t_eq(PACKET_remaining(&subpkt), len)) in test_PACKET_as_length_prefixed_1()
446 PACKET pkt, exact_pkt, subpkt = {0}; in test_PACKET_as_length_prefixed_2() local
453 || !TEST_false(PACKET_as_length_prefixed_2(&pkt, &subpkt)) in test_PACKET_as_length_prefixed_2()
455 || !TEST_true(PACKET_as_length_prefixed_2(&exact_pkt, &subpkt)) in test_PACKET_as_length_prefixed_2()
457 || !TEST_size_t_eq(PACKET_remaining(&subpkt), len)) in test_PACKET_as_length_prefixed_2()