STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros | Functions
test_tcp.c File Reference
#include "test_tcp.h"
#include "lwip/priv/tcp_priv.h"
#include "lwip/stats.h"
#include "tcp_helper.h"

Go to the source code of this file.

Macros

#define SEQNO1   (0xFFFFFF00 - TCP_MSS)
 
#define ISS   6510
 
#define SEQNO1   (0xFFFFFF00 - TCP_MSS)
 
#define ISS   6510
 

Functions

 START_TEST (test_tcp_new_abort)
 
END_TEST START_TEST (test_tcp_recv_inseq)
 
END_TEST START_TEST (test_tcp_fast_retx_recover)
 
 START_TEST (test_tcp_fast_rexmit_wraparound)
 
END_TEST START_TEST (test_tcp_rto_rexmit_wraparound)
 
 START_TEST (test_tcp_tx_full_window_lost_from_unsent)
 
END_TEST START_TEST (test_tcp_tx_full_window_lost_from_unacked)
 
END_TEST Suite * tcp_suite (void)
 

Macro Definition Documentation

#define ISS   6510
#define ISS   6510
#define SEQNO1   (0xFFFFFF00 - TCP_MSS)
#define SEQNO1   (0xFFFFFF00 - TCP_MSS)

Function Documentation

START_TEST ( test_tcp_new_abort  )

Call tcp_new() and tcp_abort() and test memp stats

Definition at line 57 of file test_tcp.c.

END_TEST START_TEST ( test_tcp_recv_inseq  )

Create an ESTABLISHED pcb and check if receive callback is called

Definition at line 75 of file test_tcp.c.

END_TEST START_TEST ( test_tcp_fast_retx_recover  )

Provoke fast retransmission by duplicate ACKs and then recover by ACKing all sent data. At the end, send more data.

Definition at line 127 of file test_tcp.c.

START_TEST ( test_tcp_fast_rexmit_wraparound  )

Send data with sequence numbers that wrap around the u32_t range. Then, provoke fast retransmission by duplicate ACKs and check that all segment lists are still properly sorted.

Definition at line 314 of file test_tcp.c.

END_TEST START_TEST ( test_tcp_rto_rexmit_wraparound  )

Send data with sequence numbers that wrap around the u32_t range. Then, provoke RTO retransmission and check that all segment lists are still properly sorted.

Definition at line 412 of file test_tcp.c.

START_TEST ( test_tcp_tx_full_window_lost_from_unsent  )

Definition at line 643 of file test_tcp.c.

END_TEST START_TEST ( test_tcp_tx_full_window_lost_from_unacked  )

Definition at line 650 of file test_tcp.c.

END_TEST Suite* tcp_suite ( void  )

Create the suite including all tests for this module

Definition at line 659 of file test_tcp.c.