67 static const int err_to_errno_table[] = {
88 err_to_errno(
err_t err)
90 if ((err > 0) || (-err >= (
err_t)LWIP_ARRAYSIZE(err_to_errno_table))) {
93 return err_to_errno_table[-err];
99 static const char *err_strerr[] = {
101 "Out of memory error.",
105 "Operation in progress.",
107 "Operation would block.",
109 "Already connecting.",
110 "Already connected.",
112 "Low-level netif error.",
113 "Connection aborted.",
115 "Connection closed.",
126 lwip_strerr(
err_t err)
128 if ((err > 0) || (-err >= (
err_t)LWIP_ARRAYSIZE(err_strerr))) {
129 return "Unknown error.";
131 return err_strerr[-err];