mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-22 14:31:59 -04:00
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.
This commit is contained in:
parent
893db45834
commit
9bda04b472
|
@ -42,7 +42,7 @@
|
||||||
* stack in this demo. Constants specific to FreeRTOS+TCP itself (rather than
|
* stack in this demo. Constants specific to FreeRTOS+TCP itself (rather than
|
||||||
* the demo) are contained in FreeRTOSIPConfig.h.
|
* the demo) are contained in FreeRTOSIPConfig.h.
|
||||||
*----------------------------------------------------------*/
|
*----------------------------------------------------------*/
|
||||||
#define configENABLE_BACKWARD_COMPATIBILITY 0
|
#define configENABLE_BACKWARD_COMPATIBILITY 1
|
||||||
#define configUSE_PREEMPTION 1
|
#define configUSE_PREEMPTION 1
|
||||||
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
||||||
#define configMAX_PRIORITIES ( 7 )
|
#define configMAX_PRIORITIES ( 7 )
|
||||||
|
|
|
@ -351,3 +351,23 @@ uint32_t ulLoggingIPAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#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();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue