Defines | Functions

alexb/lib/lwip/contrib/test/unit/tcp/test_tcp_oos.c File Reference

#include "test_tcp_oos.h"
#include "lwip/tcp_impl.h"
#include "lwip/stats.h"
#include "tcp_helper.h"

Defines

#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).
#define EXPECT_OOSEQ(x)   EXPECT(x)

Functions

 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
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
 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
END_TEST Suite * tcp_oos_suite (void)
 Create the suite including all tests for this module.

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

#define EXPECT_OOSEQ (   x  )     EXPECT(x)

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

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

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

END_TEST Suite* tcp_oos_suite ( void   ) 

Create the suite including all tests for this module.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines