X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=KernelLand%2FModules%2FIPStack%2Ftcp.h;fp=KernelLand%2FModules%2FIPStack%2Ftcp.h;h=dc7a0ffc5e3a41b0f5b56ae91d0f25bdbd06eb19;hb=9122d035c4337d33bf0cc2212eeade4e42a367a2;hp=42682ac72cb38ff78e9c9a2ac976b82893edc40a;hpb=cc98a8b6fb27ed2047a99e127ca4a1084f257dcb;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/IPStack/tcp.h b/KernelLand/Modules/IPStack/tcp.h index 42682ac7..dc7a0ffc 100644 --- a/KernelLand/Modules/IPStack/tcp.h +++ b/KernelLand/Modules/IPStack/tcp.h @@ -10,6 +10,8 @@ #include // tTimer #include // tSemaphore +#define CACHE_FUTURE_PACKETS_IN_BYTES 1 // Use a ring buffer to cache out of order packets? + typedef struct sTCPHeader tTCPHeader; typedef struct sTCPListener tTCPListener; typedef struct sTCPStoredPacket tTCPStoredPacket; @@ -151,7 +153,7 @@ struct sTCPConnection * \todo Convert this to a ring buffer and a bitmap of valid bytes * \{ */ - #if CACHE_FUTURE_PACKETS_OR_BYTES == bytes + #if CACHE_FUTURE_PACKETS_IN_BYTES Uint32 HighestSequenceRcvd; //!< Highest sequence number (within window) recieved Uint8 *FuturePacketData; //!< Future packet data (indexed by sequence number) Uint8 *FuturePacketValidBytes; //!< Valid byte bitmap (WINDOW_SIZE/8 bytes)