* 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
}\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