summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/tcp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/gpxe/tcp.h b/src/include/gpxe/tcp.h
index 2056afdc9..ca926a5c2 100644
--- a/src/include/gpxe/tcp.h
+++ b/src/include/gpxe/tcp.h
@@ -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
*/