#include "ipstack.h"
#include <adt.h> // tRingBuffer
+#include <timers.h> // tTimer
+#include <semaphore.h> // tSemaphore
typedef struct sTCPHeader tTCPHeader;
typedef struct sTCPListener tTCPListener;
tInterface *Interface; //!< Listening Interface
tVFS_Node Node; //!< Server Directory node
int NextID; //!< Name of the next connection
+ tSemaphore WaitingConnections;
tShortSpinlock lConnections; //!< Spinlock for connections
tTCPConnection *Connections; //!< Connections (linked list)
tTCPConnection *volatile NewConnections;
Uint32 NextSequenceSend; //!< Next sequence value for outbound packets
Uint32 NextSequenceRcv; //!< Next expected sequence value for inbound
-
+
+ // Deferred ACK handling
+ Uint32 LastACKSequence;
+ tTimer *DeferredACKTimer;
+
#if 0
/**
* \brief Non-ACKed packets