tcp_connection Struct Reference

A TCP connection. More...


Data Fields

struct refcnt refcnt
 Reference counter.
struct list_head list
 List of TCP connections.
struct xfer_interface xfer
 Data transfer interface.
int xfer_closed
 Data transfer interface closed flag.
struct sockaddr_tcpip peer
 Remote socket address.
unsigned int local_port
 Local port, in network byte order.
unsigned int tcp_state
 Current TCP state.
unsigned int prev_tcp_state
 Previous TCP state.
uint32_t snd_seq
 Current sequence number.
uint32_t snd_sent
 Unacknowledged sequence count.
uint32_t snd_win
 Send window.
uint32_t rcv_ack
 Current acknowledgement number.
uint32_t rcv_win
 Receive window.
uint32_t ts_recent
 Most recent received timestamp.
int timestamps
 Timestamps enabled.
struct list_head queue
 Transmit queue.
struct retry_timer timer
 Retransmission timer.


Detailed Description

A TCP connection.

Definition at line 27 of file tcp.c.


Field Documentation

Reference counter.

Definition at line 29 of file tcp.c.

Referenced by tcp_close(), and tcp_open().

List of TCP connections.

Definition at line 31 of file tcp.c.

Referenced by tcp_bind(), tcp_close(), tcp_demux(), and tcp_open().

Data transfer interface.

Definition at line 34 of file tcp.c.

Referenced by tcp_close(), tcp_open(), tcp_rx_data(), and tcp_xmit().

Data transfer interface closed flag.

Definition at line 36 of file tcp.c.

Referenced by tcp_close(), and tcp_rx_ack().

Remote socket address.

Definition at line 39 of file tcp.c.

Referenced by tcp_open(), and tcp_xmit().

Local port, in network byte order.

Definition at line 41 of file tcp.c.

Referenced by tcp_bind(), tcp_demux(), and tcp_xmit().

Current TCP state.

Definition at line 44 of file tcp.c.

Referenced by tcp_close(), tcp_expired(), tcp_open(), tcp_rx(), tcp_rx_ack(), tcp_rx_fin(), tcp_rx_rst(), tcp_rx_syn(), tcp_xmit(), and tcp_xmit_win().

Previous TCP state.

Maintained only for debug messages

Definition at line 49 of file tcp.c.

Referenced by tcp_open().

Current sequence number.

Equivalent to SND.UNA in RFC 793 terminology.

Definition at line 54 of file tcp.c.

Referenced by tcp_close(), tcp_expired(), tcp_open(), tcp_rx_ack(), and tcp_xmit().

Unacknowledged sequence count.

Equivalent to (SND.NXT-SND.UNA) in RFC 793 terminology.

Definition at line 59 of file tcp.c.

Referenced by tcp_expired(), tcp_rx_ack(), and tcp_xmit().

Send window.

Equivalent to SND.WND in RFC 793 terminology

Definition at line 64 of file tcp.c.

Referenced by tcp_rx_ack(), and tcp_xmit_win().

Current acknowledgement number.

Equivalent to RCV.NXT in RFC 793 terminology.

Definition at line 69 of file tcp.c.

Referenced by tcp_expired(), tcp_rx(), tcp_rx_data(), tcp_rx_fin(), tcp_rx_rst(), tcp_rx_seq(), tcp_rx_syn(), and tcp_xmit().

Receive window.

Equivalent to RCV.WND in RFC 793 terminology.

Definition at line 74 of file tcp.c.

Referenced by tcp_rx(), tcp_rx_rst(), tcp_rx_seq(), and tcp_xmit().

Most recent received timestamp.

Equivalent to TS.Recent in RFC 1323 terminology.

Definition at line 79 of file tcp.c.

Referenced by tcp_rx(), and tcp_xmit().

Timestamps enabled.

Definition at line 81 of file tcp.c.

Referenced by tcp_rx_syn(), and tcp_xmit().

Transmit queue.

Definition at line 84 of file tcp.c.

Referenced by tcp_close(), tcp_open(), tcp_process_queue(), tcp_rx_ack(), tcp_xfer_deliver_iob(), and tcp_xfer_window().

Retransmission timer.

Definition at line 86 of file tcp.c.

Referenced by tcp_close(), tcp_open(), tcp_rx(), tcp_rx_ack(), and tcp_xmit().


The documentation for this struct was generated from the following file:

Generated on Tue Apr 6 20:02:09 2010 for gPXE by  doxygen 1.5.7.1