ReactOS 0.4.16-dev-297-gc569aee
|
#include "test_tcp_state.h"
#include "lwip/priv/tcp_priv.h"
#include "lwip/stats.h"
#include "tcp_helper.h"
#include "lwip/inet_chksum.h"
Go to the source code of this file.
Macros | |
#define | SEQNO1 (0xFFFFFF00 - TCP_MSS) |
#define | ISS 6510 |
Functions | |
static void | test_tcp_tmr (void) |
static u8_t | get_tcp_flags_from_packet (struct pbuf *p, u16_t tcp_hdr_offset) |
static struct tcp_pcb_listen * | create_listening_pcb (u16_t local_port, struct test_tcp_counters *counters) |
static void | tcp_state_setup (void) |
static void | tcp_state_teardown (void) |
static void | test_rst_generation_with_incoming_packet (struct pbuf *p, struct netif *netif, struct test_tcp_txcounters *tx_counters) |
START_TEST (test_tcp_new_max_num) | |
END_TEST | START_TEST (test_tcp_new_max_num_remove_TIME_WAIT) |
END_TEST | START_TEST (test_tcp_connect_active_open) |
END_TEST | START_TEST (test_tcp_active_close) |
END_TEST | START_TEST (test_tcp_imultaneous_close) |
END_TEST | START_TEST (test_tcp_gen_rst_in_CLOSED) |
END_TEST | START_TEST (test_tcp_gen_rst_in_LISTEN) |
END_TEST | START_TEST (test_tcp_gen_rst_in_TIME_WAIT) |
END_TEST | START_TEST (test_tcp_process_rst_seqno) |
END_TEST | START_TEST (test_tcp_gen_rst_in_SYN_SENT_ackseq) |
END_TEST | START_TEST (test_tcp_gen_rst_in_SYN_SENT_non_syn_ack) |
END_TEST | START_TEST (test_tcp_gen_rst_in_SYN_RCVD) |
END_TEST | START_TEST (test_tcp_receive_rst_SYN_RCVD_to_LISTEN) |
END_TEST Suite * | tcp_state_suite (void) |
Variables | |
static struct netif | test_netif = {0} |
static struct test_tcp_txcounters | test_txcounters = {0} |
static u8_t | test_tcp_timer |
static struct netif * | old_netif_list |
static struct netif * | old_netif_default |
#define ISS 6510 |
Definition at line 20 of file test_tcp_state.c.
Definition at line 19 of file test_tcp_state.c.
|
static |
Definition at line 48 of file test_tcp_state.c.
Referenced by START_TEST().
Definition at line 35 of file test_tcp_state.c.
Referenced by START_TEST(), and test_rst_generation_with_incoming_packet().
END_TEST START_TEST | ( | test_tcp_active_close | ) |
Definition at line 253 of file test_tcp_state.c.
END_TEST START_TEST | ( | test_tcp_connect_active_open | ) |
Definition at line 203 of file test_tcp_state.c.
END_TEST START_TEST | ( | test_tcp_gen_rst_in_CLOSED | ) |
Definition at line 375 of file test_tcp_state.c.
END_TEST START_TEST | ( | test_tcp_gen_rst_in_LISTEN | ) |
Definition at line 395 of file test_tcp_state.c.
END_TEST START_TEST | ( | test_tcp_gen_rst_in_SYN_RCVD | ) |
Definition at line 559 of file test_tcp_state.c.
END_TEST START_TEST | ( | test_tcp_gen_rst_in_SYN_SENT_ackseq | ) |
Definition at line 505 of file test_tcp_state.c.
END_TEST START_TEST | ( | test_tcp_gen_rst_in_SYN_SENT_non_syn_ack | ) |
Definition at line 532 of file test_tcp_state.c.
END_TEST START_TEST | ( | test_tcp_gen_rst_in_TIME_WAIT | ) |
Definition at line 425 of file test_tcp_state.c.
END_TEST START_TEST | ( | test_tcp_imultaneous_close | ) |
Definition at line 330 of file test_tcp_state.c.
START_TEST | ( | test_tcp_new_max_num | ) |
Definition at line 135 of file test_tcp_state.c.
END_TEST START_TEST | ( | test_tcp_new_max_num_remove_TIME_WAIT | ) |
Definition at line 166 of file test_tcp_state.c.
END_TEST START_TEST | ( | test_tcp_process_rst_seqno | ) |
Definition at line 448 of file test_tcp_state.c.
END_TEST START_TEST | ( | test_tcp_receive_rst_SYN_RCVD_to_LISTEN | ) |
Definition at line 601 of file test_tcp_state.c.
Definition at line 76 of file test_tcp_state.c.
Referenced by tcp_state_suite().
END_TEST Suite * tcp_state_suite | ( | void | ) |
Create the suite including all tests for this module
Definition at line 647 of file test_tcp_state.c.
Referenced by main().
Definition at line 98 of file test_tcp_state.c.
Referenced by tcp_state_suite().
|
static |
Definition at line 112 of file test_tcp_state.c.
Referenced by START_TEST().
Definition at line 25 of file test_tcp_state.c.
Referenced by START_TEST().
Definition at line 73 of file test_tcp_state.c.
Referenced by tcp_state_setup(), and tcp_state_teardown().
Definition at line 72 of file test_tcp_state.c.
Referenced by tcp_state_setup(), and tcp_state_teardown().
Definition at line 16 of file test_tcp_state.c.
Referenced by create_listening_pcb(), START_TEST(), and tcp_state_setup().
|
static |
Definition at line 21 of file test_tcp_state.c.
Referenced by tcp_state_setup(), and test_tcp_tmr().
|
static |
Definition at line 17 of file test_tcp_state.c.
Referenced by START_TEST(), and tcp_state_setup().