|
Classes |
| struct | tcp_port |
| struct | tcp_fd |
| struct | tcp_conn |
Defines |
| #define | IP_TCP_MIN_HDR_SIZE (IP_MIN_HDR_SIZE+TCP_MIN_HDR_SIZE) |
| #define | TCP_CONN_HASH_SHIFT 4 |
| #define | TCP_CONN_HASH_NR (1 << TCP_CONN_HASH_SHIFT) |
| #define | TPF_EMPTY 0x0 |
| #define | TPF_SUSPEND 0x1 |
| #define | TPF_READ_IP 0x2 |
| #define | TPF_READ_SP 0x4 |
| #define | TPF_WRITE_IP 0x8 |
| #define | TPF_WRITE_SP 0x10 |
| #define | TPF_DELAY_TCP 0x40 |
| #define | TPS_EMPTY 0 |
| #define | TPS_SETPROTO 1 |
| #define | TPS_GETCONF 2 |
| #define | TPS_MAIN 3 |
| #define | TPS_ERROR 4 |
| #define | TFL_LISTEN_MAX 5 |
| #define | TFF_EMPTY 0x0 |
| #define | TFF_INUSE 0x1 |
| #define | TFF_READ_IP 0x2 |
| #define | TFF_WRITE_IP 0x4 |
| #define | TFF_IOCTL_IP 0x8 |
| #define | TFF_CONF_SET 0x10 |
| #define | TFF_IOC_INIT_SP 0x20 |
| #define | TFF_LISTENQ 0x40 |
| #define | TFF_CONNECTING 0x80 |
| #define | TFF_CONNECTED 0x100 |
| #define | TFF_WR_URG 0x200 |
| #define | TFF_PUSH_DATA 0x400 |
| #define | TFF_RECV_URG 0x800 |
| #define | TFF_SEL_READ 0x1000 |
| #define | TFF_SEL_WRITE 0x2000 |
| #define | TFF_SEL_EXCEPT 0x4000 |
| #define | TFF_DEL_RST 0x8000 |
| #define | TFF_COOKIE 0x10000 |
| #define | TCF_EMPTY 0x0 |
| #define | TCF_INUSE 0x1 |
| #define | TCF_FIN_RECV 0x2 |
| #define | TCF_RCV_PUSH 0x4 |
| #define | TCF_MORE2WRITE 0x8 |
| #define | TCF_SEND_ACK 0x10 |
| #define | TCF_FIN_SENT 0x20 |
| #define | TCF_BSD_URG 0x40 |
| #define | TCF_NO_PUSH 0x80 |
| #define | TCF_PUSH_NOW 0x100 |
| #define | TCF_PMTU 0x200 |
| #define | TCS_CLOSED 0 |
| #define | TCS_LISTEN 1 |
| #define | TCS_SYN_RECEIVED 2 |
| #define | TCS_SYN_SENT 3 |
| #define | TCS_ESTABLISHED 4 |
| #define | TCS_CLOSING 5 |
| #define | TCP_FD_NR (10*IP_PORT_MAX) |
| #define | TCP_CONN_NR (2*TCP_FD_NR) |
| #define | tcp_Lmod4G(n1, n2) (!!(((n1)-(n2)) & 0x80000000L)) |
| #define | tcp_GEmod4G(n1, n2) (!(((n1)-(n2)) & 0x80000000L)) |
| #define | tcp_Gmod4G(n1, n2) (!!(((n2)-(n1)) & 0x80000000L)) |
| #define | tcp_LEmod4G(n1, n2) (!(((n2)-(n1)) & 0x80000000L)) |
Typedefs |
| typedef struct tcp_port | tcp_port_t |
| typedef struct tcp_fd | tcp_fd_t |
| typedef struct tcp_conn | tcp_conn_t |
Functions |
| void tcp_frag2conn | ARGS ((tcp_conn_t *tcp_conn, ip_hdr_t *ip_hdr, tcp_hdr_t *tcp_hdr, acc_t *tcp_data, size_t data_len)) |
| void tcp_fd_read | ARGS ((tcp_conn_t *tcp_conn, int enq)) |
| unsigned tcp_sel_read | ARGS ((tcp_conn_t *tcp_conn)) |
| void tcp_bytesavailable | ARGS ((tcp_fd_t *tcp_fd, int *bytesp)) |
| void tcp_release_retrans | ARGS ((tcp_conn_t *tcp_conn, u32_t seg_ack, U16_t new_win)) |
| void tcp_close_connection | ARGS ((tcp_conn_t *tcp_conn, int error)) |
| void tcp_port_write | ARGS ((tcp_port_t *tcp_port)) |
| void tcp_extract_ipopt | ARGS ((tcp_conn_t *tcp_conn, ip_hdr_t *ip_hdr)) |
| void tcp_extract_tcpopt | ARGS ((tcp_conn_t *tcp_conn, tcp_hdr_t *tcp_hdr, size_t *mssp)) |
| void tcp_get_ipopt | ARGS ((tcp_conn_t *tcp_conn, ip_hdropt_t *ip_hdropt)) |
| void tcp_get_tcpopt | ARGS ((tcp_conn_t *tcp_conn, tcp_hdropt_t *tcp_hdropt)) |
| acc_t *tcp_make_header | ARGS ((tcp_conn_t *tcp_conn, ip_hdr_t **ref_ip_hdr, tcp_hdr_t **ref_tcp_hdr, acc_t *data)) |
| u16_t tcp_pack_oneCsum | ARGS ((ip_hdr_t *ip_hdr, acc_t *tcp_pack)) |
| void tcp_print_pack | ARGS ((ip_hdr_t *ip_hdr, tcp_hdr_t *tcp_hdr)) |
| int tcp_LEmod4G | ARGS ((u32_t n1, u32_t n2)) |
| int tcp_su4listen | ARGS ((tcp_fd_t *tcp_fd, tcp_conn_t *tcp_conn, int do_listenq)) |
| void tcp_reply_ioctl | ARGS ((tcp_fd_t *tcp_fd, int reply)) |
| void tcp_reply_write | ARGS ((tcp_fd_t *tcp_fd, size_t reply)) |
| void tcp_notreach | ARGS ((tcp_conn_t *tcp_conn, int error)) |
Variables |
| EXTERN tcp_port_t * | tcp_port_table |
| EXTERN tcp_conn_t | tcp_conn_table [TCP_CONN_NR] |
| EXTERN tcp_fd_t | tcp_fd_table [TCP_FD_NR] |