Added retransmissions to TCP

This commit is contained in:
Nikhil Chandru Rao
2006-08-07 18:52:26 +00:00
parent 010288577f
commit cb42e573a0
2 changed files with 69 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
#include <gpxe/list.h>
#include <gpxe/tcpip.h>
#include <gpxe/pkbuff.h>
#include <gpxe/retry.h>
struct tcp_connection;
@@ -157,9 +158,14 @@ struct tcp_connection {
uint8_t tcp_flags; /* TCP header flags */
struct list_head list; /* List of TCP connections */
struct pk_buff *tx_pkb; /* Transmit packet buffer */
struct retry_timer timer; /* Retransmission timer */
int retransmits; /* Number of retransmits */
struct tcp_operations *tcp_op; /* Operations table for connection */
};
/** Retry timer values */
#define MAX_RETRANSMITS 3
/**
* Connection closed status codes
*/