Skip to content

Commit 50e67a8

Browse files
committed
Update version number in +TCP code.
1 parent 5fe8465 commit 50e67a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+499
-2605
lines changed
File renamed without changes.

FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_ARP.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS+TCP V2.0.7
2+
* FreeRTOS+TCP V2.0.11
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DHCP.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS+TCP V2.0.7
2+
* FreeRTOS+TCP V2.0.11
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DNS.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS+TCP V2.0.7
2+
* FreeRTOS+TCP V2.0.11
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -1340,7 +1340,7 @@ TickType_t xTimeoutTime = pdMS_TO_TICKS( 200 );
13401340
{
13411341
BaseType_t x;
13421342
BaseType_t xFound = pdFALSE;
1343-
uint32_t ulCurrentTimeSeconds = ( xTaskGetTickCount() / portTICK_PERIOD_MS ) / 1000UL;
1343+
uint32_t ulCurrentTimeSeconds = ( xTaskGetTickCount() / portTICK_PERIOD_MS ) / 1000;
13441344
static BaseType_t xFreeEntry = 0;
13451345

13461346
/* For each entry in the DNS cache table. */

FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS+TCP V2.0.7
2+
* FreeRTOS+TCP V2.0.11
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -1288,6 +1288,11 @@ static void prvProcessNetworkDownEvent( void )
12881288
}
12891289
#endif
12901290

1291+
/* Per the ARP Cache Validation section of https://tools.ietf.org/html/rfc1122,
1292+
treat network down as a "delivery problem" and flush the ARP cache for this
1293+
interface. */
1294+
FreeRTOS_ClearARP( );
1295+
12911296
/* The network has been disconnected (or is being initialised for the first
12921297
time). Perform whatever hardware processing is necessary to bring it up
12931298
again, or wait for it to be available again. This is hardware dependent. */

FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Sockets.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS+TCP V2.0.7
2+
* FreeRTOS+TCP V2.0.11
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -3339,7 +3339,7 @@ void vSocketWakeUpUser( FreeRTOS_Socket_t *pxSocket )
33393339
}
33403340
else
33413341
{
3342-
FreeRTOS_printf( ( "Prot Port IP-Remote : Port R/T Status Alive tmout Child\n" ) );
3342+
FreeRTOS_printf( ( "Prot Port IP-Remote : Port R/T Status Alive tmout Child\n" ) );
33433343
for( pxIterator = ( ListItem_t * ) listGET_HEAD_ENTRY( &xBoundTCPSocketsList );
33443344
pxIterator != ( ListItem_t * ) listGET_END_MARKER( &xBoundTCPSocketsList );
33453345
pxIterator = ( ListItem_t * ) listGET_NEXT( pxIterator ) )

FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Stream_Buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS+TCP V2.0.7
2+
* FreeRTOS+TCP V2.0.11
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_IP.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS+TCP V2.0.7
2+
* FreeRTOS+TCP V2.0.11
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -1197,7 +1197,7 @@ UBaseType_t uxNewMSS;
11971197
else if( pucPtr[ 0 ] == TCP_OPT_MSS )
11981198
{
11991199
/* Confirm that the option fits in the remaining buffer space. */
1200-
if( ( xRemainingOptionsBytes < TCP_OPT_MSS_LEN ) || ( pucPtr[ 1 ] != TCP_OPT_MSS_LEN ) )
1200+
if( ( xRemainingOptionsBytes < TCP_OPT_MSS_LEN )|| ( pucPtr[ 1 ] != TCP_OPT_MSS_LEN ) )
12011201
{
12021202
break;
12031203
}

FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS+TCP V2.0.7
2+
* FreeRTOS+TCP V2.0.11
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -199,7 +199,7 @@ extern void vListInsertGeneric( List_t * const pxList, ListItem_t * const pxNewL
199199

200200
/*-----------------------------------------------------------*/
201201

202-
/* TCP segement pool. */
202+
/* TCP segment pool. */
203203
#if( ipconfigUSE_TCP_WIN == 1 )
204204
static TCPSegment_t *xTCPSegments = NULL;
205205
#endif /* ipconfigUSE_TCP_WIN == 1 */
@@ -673,6 +673,23 @@ const int32_t l500ms = 500;
673673
}
674674
/*-----------------------------------------------------------*/
675675

676+
#if( ipconfigUSE_TCP_WIN == 1 )
677+
678+
void vTCPSegmentCleanup( void )
679+
{
680+
/* Free and clear the TCP segments pointer. This function should only be called
681+
* once FreeRTOS+TCP will no longer be used. No thread-safety is provided for this
682+
* function. */
683+
if( xTCPSegments != NULL )
684+
{
685+
vPortFreeLarge( xTCPSegments );
686+
xTCPSegments = NULL;
687+
}
688+
}
689+
690+
#endif /* ipconfgiUSE_TCP_WIN == 1 */
691+
/*-----------------------------------------------------------*/
692+
676693
/*=============================================================================
677694
*
678695
* ###### # #

FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_UDP_IP.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS+TCP V2.0.7
2+
* FreeRTOS+TCP V2.0.11
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

0 commit comments

Comments
 (0)