uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
test_tcp_oos.c File Reference
#include "test_tcp_oos.h"
#include "lwip/tcp_impl.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)
 

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 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.

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 127 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 267 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 441 of file test_tcp_oos.c.

END_TEST Suite* tcp_oos_suite ( void  )

Create the suite including all tests for this module

Definition at line 532 of file test_tcp_oos.c.