mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
tcp unit test: fix some endless loops for TCP_WND == 0xFFFF
This commit is contained in:
parent
1e0501c31a
commit
926805bcf1
@ -583,7 +583,8 @@ START_TEST(test_tcp_fast_rexmit_wraparound)
|
|||||||
struct tcp_pcb* pcb;
|
struct tcp_pcb* pcb;
|
||||||
struct pbuf* p;
|
struct pbuf* p;
|
||||||
err_t err;
|
err_t err;
|
||||||
u16_t i, sent_total = 0;
|
size_t i;
|
||||||
|
u16_t sent_total = 0;
|
||||||
LWIP_UNUSED_ARG(_i);
|
LWIP_UNUSED_ARG(_i);
|
||||||
|
|
||||||
for (i = 0; i < sizeof(tx_data); i++) {
|
for (i = 0; i < sizeof(tx_data); i++) {
|
||||||
@ -669,7 +670,8 @@ START_TEST(test_tcp_rto_rexmit_wraparound)
|
|||||||
struct test_tcp_counters counters;
|
struct test_tcp_counters counters;
|
||||||
struct tcp_pcb* pcb;
|
struct tcp_pcb* pcb;
|
||||||
err_t err;
|
err_t err;
|
||||||
u16_t i, sent_total = 0;
|
size_t i;
|
||||||
|
u16_t sent_total = 0;
|
||||||
LWIP_UNUSED_ARG(_i);
|
LWIP_UNUSED_ARG(_i);
|
||||||
|
|
||||||
for (i = 0; i < sizeof(tx_data); i++) {
|
for (i = 0; i < sizeof(tx_data); i++) {
|
||||||
@ -744,7 +746,8 @@ static void test_tcp_tx_full_window_lost(u8_t zero_window_probe_from_unsent)
|
|||||||
struct tcp_pcb* pcb;
|
struct tcp_pcb* pcb;
|
||||||
struct pbuf *p;
|
struct pbuf *p;
|
||||||
err_t err;
|
err_t err;
|
||||||
u16_t sent_total, i;
|
size_t i;
|
||||||
|
u16_t sent_total;
|
||||||
u8_t expected = 0xFE;
|
u8_t expected = 0xFE;
|
||||||
|
|
||||||
for (i = 0; i < sizeof(tx_data); i++) {
|
for (i = 0; i < sizeof(tx_data); i++) {
|
||||||
@ -896,7 +899,8 @@ START_TEST(test_tcp_rto_tracking)
|
|||||||
struct tcp_pcb* pcb;
|
struct tcp_pcb* pcb;
|
||||||
struct pbuf* p;
|
struct pbuf* p;
|
||||||
err_t err;
|
err_t err;
|
||||||
u16_t i, sent_total = 0;
|
size_t i;
|
||||||
|
u16_t sent_total = 0;
|
||||||
LWIP_UNUSED_ARG(_i);
|
LWIP_UNUSED_ARG(_i);
|
||||||
|
|
||||||
for (i = 0; i < sizeof(tx_data); i++) {
|
for (i = 0; i < sizeof(tx_data); i++) {
|
||||||
@ -1016,7 +1020,7 @@ START_TEST(test_tcp_rto_timeout)
|
|||||||
struct test_tcp_counters counters;
|
struct test_tcp_counters counters;
|
||||||
struct tcp_pcb *pcb, *cur;
|
struct tcp_pcb *pcb, *cur;
|
||||||
err_t err;
|
err_t err;
|
||||||
u16_t i;
|
size_t i;
|
||||||
LWIP_UNUSED_ARG(_i);
|
LWIP_UNUSED_ARG(_i);
|
||||||
|
|
||||||
/* Setup data for a single segment */
|
/* Setup data for a single segment */
|
||||||
@ -1090,7 +1094,7 @@ START_TEST(test_tcp_zwp_timeout)
|
|||||||
struct tcp_pcb *pcb, *cur;
|
struct tcp_pcb *pcb, *cur;
|
||||||
struct pbuf* p;
|
struct pbuf* p;
|
||||||
err_t err;
|
err_t err;
|
||||||
u16_t i;
|
size_t i;
|
||||||
LWIP_UNUSED_ARG(_i);
|
LWIP_UNUSED_ARG(_i);
|
||||||
|
|
||||||
/* Setup data for two segments */
|
/* Setup data for two segments */
|
||||||
@ -1198,7 +1202,7 @@ START_TEST(test_tcp_persist_split)
|
|||||||
struct tcp_pcb *pcb;
|
struct tcp_pcb *pcb;
|
||||||
struct pbuf* p;
|
struct pbuf* p;
|
||||||
err_t err;
|
err_t err;
|
||||||
u16_t i;
|
size_t i;
|
||||||
LWIP_UNUSED_ARG(_i);
|
LWIP_UNUSED_ARG(_i);
|
||||||
|
|
||||||
/* Setup data for four segments */
|
/* Setup data for four segments */
|
||||||
|
Loading…
Reference in New Issue
Block a user