ReactOS 0.4.16-dev-297-gc569aee
|
#include "test_tcp.h"
#include "lwip/priv/tcp_priv.h"
#include "lwip/stats.h"
#include "lwip/inet.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 void | tcp_setup (void) |
static void | tcp_teardown (void) |
START_TEST (test_tcp_new_abort) | |
END_TEST | START_TEST (test_tcp_listen_passive_open) |
END_TEST | START_TEST (test_tcp_recv_inseq) |
END_TEST | START_TEST (test_tcp_recv_inseq_trim) |
static END_TEST err_t | test_tcp_recv_expect1byte (void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) |
static err_t | test_tcp_recv_expectclose (void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) |
START_TEST (test_tcp_passive_close) | |
END_TEST | START_TEST (test_tcp_active_abort) |
END_TEST | START_TEST (test_tcp_malformed_header) |
END_TEST | START_TEST (test_tcp_fast_retx_recover) |
static void | check_seqnos (struct tcp_seg *segs, int num_expected, u32_t *seqnos_expected) |
START_TEST (test_tcp_fast_rexmit_wraparound) | |
END_TEST | START_TEST (test_tcp_rto_rexmit_wraparound) |
static END_TEST void | test_tcp_tx_full_window_lost (u8_t zero_window_probe_from_unsent) |
START_TEST (test_tcp_tx_full_window_lost_from_unsent) | |
END_TEST | START_TEST (test_tcp_tx_full_window_lost_from_unacked) |
END_TEST | START_TEST (test_tcp_retx_add_to_sent) |
END_TEST | START_TEST (test_tcp_rto_tracking) |
static END_TEST void | test_tcp_rto_timeout_impl (int link_down) |
START_TEST (test_tcp_rto_timeout) | |
END_TEST | START_TEST (test_tcp_rto_timeout_link_down) |
static END_TEST void | test_tcp_rto_timeout_syn_sent_impl (int link_down) |
START_TEST (test_tcp_rto_timeout_syn_sent) | |
END_TEST | START_TEST (test_tcp_rto_timeout_syn_sent_link_down) |
static END_TEST void | test_tcp_zwp_timeout_impl (int link_down) |
START_TEST (test_tcp_zwp_timeout) | |
END_TEST | START_TEST (test_tcp_zwp_timeout_link_down) |
END_TEST | START_TEST (test_tcp_persist_split) |
END_TEST Suite * | tcp_suite (void) |
Variables | |
static u32_t | seqnos [] |
static u8_t | test_tcp_timer |
static struct netif * | old_netif_list |
static struct netif * | old_netif_default |
static END_TEST u8_t | tx_data [TCP_WND *2] |
#define ISS 6510 |
Definition at line 22 of file test_tcp.c.
Definition at line 21 of file test_tcp.c.
|
static |
Definition at line 614 of file test_tcp.c.
Referenced by START_TEST(), and test_tcp_zwp_timeout_impl().
END_TEST START_TEST | ( | test_tcp_active_abort | ) |
Definition at line 334 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_fast_retx_recover | ) |
Provoke fast retransmission by duplicate ACKs and then recover by ACKing all sent data. At the end, send more data.
Definition at line 446 of file test_tcp.c.
START_TEST | ( | test_tcp_fast_rexmit_wraparound | ) |
Send data with sequence numbers that wrap around the u32_t range. Then, provoke fast retransmission by duplicate ACKs and check that all segment lists are still properly sorted.
Definition at line 628 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_listen_passive_open | ) |
Call tcp_new() and tcp_abort() and test memp stats
Definition at line 101 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_malformed_header | ) |
Check that we handle malformed tcp headers, and discard the pbuf(s)
Definition at line 382 of file test_tcp.c.
START_TEST | ( | test_tcp_new_abort | ) |
Call tcp_new() and tcp_abort() and test memp stats
Definition at line 83 of file test_tcp.c.
START_TEST | ( | test_tcp_passive_close | ) |
Definition at line 299 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_persist_split | ) |
Definition at line 1514 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_recv_inseq | ) |
Create an ESTABLISHED pcb and check if receive callback is called
Definition at line 160 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_recv_inseq_trim | ) |
Create an ESTABLISHED pcb and check if receive callback is called if a segment overlapping rcv_nxt is received
Definition at line 206 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_retx_add_to_sent | ) |
Send data, provoke retransmission and then add data to a segment that already has been sent before.
Definition at line 949 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_rto_rexmit_wraparound | ) |
Send data with sequence numbers that wrap around the u32_t range. Then, provoke RTO retransmission and check that all segment lists are still properly sorted.
Definition at line 717 of file test_tcp.c.
START_TEST | ( | test_tcp_rto_timeout | ) |
Definition at line 1275 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_rto_timeout_link_down | ) |
Definition at line 1282 of file test_tcp.c.
START_TEST | ( | test_tcp_rto_timeout_syn_sent | ) |
Definition at line 1371 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_rto_timeout_syn_sent_link_down | ) |
Definition at line 1378 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_rto_tracking | ) |
Definition at line 1068 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_tx_full_window_lost_from_unacked | ) |
Definition at line 940 of file test_tcp.c.
START_TEST | ( | test_tcp_tx_full_window_lost_from_unsent | ) |
Definition at line 933 of file test_tcp.c.
START_TEST | ( | test_tcp_zwp_timeout | ) |
Definition at line 1500 of file test_tcp.c.
END_TEST START_TEST | ( | test_tcp_zwp_timeout_link_down | ) |
Definition at line 1507 of file test_tcp.c.
Definition at line 48 of file test_tcp.c.
Referenced by tcp_suite().
END_TEST Suite * tcp_suite | ( | void | ) |
Create the suite including all tests for this module
Definition at line 1674 of file test_tcp.c.
Referenced by main().
Definition at line 68 of file test_tcp.c.
Referenced by tcp_suite().
|
static |
Definition at line 280 of file test_tcp.c.
Referenced by START_TEST(), and test_tcp_recv_expectclose().
|
static |
Definition at line 261 of file test_tcp.c.
Referenced by test_tcp_recv_expect1byte().
Definition at line 1191 of file test_tcp.c.
Referenced by START_TEST().
Definition at line 1289 of file test_tcp.c.
Referenced by START_TEST().
Definition at line 35 of file test_tcp.c.
Referenced by START_TEST(), test_tcp_rto_timeout_impl(), test_tcp_rto_timeout_syn_sent_impl(), test_tcp_tx_full_window_lost(), and test_tcp_zwp_timeout_impl().
Provoke fast retransmission by duplicate ACKs and then recover by ACKing all sent data. At the end, send more data.
Definition at line 794 of file test_tcp.c.
Referenced by START_TEST().
Definition at line 1385 of file test_tcp.c.
Referenced by START_TEST().
Definition at line 45 of file test_tcp.c.
Referenced by tcp_setup(), and tcp_teardown().
Definition at line 44 of file test_tcp.c.
Referenced by tcp_setup(), and tcp_teardown().
|
static |
Definition at line 23 of file test_tcp.c.
Referenced by START_TEST(), and test_tcp_zwp_timeout_impl().
|
static |
Definition at line 31 of file test_tcp.c.
Referenced by tcp_setup(), and test_tcp_tmr().
Definition at line 611 of file test_tcp.c.
Referenced by START_TEST(), test_tcp_rto_timeout_impl(), test_tcp_rto_timeout_syn_sent_impl(), test_tcp_tx_full_window_lost(), and test_tcp_zwp_timeout_impl().