Lines Matching full:ack
105 /* Initialise ACK manager. */ in helper_init()
141 * TX ACK (Packet Threshold) Test Cases
149 const char *expect_ack; /* 1=ack, 2=lost, 4=discarded */
344 OSSL_QUIC_FRAME_ACK ack = {0}; in test_tx_ack_case_actual() local
400 ack.ack_ranges = (OSSL_QUIC_ACK_RANGE *)c->ack_ranges; in test_tx_ack_case_actual()
401 ack.num_ack_ranges = c->num_ack_ranges; in test_tx_ack_case_actual()
402 if (!TEST_int_eq(ossl_ackm_on_rx_ack_frame(h.ackm, &ack, space, fake_time), 1)) in test_tx_ack_case_actual()
475 * TX ACK (Time Threshold) Test
481 TX_ACK_TIME_OP_ACK, /* Synthesise incoming ACK of single PN range */
482 TX_ACK_TIME_OP_EXPECT /* Ack/loss assertion */
488 QUIC_PN pn; /* PKT, ACK */
489 size_t num_pn; /* PKT, ACK */
490 const char *expect; /* 1=ack, 2=lost, 4=discarded */
522 OSSL_QUIC_FRAME_ACK ack = {0}; in test_tx_ack_time_script() local
532 /* Initialise ACK manager and packet structures. */ in test_tx_ack_time_script()
572 ack.ack_ranges = &ack_range; in test_tx_ack_time_script()
573 ack.num_ack_ranges = 1; in test_tx_ack_time_script()
581 if (!TEST_int_eq(ossl_ackm_on_rx_ack_frame(h.ackm, &ack, in test_tx_ack_time_script()
611 * RX ACK Test
620 RX_OPK_CHECK_ACKS, /* check ACK ranges */
622 RX_OPK_RX_ACK, /* RX ACK frame */
699 /* RX 1. Simple Test with ACK Desired (Packet Threshold, Exactly) */
714 /* At this point we would generate e.g. a packet with an ACK. */
717 RX_OP_RX_ACK (0, 0, 1) /* TX'd packet is ACK'd */
719 RX_OP_CHECK_NO_ACKS (0) /* nothing more to ACK */
726 /* RX 2. Simple Test with ACK Not Yet Desired (Packet Threshold) (1-RTT) */
738 * (rx_script_4) for those spaces as those spaces should not delay ACK
747 /* First packet always generates an ACK so get it out of the way. */
751 RX_OP_CHECK_STATE (0, 1, 0) /* first packet always causes ACK */
755 /* Second packet should not cause ACK-desired state */
769 /* At this point we would generate e.g. a packet with an ACK. */
772 RX_OP_RX_ACK (0, 0, 1) /* TX'd packet is ACK'd */
774 RX_OP_CHECK_NO_ACKS (0) /* nothing more to ACK */
781 /* RX 3. Simple Test with ACK Desired (Packet Threshold, Multiple Watermarks) */
798 /* First packet always generates an ACK so get it out of the way. */
802 RX_OP_CHECK_STATE (0, 1, 0) /* first packet always causes ACK */
814 * Test TX'ing a packet which doesn't ACK anything.
820 * At this point we would generate a packet with an ACK immediately.
846 * RX 4. Simple Test with ACK Not Yet Desired (Packet Threshold)
860 /* First packet always generates an ACK so get it out of the way. */
864 RX_OP_CHECK_STATE (0, 1, 0) /* first packet always causes ACK */
869 * Second packet should cause ACK-desired state because we are
879 /* At this point we would generate e.g. a packet with an ACK. */
882 RX_OP_RX_ACK (0, 0, 1) /* TX'd packet is ACK'd */
884 RX_OP_CHECK_NO_ACKS (0) /* nothing more to ACK */
910 const OSSL_QUIC_FRAME_ACK *ack; in test_rx_ack_actual() local
921 /* Initialise ACK manager. */ in test_rx_ack_actual()
1005 ack = ossl_ackm_get_ack_frame(h.ackm, space); in test_rx_ack_actual()
1007 /* Should always be able to get an ACK frame. */ in test_rx_ack_actual()
1008 if (!TEST_ptr(ack)) in test_rx_ack_actual()
1011 if (!TEST_size_t_eq(ack->num_ack_ranges, s->num_ack_ranges)) in test_rx_ack_actual()
1014 for (i = 0; i < ack->num_ack_ranges; ++i) { in test_rx_ack_actual()
1015 if (!TEST_uint64_t_eq(ack->ack_ranges[i].start, in test_rx_ack_actual()
1018 if (!TEST_uint64_t_eq(ack->ack_ranges[i].end, in test_rx_ack_actual()