mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-18 20:10:53 +00:00
fixed bug #32769 (ESHUTDOWN is linux-specific) by fixing err_to_errno_table (ERR_CLSD: ENOTCONN instead of ESHUTDOWN), ERR_ISCONN: use EALRADY instead of -1
This commit is contained in:
parent
c6de17d1e5
commit
d793ed3b9b
14
CHANGELOG
14
CHANGELOG
@ -233,6 +233,20 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2011-03-13: Simon Goldschmidt
|
||||||
|
* sockets.c: fixed bug #32769 (ESHUTDOWN is linux-specific) by fixing
|
||||||
|
err_to_errno_table (ERR_CLSD: ENOTCONN instead of ESHUTDOWN), ERR_ISCONN:
|
||||||
|
use EALRADY instead of -1
|
||||||
|
|
||||||
|
2011-03-13: Simon Goldschmidt
|
||||||
|
* api_lib.c: netconn_accept: return ERR_ABRT instead of ERR_CLSD if the
|
||||||
|
connection has been aborted by err_tcp (since this is not a normal closing
|
||||||
|
procedure).
|
||||||
|
|
||||||
|
2011-03-13: Simon Goldschmidt
|
||||||
|
* tcp.c: tcp_bind: return ERR_VAL instead of ERR_ISCONN when trying to bind
|
||||||
|
with pcb->state != CLOSED
|
||||||
|
|
||||||
2011-02-17: Simon Goldschmidt
|
2011-02-17: Simon Goldschmidt
|
||||||
* rawapi.txt: Fixed bug #32561 tcp_poll argument definition out-of-order in
|
* rawapi.txt: Fixed bug #32561 tcp_poll argument definition out-of-order in
|
||||||
documentation
|
documentation
|
||||||
|
@ -143,12 +143,12 @@ static const int err_to_errno_table[] = {
|
|||||||
EWOULDBLOCK, /* ERR_WOULDBLOCK -7 Operation would block. */
|
EWOULDBLOCK, /* ERR_WOULDBLOCK -7 Operation would block. */
|
||||||
ECONNABORTED, /* ERR_ABRT -8 Connection aborted. */
|
ECONNABORTED, /* ERR_ABRT -8 Connection aborted. */
|
||||||
ECONNRESET, /* ERR_RST -9 Connection reset. */
|
ECONNRESET, /* ERR_RST -9 Connection reset. */
|
||||||
ESHUTDOWN, /* ERR_CLSD -10 Connection closed. */
|
ENOTCONN, /* ERR_CLSD -10 Connection closed. */
|
||||||
ENOTCONN, /* ERR_CONN -11 Not connected. */
|
ENOTCONN, /* ERR_CONN -11 Not connected. */
|
||||||
EIO, /* ERR_ARG -12 Illegal argument. */
|
EIO, /* ERR_ARG -12 Illegal argument. */
|
||||||
EADDRINUSE, /* ERR_USE -13 Address in use. */
|
EADDRINUSE, /* ERR_USE -13 Address in use. */
|
||||||
-1, /* ERR_IF -14 Low-level netif error */
|
-1, /* ERR_IF -14 Low-level netif error */
|
||||||
-1, /* ERR_ISCONN -15 Already connected. */
|
EALREADY, /* ERR_ISCONN -15 Already connected. */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define ERR_TO_ERRNO_TABLE_SIZE \
|
#define ERR_TO_ERRNO_TABLE_SIZE \
|
||||||
|
Loading…
Reference in New Issue
Block a user