ReactOS 0.4.16-dev-320-g3bd9ddc
|
#include "tcp_helper.h"
#include "lwip/priv/tcp_priv.h"
#include "lwip/stats.h"
#include "lwip/pbuf.h"
#include "lwip/inet.h"
#include "lwip/inet_chksum.h"
#include "lwip/ip_addr.h"
Go to the source code of this file.
Variables | |
const ip_addr_t | test_local_ip = IPADDR4_INIT_BYTES(192, 168, 1, 1) |
const ip_addr_t | test_remote_ip = IPADDR4_INIT_BYTES(192, 168, 1, 2) |
const ip_addr_t | test_netmask = IPADDR4_INIT_BYTES(255, 255, 255, 0) |
struct pbuf * tcp_create_rx_segment | ( | struct tcp_pcb * | pcb, |
void * | data, | ||
size_t | data_len, | ||
u32_t | seqno_offset, | ||
u32_t | ackno_offset, | ||
u8_t | headerflags | ||
) |
Create a TCP segment usable for passing to tcp_input
Definition at line 130 of file tcp_helper.c.
Referenced by START_TEST(), test_tcp_recv_ooseq_double_FINs(), and test_tcp_tx_full_window_lost().
struct pbuf * tcp_create_rx_segment_wnd | ( | struct tcp_pcb * | pcb, |
void * | data, | ||
size_t | data_len, | ||
u32_t | seqno_offset, | ||
u32_t | ackno_offset, | ||
u8_t | headerflags, | ||
u16_t | wnd | ||
) |
Create a TCP segment usable for passing to tcp_input
Definition at line 142 of file tcp_helper.c.
Referenced by START_TEST(), test_tcp_tx_full_window_lost(), and test_tcp_zwp_timeout_impl().
struct pbuf * tcp_create_segment | ( | ip_addr_t * | src_ip, |
ip_addr_t * | dst_ip, | ||
u16_t | src_port, | ||
u16_t | dst_port, | ||
void * | data, | ||
size_t | data_len, | ||
u32_t | seqno, | ||
u32_t | ackno, | ||
u8_t | headerflags | ||
) |
Create a TCP segment usable for passing to tcp_input
Definition at line 117 of file tcp_helper.c.
Referenced by START_TEST(), and tcp_create_rx_segment().
|
static |
Create a TCP segment usable for passing to tcp_input
Definition at line 52 of file tcp_helper.c.
Referenced by tcp_create_rx_segment_wnd(), and tcp_create_segment().
Remove all pcbs on the given list.
Definition at line 20 of file tcp_helper.c.
Referenced by tcp_remove_all().
Remove all pcbs on listen-, active- and time-wait-list (bound- isn't exported).
Definition at line 38 of file tcp_helper.c.
Referenced by tcp_oos_setup(), tcp_oos_teardown(), tcp_setup(), tcp_state_setup(), tcp_state_teardown(), and tcp_teardown().
void tcp_set_state | ( | struct tcp_pcb * | pcb, |
enum tcp_state | state, | ||
const ip_addr_t * | local_ip, | ||
const ip_addr_t * | remote_ip, | ||
u16_t | local_port, | ||
u16_t | remote_port | ||
) |
Safely bring a tcp_pcb into the requested state
Definition at line 151 of file tcp_helper.c.
|
static |
Definition at line 197 of file tcp_helper.c.
Referenced by test_tcp_counters_recv().
Definition at line 188 of file tcp_helper.c.
Referenced by test_tcp_new_counters_pcb().
Definition at line 218 of file tcp_helper.c.
Referenced by test_tcp_new_counters_pcb().
void test_tcp_init_netif | ( | struct netif * | netif, |
struct test_tcp_txcounters * | txcounters, | ||
const ip_addr_t * | ip_addr, | ||
const ip_addr_t * | netmask | ||
) |
Definition at line 305 of file tcp_helper.c.
Referenced by START_TEST(), tcp_state_setup(), test_tcp_recv_ooseq_double_FINs(), test_tcp_rto_timeout_impl(), test_tcp_rto_timeout_syn_sent_impl(), test_tcp_tx_full_window_lost(), and test_tcp_zwp_timeout_impl().
Calls tcp_input() after adjusting current_iphdr_dest
Definition at line 259 of file tcp_helper.c.
Referenced by START_TEST(), test_rst_generation_with_incoming_packet(), test_tcp_recv_ooseq_double_FINs(), test_tcp_tx_full_window_lost(), and test_tcp_zwp_timeout_impl().
|
static |
Definition at line 280 of file tcp_helper.c.
Referenced by test_tcp_init_netif().
struct tcp_pcb * test_tcp_new_counters_pcb | ( | struct test_tcp_counters * | counters | ) |
Allocate a pcb and set up the test_tcp_counters_* callbacks
Definition at line 244 of file tcp_helper.c.
Referenced by create_listening_pcb(), START_TEST(), test_tcp_recv_ooseq_double_FINs(), test_tcp_rto_timeout_impl(), test_tcp_rto_timeout_syn_sent_impl(), test_tcp_tx_full_window_lost(), and test_tcp_zwp_timeout_impl().
Definition at line 14 of file tcp_helper.c.
Referenced by START_TEST(), tcp_state_setup(), test_tcp_recv_ooseq_double_FINs(), test_tcp_rto_timeout_impl(), test_tcp_rto_timeout_syn_sent_impl(), test_tcp_tx_full_window_lost(), and test_tcp_zwp_timeout_impl().
Definition at line 16 of file tcp_helper.c.
Definition at line 15 of file tcp_helper.c.
Referenced by START_TEST(), test_tcp_recv_ooseq_double_FINs(), test_tcp_rto_timeout_impl(), test_tcp_tx_full_window_lost(), and test_tcp_zwp_timeout_impl().