Classes |
struct | test_tcp_counters |
Functions |
void | tcp_remove_all (void) |
| Remove all pcbs on listen-, active- and time-wait-list (bound- isn't exported).
|
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.
|
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
- IP-addresses, ports, seqno and ackno are taken from pcb
- seqno and ackno can be altered with an offset.
|
void | tcp_set_state (struct tcp_pcb *pcb, enum tcp_state state, ip_addr_t *local_ip, ip_addr_t *remote_ip, u16_t local_port, u16_t remote_port) |
| Safely bring a tcp_pcb into the requested state.
|
void | test_tcp_counters_err (void *arg, err_t err) |
err_t | test_tcp_counters_recv (void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) |
struct tcp_pcb * | test_tcp_new_counters_pcb (struct test_tcp_counters *counters) |
| Allocate a pcb and set up the test_tcp_counters_* callbacks.
|