/*\r
- * FreeRTOS+TCP V2.0.0\r
+ * FreeRTOS+TCP V2.2.0\r
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\r
*\r
* Permission is hereby granted, free of charge, to any person obtaining a copy of\r
* subject to the following conditions:\r
*\r
* The above copyright notice and this permission notice shall be included in all\r
- * copies or substantial portions of the Software. If you wish to use our Amazon\r
- * FreeRTOS name, please do so in a fair use way that does not cause confusion.\r
+ * copies or substantial portions of the Software.\r
*\r
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
*\r
- * http://www.FreeRTOS.org\r
* http://aws.amazon.com/freertos\r
- *\r
- * 1 tab == 4 spaces!\r
+ * http://www.FreeRTOS.org\r
*/\r
\r
/*\r
*/\r
/* Keep this as a multiple of 4 */\r
#if( ipconfigUSE_TCP_WIN == 1 )\r
- #if( ipconfigUSE_TCP_TIMESTAMPS == 1 )\r
- #define ipSIZE_TCP_OPTIONS ( 16u + 12u )\r
- #else\r
- #define ipSIZE_TCP_OPTIONS 16u\r
- #endif\r
+ #define ipSIZE_TCP_OPTIONS 16u\r
#else\r
- #if ipconfigUSE_TCP_TIMESTAMPS == 1\r
- #define ipSIZE_TCP_OPTIONS ( 12u + 12u )\r
- #else\r
- #define ipSIZE_TCP_OPTIONS 12u\r
- #endif\r
+ #define ipSIZE_TCP_OPTIONS 12u\r
#endif\r
\r
/*\r
* In other words: the sequence number of the left side of the sliding window */\r
uint32_t ulFINSequenceNumber; /* The sequence number which carried the FIN flag */\r
uint32_t ulHighestSequenceNumber;/* Sequence number of the right-most byte + 1 */\r
-#if( ipconfigUSE_TCP_TIMESTAMPS == 1 )\r
- uint32_t ulTimeStamp; /* The value of the TCP timestamp, transmitted or received */\r
-#endif\r
} rx, tx;\r
uint32_t ulOurSequenceNumber; /* The SEQ number we're sending out */\r
uint32_t ulUserDataLength; /* Number of bytes in Rx buffer which may be passed to the user, after having received a 'missing packet' */\r
/* Initialize a window */\r
void vTCPWindowInit( TCPWindow_t *pxWindow, uint32_t ulAckNumber, uint32_t ulSequenceNumber, uint32_t ulMSS );\r
\r
+/* Clean up allocated segments. Should only be called when FreeRTOS+TCP will no longer be used. */\r
+void vTCPSegmentCleanup( void );\r
+\r
/*=============================================================================\r
*\r
* Rx functions\r