mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-29 14:38:32 -04:00
Sync with TCP version from AWS, including:
+ Add FreeRTOS_UpdateMACAddress(). + Fix bug in lTCPWindowRxCheck() that manifested itself when flooded with lots of very small packets.
This commit is contained in:
parent
d6fcd5dbba
commit
7d92e4dd8f
52 changed files with 150 additions and 219 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* FreeRTOS+TCP V2.0.1
|
||||
* FreeRTOS+TCP V2.0.3
|
||||
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
|
@ -19,10 +19,8 @@
|
|||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* http://www.FreeRTOS.org
|
||||
* http://aws.amazon.com/freertos
|
||||
*
|
||||
* 1 tab == 4 spaces!
|
||||
* http://www.FreeRTOS.org
|
||||
*/
|
||||
|
||||
/* Standard includes. */
|
||||
|
@ -2095,6 +2093,13 @@ uint32_t FreeRTOS_GetNetmask( void )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void FreeRTOS_UpdateMACAddress( const uint8_t ucMACAddress[ipMAC_ADDRESS_LENGTH_BYTES] )
|
||||
{
|
||||
/* Copy the MAC address at the start of the default packet header fragment. */
|
||||
memcpy( ( void * )ipLOCAL_MAC_ADDRESS, ( void * )ucMACAddress, ( size_t )ipMAC_ADDRESS_LENGTH_BYTES );
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
const uint8_t * FreeRTOS_GetMACAddress( void )
|
||||
{
|
||||
return ipLOCAL_MAC_ADDRESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue