From cb42e573a08694b31a1c6fed41cfb14607ae175b Mon Sep 17 00:00:00 2001 From: Nikhil Chandru Rao Date: Mon, 7 Aug 2006 18:52:26 +0000 Subject: Added retransmissions to TCP --- src/include/gpxe/tcp.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/include') 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 #include #include +#include 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 */ -- cgit v1.2.3-55-g7522