From: John Hodge Date: Mon, 21 Mar 2011 08:21:01 +0000 (+0800) Subject: IPStack - Slight header updated X-Git-Tag: rel0.10~153 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=c48c61d08d12594cff1102db2d9f3dae64dbc0f0;p=tpg%2Facess2.git IPStack - Slight header updated --- diff --git a/Modules/IPStack/ipv6.h b/Modules/IPStack/ipv6.h index 7df0d0fe..07428078 100644 --- a/Modules/IPStack/ipv6.h +++ b/Modules/IPStack/ipv6.h @@ -31,6 +31,7 @@ struct sIPv6Header Uint8 HopLimit; tIPv6 Source; tIPv6 Destination; + char Data[]; }; #define IPV6_ETHERNET_ID 0x86DD 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) /** * \} */