From: rtel Date: Tue, 28 Aug 2018 16:58:21 +0000 (+0000) Subject: Fix build issues in the FreeRTOS_Plus_TCP_Minimal_Windows_Simulator project: X-Git-Tag: V10.1.1~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=91cbb4dcd2f13d49a006c3f585ee8c103a43325f;p=freertos Fix build issues in the FreeRTOS_Plus_TCP_Minimal_Windows_Simulator project: + 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 --- diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/FreeRTOSConfig.h b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/FreeRTOSConfig.h index 1c4f496e9..ef7684462 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/FreeRTOSConfig.h +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/FreeRTOSConfig.h @@ -42,7 +42,7 @@ * stack in this demo. Constants specific to FreeRTOS+TCP itself (rather than * the demo) are contained in FreeRTOSIPConfig.h. *----------------------------------------------------------*/ -#define configENABLE_BACKWARD_COMPATIBILITY 0 +#define configENABLE_BACKWARD_COMPATIBILITY 1 #define configUSE_PREEMPTION 1 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 1 #define configMAX_PRIORITIES ( 7 ) diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/main.c b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/main.c index bd9b45bc5..28c53a315 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/main.c +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Minimal_Windows_Simulator/main.c @@ -351,3 +351,23 @@ uint32_t ulLoggingIPAddress; } #endif + +/* + * Callback that provides the inputs necessary to generate a randomized TCP + * Initial Sequence Number per RFC 6528. THIS IS ONLY A DUMMY IMPLEMENTATION + * THAT RETURNS A PSEUDO RANDOM NUMBER SO IS NOT INTENDED FOR USE IN PRODUCTION + * SYSTEMS. + */ +extern uint32_t ulApplicationGetNextSequenceNumber( uint32_t ulSourceAddress, + uint16_t usSourcePort, + uint32_t ulDestinationAddress, + uint16_t usDestinationPort ) +{ + ( void ) ulSourceAddress; + ( void ) usSourcePort; + ( void ) ulDestinationAddress; + ( void ) usDestinationPort; + + return uxRand(); +} +