ReactOS 0.4.16-dev-122-g325d74c
|
#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) |
#define | FIN_TEST(name, num) |
Functions | |
static int | tcp_oos_count (struct tcp_pcb *pcb) |
static int | tcp_oos_pbuf_count (struct tcp_pcb *pcb) |
static u32_t | tcp_oos_seg_seqno (struct tcp_pcb *pcb, int seg_index) |
static int | tcp_oos_seg_tcplen (struct tcp_pcb *pcb, int seg_index) |
static int | tcp_oos_tcplen (struct tcp_pcb *pcb) |
static void | tcp_oos_setup (void) |
static void | tcp_oos_teardown (void) |
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_max_bytes) |
END_TEST | START_TEST (test_tcp_recv_ooseq_max_pbufs) |
static END_TEST void | check_rx_counters (struct tcp_pcb *pcb, struct test_tcp_counters *counters, u32_t exp_close_calls, u32_t exp_rx_calls, u32_t exp_rx_bytes, u32_t exp_err_calls, int exp_oos_count, int exp_oos_len) |
static void | test_tcp_recv_ooseq_double_FINs (int delay_packet) |
Suite * | tcp_oos_suite (void) |
Variables | |
static END_TEST char | data_full_wnd [TCP_WND] |
#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.
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 891 of file test_tcp_oos.c.
|
static |
Definition at line 702 of file test_tcp_oos.c.
Referenced by test_tcp_recv_ooseq_double_FINs().
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 279 of file test_tcp_oos.c.
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 139 of file test_tcp_oos.c.
END_TEST START_TEST | ( | test_tcp_recv_ooseq_max_bytes | ) |
Definition at line 543 of file test_tcp_oos.c.
END_TEST START_TEST | ( | test_tcp_recv_ooseq_max_pbufs | ) |
Definition at line 622 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 453 of file test_tcp_oos.c.
Get the numbers of segments on the ooseq list
Definition at line 28 of file test_tcp_oos.c.
Referenced by check_rx_counters(), and START_TEST().
Get the numbers of pbufs on the ooseq list
Definition at line 40 of file test_tcp_oos.c.
Referenced by START_TEST().
Get the seqno of a segment (by index) on the ooseq list
pcb | the pcb to check for ooseq segments |
seg_index | index of the segment on the ooseq list |
Definition at line 58 of file test_tcp_oos.c.
Referenced by START_TEST().
Get the tcplen (datalen + SYN/FIN) of a segment (by index) on the ooseq list
pcb | the pcb to check for ooseq segments |
seg_index | index of the segment on the ooseq list |
Definition at line 82 of file test_tcp_oos.c.
Referenced by START_TEST().
Definition at line 121 of file test_tcp_oos.c.
Referenced by tcp_oos_suite().
Suite * tcp_oos_suite | ( | void | ) |
Create the suite including all tests for this module
Definition at line 918 of file test_tcp_oos.c.
Referenced by main().
Get the tcplen (datalen + SYN/FIN) of all segments on the ooseq list
pcb | the pcb to check for ooseq segments |
Definition at line 105 of file test_tcp_oos.c.
Referenced by check_rx_counters(), and START_TEST().
Definition at line 127 of file test_tcp_oos.c.
Referenced by tcp_oos_suite().
Definition at line 724 of file test_tcp_oos.c.
Definition at line 449 of file test_tcp_oos.c.
Referenced by START_TEST(), and test_tcp_recv_ooseq_double_FINs().