change(esp_netif): Add Non-Fatal errtype to indicate lower layer medium failure

UDP application sends packet using esp_netif, underlying transport such
as Wi-Fi may drop the packet due to higher load. New error code
represent transient, non-fatal packet drop error. udp application may
use such errtype, for example to rate limit.
This commit is contained in:
Yogesh Mantri
2024-01-23 15:09:45 +01:00
committed by David Cermak
parent 469c51bf2b
commit 586207207f
6 changed files with 41 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2018-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -595,6 +595,9 @@ static const esp_err_msg_t esp_err_msg_table[] = {
# endif
# ifdef ESP_ERR_ESP_NETIF_DHCPS_START_FAILED
ERR_TBL_IT(ESP_ERR_ESP_NETIF_DHCPS_START_FAILED), /* 20493 0x500d */
# endif
# ifdef ESP_ERR_ESP_NETIF_TX_FAILED
ERR_TBL_IT(ESP_ERR_ESP_NETIF_TX_FAILED), /* 20494 0x500e */
# endif
// components/esp_common/include/esp_err.h
# ifdef ESP_ERR_FLASH_BASE