X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FIPStack%2Ftcp.h;h=a63de70fa9421d440f5ea1ed1df5a53282c36872;hb=c48c61d08d12594cff1102db2d9f3dae64dbc0f0;hp=223805eb2a9e15426a14d6699fc97e04dc1768f4;hpb=5015a7fa2f6c066554c5bfcea6e2cd87037e60d2;p=tpg%2Facess2.git diff --git a/Modules/IPStack/tcp.h b/Modules/IPStack/tcp.h index 223805eb..a63de70f 100644 --- a/Modules/IPStack/tcp.h +++ b/Modules/IPStack/tcp.h @@ -113,16 +113,18 @@ struct sTCPConnection Uint32 NextSequenceSend; //!< Next sequence value for outbound packets Uint32 NextSequenceRcv; //!< Next expected sequence value for inbound + #if 0 /** * \brief Non-ACKed packets - * \note FIFO list + * \note Ring buffer * \{ */ - tMutex lQueuedPackets; - tTCPStoredPacket *QueuedPackets; //!< Non-ACKed packets + tMutex lNonACKedPackets; + tTCPStoredPacket *SentPackets; //!< Non-acknowleged packets /** * \} */ + #endif /** * \brief Unread Packets @@ -138,10 +140,12 @@ struct sTCPConnection /** * \brief Out of sequence packets * \note Sorted list to improve times + * \todo Convert this to a ring buffer and a bitmap of valid bytes * \{ */ tShortSpinlock lFuturePackets; //!< Future packets spinlock tTCPStoredPacket *FuturePackets; //!< Out of sequence packets + Uint8 *FuturePacketValidBytes; //!< Valid byte bitmap (WINDOW_SIZE/8 bytes) /** * \} */