]> git.sur5r.net Git - freertos/commitdiff
Fix build issues in the FreeRTOS_Plus_TCP_Minimal_Windows_Simulator project:
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 28 Aug 2018 16:58:21 +0000 (16:58 +0000)
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 28 Aug 2018 16:58:21 +0000 (16:58 +0000)
+ Set configENABLE_BACKWARD_COMPATIBILITY to 1 in FreeRTOSConfig.h to account for the fact that a member of the List_t structure has been renamed.
+ Provide a dummy implementation of ulApplicationGetNextSequenceNumber() to prevent linker warnings.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2569 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/FreeRTOSConfig.h
FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/main.c

index 1c4f496e92a854ef7f5d00cc79fd058fb1224d56..ef7684462da70697b57a686e356175d252bc0878 100644 (file)
@@ -42,7 +42,7 @@
  * stack in this demo.  Constants specific to FreeRTOS+TCP itself (rather than\r
  * the demo) are contained in FreeRTOSIPConfig.h.\r
  *----------------------------------------------------------*/\r
-#define configENABLE_BACKWARD_COMPATIBILITY            0\r
+#define configENABLE_BACKWARD_COMPATIBILITY            1\r
 #define configUSE_PREEMPTION                                   1\r
 #define configUSE_PORT_OPTIMISED_TASK_SELECTION        1\r
 #define configMAX_PRIORITIES                                   ( 7 )\r
index bd9b45bc528b15f24dca93e6068a98540e47cedc..28c53a315a07e337fd522014a9bc6bc5f80f0ad8 100644 (file)
@@ -351,3 +351,23 @@ uint32_t ulLoggingIPAddress;
        }\r
 \r
 #endif\r
+\r
+/*\r
+ * Callback that provides the inputs necessary to generate a randomized TCP\r
+ * Initial Sequence Number per RFC 6528.  THIS IS ONLY A DUMMY IMPLEMENTATION\r
+ * THAT RETURNS A PSEUDO RANDOM NUMBER SO IS NOT INTENDED FOR USE IN PRODUCTION\r
+ * SYSTEMS.\r
+ */\r
+extern uint32_t ulApplicationGetNextSequenceNumber( uint32_t ulSourceAddress,\r
+       uint16_t usSourcePort,\r
+       uint32_t ulDestinationAddress,\r
+       uint16_t usDestinationPort )\r
+{\r
+       ( void ) ulSourceAddress;\r
+       ( void ) usSourcePort;\r
+       ( void ) ulDestinationAddress;\r
+       ( void ) usDestinationPort;\r
+\r
+       return uxRand();\r
+}\r
+\r