#include "tcpproxy.h"
Go to the source code of this file.
Defines | |
#define | TCP_PROTO 6 |
#define | IP_VERSION 4 |
#define | IP_START_TTL 254 |
#define | TCP_LINK_MSS 1402 |
#define | TCP_TWO_MSL 60000 |
#define | TCP_WIN_CLAMP_SIZE 12618 |
Typedefs | |
typedef tcp_cid | Ttcp_cid |
typedef enum tcp_state | Ttcp_state |
typedef tcp_cb | Ttcp_cb |
Enumerations | |
enum | tcp_state { TCPS_FREE = 0, TCPS_NEW, TCPS_SYN_SENT, TCPS_SYN_RECV, TCPS_ESTABLISHED, TCPS_FIN_WAIT1, TCPS_FIN_WAIT2, TCPS_TIME_WAIT, TCPS_CLOSED, TCPS_CLOSE_WAIT, TCPS_LAST_ACK, TCPS_CLOSING, TCPS_MAX_STATES } |
enum | { TCP_INIT_MH_SEQ = 1, TCP_INIT_MH_ACK = 2, TCP_INIT_FH_SEQ = 4, TCP_INIT_FH_ACK = 8 } |
Functions | |
void | init_tcp () |
void | cleanup_tcp () |
int | seq_cmp (unsigned a, unsigned b) |
int | tcp_data_size (Tpacket_data *pd) |
void | tcp_timeout (void *ptr) |
int | handle_tcp (Tpacket_data *pd) |
|
Definition at line 12 of file tcp.h. Referenced by send_tcp_rst(). |
|
Definition at line 11 of file tcp.h. Referenced by send_tcp_rst(). |
|
|
|
Definition at line 10 of file tcp.h. Referenced by send_tcp_rst(), and tcp_chksum(). |
|
Definition at line 14 of file tcp.h. Referenced by tcps_close_wait(), tcps_closing(), tcps_fin_wait1(), tcps_fin_wait2(), and tcps_new(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 52 of file tcp.c. Referenced by main(). |
|
|
Definition at line 34 of file tcp.c. References tcp_cb::out_queue, tcp_cb::state, TCP_MAX_CONN, tcp_tab_mut, and TCPS_FREE. Referenced by main(). |
|
Definition at line 66 of file tcp.c. Referenced by add_tcp_sent(), handle_tcp(), and mh_ack_rcvd(). |
|
Definition at line 305 of file tcp.c. References packet_data::ip, packet_data::ipq_pm, and packet_data::trans. Referenced by handle_tcp(), and scheduler(). |
|
Definition at line 634 of file tcp.c. References dealloc_tcp_cb(), DPRINT, EPRINT, tcp_cb::mut, mutex_lock(), mutex_unlock(), tcp_cb::state, TCPS_CLOSED, TCPS_LAST_ACK, TCPS_SYN_SENT, and TCPS_TIME_WAIT. Referenced by clear_tcp_timers(), handle_tcp(), tcps_close_wait(), tcps_closing(), tcps_fin_wait1(), tcps_fin_wait2(), tcps_new(), and tcps_syn_sent(). |