diff --git a/net/lwip/src/api/sockets.c b/net/lwip/src/api/sockets.c index 36df4d89609a347beffa3b87e89b9213d0e8d5ff..fc56fb465e83869d9c819c0d06f48438f17cc221 100644 --- a/net/lwip/src/api/sockets.c +++ b/net/lwip/src/api/sockets.c @@ -238,6 +238,14 @@ alloc_socket(struct netconn *newconn) return -1; } +int lwip_get_error(int s) +{ + struct lwip_socket *sock; + sock = get_socket(s); + + return sock->err; +} + /* Below this, the well-known socket functions are implemented. * Use google.com or opengroup.org to get a good description :-) *