]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c
Update version number in +TCP code.
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-Plus-TCP / FreeRTOS_IP.c
index 996b5283863f8ecbef53c4b082b0356779b1f480..325a69ac4813b9ac7460313792264d9b33d28250 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
- * FreeRTOS+TCP V2.0.7\r
+ * FreeRTOS+TCP V2.0.11\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
@@ -1288,6 +1288,11 @@ static void prvProcessNetworkDownEvent( void )
        }\r
        #endif\r
 \r
+       /* Per the ARP Cache Validation section of https://tools.ietf.org/html/rfc1122, \r
+       treat network down as a "delivery problem" and flush the ARP cache for this\r
+       interface. */\r
+       FreeRTOS_ClearARP( );\r
+\r
        /* The network has been disconnected (or is being initialised for the first\r
        time).  Perform whatever hardware processing is necessary to bring it up\r
        again, or wait for it to be available again.  This is hardware dependent. */\r