mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 17:43:39 +08:00
ERR_IF is not necessarily a fatal error (fixes bug #46338: UDP netconns block after fatal error)
This commit is contained in:
@@ -53,11 +53,11 @@ static const char *err_strerr[] = {
|
||||
"Already connecting.", /* ERR_ALREADY -9 */
|
||||
"Already connected.", /* ERR_ISCONN -10 */
|
||||
"Not connected.", /* ERR_CONN -11 */
|
||||
"Connection aborted.", /* ERR_ABRT -12 */
|
||||
"Connection reset.", /* ERR_RST -13 */
|
||||
"Connection closed.", /* ERR_CLSD -14 */
|
||||
"Illegal argument.", /* ERR_ARG -15 */
|
||||
"Low-level netif error." /* ERR_IF -16 */
|
||||
"Low-level netif error.", /* ERR_IF -12 */
|
||||
"Connection aborted.", /* ERR_ABRT -13 */
|
||||
"Connection reset.", /* ERR_RST -14 */
|
||||
"Connection closed.", /* ERR_CLSD -15 */
|
||||
"Illegal argument."v /* ERR_ARG -16 */
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -298,11 +298,11 @@ static const int err_to_errno_table[] = {
|
||||
EALREADY, /* ERR_ALREADY -9 Already connecting. */
|
||||
EISCONN, /* ERR_ISCONN -10 Conn already established.*/
|
||||
ENOTCONN, /* ERR_CONN -11 Not connected. */
|
||||
ECONNABORTED, /* ERR_ABRT -12 Connection aborted. */
|
||||
ECONNRESET, /* ERR_RST -13 Connection reset. */
|
||||
ENOTCONN, /* ERR_CLSD -14 Connection closed. */
|
||||
EIO, /* ERR_ARG -15 Illegal argument. */
|
||||
-1, /* ERR_IF -16 Low-level netif error */
|
||||
-1, /* ERR_IF -12 Low-level netif error */
|
||||
ECONNABORTED, /* ERR_ABRT -13 Connection aborted. */
|
||||
ECONNRESET, /* ERR_RST -14 Connection reset. */
|
||||
ENOTCONN, /* ERR_CLSD -15 Connection closed. */
|
||||
EIO /* ERR_ARG -16 Illegal argument. */
|
||||
};
|
||||
|
||||
#define ERR_TO_ERRNO_TABLE_SIZE LWIP_ARRAYSIZE(err_to_errno_table)
|
||||
|
||||
Reference in New Issue
Block a user