|
|
@ -161,9 +161,9 @@ void main_tcp_echo_client_tasks( void )
|
|
|
|
|
|
|
|
|
|
|
|
#if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 )
|
|
|
|
#if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 )
|
|
|
|
|
|
|
|
|
|
|
|
extern NetworkInterface_t * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
|
|
|
|
extern NetworkInterface_t * pxLibslirp_FillInterfaceDescriptor( BaseType_t xEMACIndex,
|
|
|
|
NetworkInterface_t * pxInterface );
|
|
|
|
NetworkInterface_t * pxInterface );
|
|
|
|
pxFillInterfaceDescriptor( 0, &( xInterfaces[ 0 ] ) );
|
|
|
|
pxLibslirp_FillInterfaceDescriptor( 0, &( xInterfaces[ 0 ] ) );
|
|
|
|
|
|
|
|
|
|
|
|
/* === End-point 0 === */
|
|
|
|
/* === End-point 0 === */
|
|
|
|
FreeRTOS_FillEndPoint( &( xInterfaces[ 0 ] ), &( xEndPoints [ 0 ] ), ucIPAddress, ucNetMask, ucGatewayAddress, ucDNSServerAddress, ucMACAddress );
|
|
|
|
FreeRTOS_FillEndPoint( &( xInterfaces[ 0 ] ), &( xEndPoints [ 0 ] ), ucIPAddress, ucNetMask, ucGatewayAddress, ucDNSServerAddress, ucMACAddress );
|
|
|
@ -279,6 +279,7 @@ static void prvMiscInitialisation( void )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
time_t xTimeNow;
|
|
|
|
time_t xTimeNow;
|
|
|
|
uint32_t ulRandomNumbers[ 4 ];
|
|
|
|
uint32_t ulRandomNumbers[ 4 ];
|
|
|
|
|
|
|
|
|
|
|
|
/* Seed the random number generator. */
|
|
|
|
/* Seed the random number generator. */
|
|
|
|
time( &xTimeNow );
|
|
|
|
time( &xTimeNow );
|
|
|
|
FreeRTOS_debug_printf( ( "Seed for randomiser: %lu\n", xTimeNow ) );
|
|
|
|
FreeRTOS_debug_printf( ( "Seed for randomiser: %lu\n", xTimeNow ) );
|
|
|
|