X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FIPStack%2Ftcp.h;h=42682ac72cb38ff78e9c9a2ac976b82893edc40a;hb=bd912eb789383ceabf98c361e75c49dbab630ace;hp=6aa404f63979620e30b58da915fddc1e03c010c1;hpb=48743e39650eb1ef988380e9d95f27fd40d3a9ce;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/IPStack/tcp.h b/KernelLand/Modules/IPStack/tcp.h index 6aa404f6..42682ac7 100644 --- a/KernelLand/Modules/IPStack/tcp.h +++ b/KernelLand/Modules/IPStack/tcp.h @@ -7,6 +7,8 @@ #include "ipstack.h" #include // tRingBuffer +#include // tTimer +#include // tSemaphore typedef struct sTCPHeader tTCPHeader; typedef struct sTCPListener tTCPListener; @@ -68,6 +70,7 @@ struct sTCPListener 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; @@ -113,7 +116,11 @@ struct sTCPConnection 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