IPStack - Slight header updated
authorJohn Hodge <[email protected]>
Mon, 21 Mar 2011 08:21:01 +0000 (16:21 +0800)
committerJohn Hodge <[email protected]>
Mon, 21 Mar 2011 08:21:01 +0000 (16:21 +0800)
Modules/IPStack/ipv6.h
Modules/IPStack/tcp.h

index 7df0d0f..0742807 100644 (file)
@@ -31,6 +31,7 @@ struct sIPv6Header
        Uint8   HopLimit;
        tIPv6   Source;
        tIPv6   Destination;
+       char    Data[];
 };
 
 #define IPV6_ETHERNET_ID       0x86DD
index 223805e..a63de70 100644 (file)
@@ -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)
        /**
         * \}
         */

UCC git Repository :: git.ucc.asn.au