X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS-Plus%2FSource%2FFreeRTOS-Plus-TCP%2FFreeRTOS_IP.c;h=325a69ac4813b9ac7460313792264d9b33d28250;hb=refs%2Ftags%2FV10.2.0;hp=996b5283863f8ecbef53c4b082b0356779b1f480;hpb=42342da982283cded3223403ab6c47ed3dbfb749;p=freertos diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c index 996b52838..325a69ac4 100644 --- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c +++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c @@ -1,5 +1,5 @@ /* - * FreeRTOS+TCP V2.0.7 + * FreeRTOS+TCP V2.0.11 * 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 @@ -1288,6 +1288,11 @@ static void prvProcessNetworkDownEvent( void ) } #endif + /* Per the ARP Cache Validation section of https://tools.ietf.org/html/rfc1122, + treat network down as a "delivery problem" and flush the ARP cache for this + interface. */ + FreeRTOS_ClearARP( ); + /* The network has been disconnected (or is being initialised for the first time). Perform whatever hardware processing is necessary to bring it up again, or wait for it to be available again. This is hardware dependent. */