mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-04 03:39:51 +00:00
Minor: cosmetic source code layout changes
This commit is contained in:
parent
8cb0b7d043
commit
86766f4e20
@ -43,4 +43,3 @@ int main()
|
|||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
|
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +152,6 @@ START_TEST(test_tcp_fast_retx_recover)
|
|||||||
pcb->mss = TCP_MSS;
|
pcb->mss = TCP_MSS;
|
||||||
/* disable initial congestion window (we don't send a SYN here...) */
|
/* disable initial congestion window (we don't send a SYN here...) */
|
||||||
pcb->cwnd = pcb->snd_wnd;
|
pcb->cwnd = pcb->snd_wnd;
|
||||||
//tcp_nagle_disable(pcb);
|
|
||||||
|
|
||||||
/* send data1 */
|
/* send data1 */
|
||||||
err = tcp_write(pcb, data1, sizeof(data1), TCP_WRITE_FLAG_COPY);
|
err = tcp_write(pcb, data1, sizeof(data1), TCP_WRITE_FLAG_COPY);
|
||||||
@ -204,16 +203,16 @@ START_TEST(test_tcp_fast_retx_recover)
|
|||||||
p = tcp_create_rx_segment(pcb, NULL, 0, 0, 0, TCP_ACK);
|
p = tcp_create_rx_segment(pcb, NULL, 0, 0, 0, TCP_ACK);
|
||||||
EXPECT_RET(p != NULL);
|
EXPECT_RET(p != NULL);
|
||||||
test_tcp_input(p, &netif);
|
test_tcp_input(p, &netif);
|
||||||
//EXPECT_RET(txcounters.num_tx_calls == 1);
|
/*EXPECT_RET(txcounters.num_tx_calls == 1);*/
|
||||||
EXPECT_RET(pcb->dupacks == 3);
|
EXPECT_RET(pcb->dupacks == 3);
|
||||||
memset(&txcounters, 0, sizeof(txcounters));
|
memset(&txcounters, 0, sizeof(txcounters));
|
||||||
// TODO: check expected data?
|
/* TODO: check expected data?*/
|
||||||
|
|
||||||
/* send data5, not output yet */
|
/* send data5, not output yet */
|
||||||
err = tcp_write(pcb, data5, sizeof(data5), TCP_WRITE_FLAG_COPY);
|
err = tcp_write(pcb, data5, sizeof(data5), TCP_WRITE_FLAG_COPY);
|
||||||
EXPECT_RET(err == ERR_OK);
|
EXPECT_RET(err == ERR_OK);
|
||||||
//err = tcp_output(pcb);
|
/*err = tcp_output(pcb);
|
||||||
//EXPECT_RET(err == ERR_OK);
|
EXPECT_RET(err == ERR_OK);*/
|
||||||
EXPECT_RET(txcounters.num_tx_calls == 0);
|
EXPECT_RET(txcounters.num_tx_calls == 0);
|
||||||
EXPECT_RET(txcounters.num_tx_bytes == 0);
|
EXPECT_RET(txcounters.num_tx_bytes == 0);
|
||||||
memset(&txcounters, 0, sizeof(txcounters));
|
memset(&txcounters, 0, sizeof(txcounters));
|
||||||
@ -228,8 +227,8 @@ START_TEST(test_tcp_fast_retx_recover)
|
|||||||
}
|
}
|
||||||
err = tcp_output(pcb);
|
err = tcp_output(pcb);
|
||||||
EXPECT_RET(err == ERR_OK);
|
EXPECT_RET(err == ERR_OK);
|
||||||
//EXPECT_RET(txcounters.num_tx_calls == 0);
|
/*EXPECT_RET(txcounters.num_tx_calls == 0);
|
||||||
//EXPECT_RET(txcounters.num_tx_bytes == 0);
|
EXPECT_RET(txcounters.num_tx_bytes == 0);*/
|
||||||
memset(&txcounters, 0, sizeof(txcounters));
|
memset(&txcounters, 0, sizeof(txcounters));
|
||||||
|
|
||||||
/* send even more data */
|
/* send even more data */
|
||||||
@ -257,7 +256,7 @@ START_TEST(test_tcp_fast_retx_recover)
|
|||||||
p = tcp_create_rx_segment(pcb, NULL, 0, 0, 12, TCP_ACK);
|
p = tcp_create_rx_segment(pcb, NULL, 0, 0, 12, TCP_ACK);
|
||||||
EXPECT_RET(p != NULL);
|
EXPECT_RET(p != NULL);
|
||||||
test_tcp_input(p, &netif);
|
test_tcp_input(p, &netif);
|
||||||
//EXPECT_RET(txcounters.num_tx_calls == 0);
|
/*EXPECT_RET(txcounters.num_tx_calls == 0);*/
|
||||||
|
|
||||||
/* ...and even more data */
|
/* ...and even more data */
|
||||||
err = tcp_write(pcb, data5, sizeof(data5), TCP_WRITE_FLAG_COPY);
|
err = tcp_write(pcb, data5, sizeof(data5), TCP_WRITE_FLAG_COPY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user