STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros | Functions
test_tcp_oos.c File Reference
#include "test_tcp_oos.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 CHECK_SEGMENTS_ON_OOSEQ   1
 
#define EXPECT_OOSEQ(x)   EXPECT(x)
 
#define FIN_TEST(name, num)
 

Functions

 START_TEST (test_tcp_recv_ooseq_FIN_OOSEQ)
 
END_TEST START_TEST (test_tcp_recv_ooseq_FIN_INSEQ)
 
 START_TEST (test_tcp_recv_ooseq_overrun_rxwin)
 
END_TEST START_TEST (test_tcp_recv_ooseq_overrun_rxwin_edge)
 
END_TEST START_TEST (test_tcp_recv_ooseq_max_bytes)
 
END_TEST START_TEST (test_tcp_recv_ooseq_max_pbufs)
 
Suite * tcp_oos_suite (void)
 

Macro Definition Documentation

#define CHECK_SEGMENTS_ON_OOSEQ   1

CHECK_SEGMENTS_ON_OOSEQ: 1: check count, seqno and len of segments on pcb->ooseq (strict) 0: only check that bytes are received in correct order (less strict)

Definition at line 17 of file test_tcp_oos.c.

#define EXPECT_OOSEQ (   x)    EXPECT(x)

Definition at line 20 of file test_tcp_oos.c.

#define FIN_TEST (   name,
  num 
)
Value:
START_TEST(name) \
{ \
LWIP_UNUSED_ARG(_i); \
test_tcp_recv_ooseq_double_FINs(num); \
} \
END_TEST
u16_t num
Definition: memp_priv.h:128
START_TEST(test_tcp_recv_ooseq_FIN_OOSEQ)
Definition: test_tcp_oos.c:143

create multiple segments and pass them to tcp_input with the first segment missing to simulate overruning the rxwin with ooseq queueing enabled

Definition at line 995 of file test_tcp_oos.c.

Function Documentation

START_TEST ( test_tcp_recv_ooseq_FIN_OOSEQ  )

create multiple segments and pass them to tcp_input in a wrong order to see if ooseq-caching works correctly FIN is received in out-of-sequence segments only

Definition at line 143 of file test_tcp_oos.c.

END_TEST START_TEST ( test_tcp_recv_ooseq_FIN_INSEQ  )

create multiple segments and pass them to tcp_input in a wrong order to see if ooseq-caching works correctly FIN is received IN-SEQUENCE at the end

Definition at line 285 of file test_tcp_oos.c.

START_TEST ( test_tcp_recv_ooseq_overrun_rxwin  )

create multiple segments and pass them to tcp_input with the first segment missing to simulate overruning the rxwin with ooseq queueing enabled

Definition at line 461 of file test_tcp_oos.c.

END_TEST START_TEST ( test_tcp_recv_ooseq_overrun_rxwin_edge  )

similar to above test, except seqno starts near the max rxwin

Definition at line 554 of file test_tcp_oos.c.

END_TEST START_TEST ( test_tcp_recv_ooseq_max_bytes  )

Definition at line 646 of file test_tcp_oos.c.

END_TEST START_TEST ( test_tcp_recv_ooseq_max_pbufs  )

Definition at line 727 of file test_tcp_oos.c.

Suite* tcp_oos_suite ( void  )

Create the suite including all tests for this module

Definition at line 1022 of file test_tcp_oos.c.