diff options
| author | Nikhil Chandru Rao | 2006-08-07 20:52:26 +0200 |
|---|---|---|
| committer | Nikhil Chandru Rao | 2006-08-07 20:52:26 +0200 |
| commit | cb42e573a08694b31a1c6fed41cfb14607ae175b (patch) | |
| tree | b125d0087a1c141d6e4a49af069898ff3206f176 /src/include/gpxe | |
| parent | Add very, very quick and dirty hello world test (diff) | |
| download | ipxe-cb42e573a08694b31a1c6fed41cfb14607ae175b.tar.gz ipxe-cb42e573a08694b31a1c6fed41cfb14607ae175b.tar.xz ipxe-cb42e573a08694b31a1c6fed41cfb14607ae175b.zip | |
Added retransmissions to TCP
Diffstat (limited to 'src/include/gpxe')
| -rw-r--r-- | src/include/gpxe/tcp.h | 6 |
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 */ |
