mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 23:15:37 +00:00
fixed bug #34592: lwip_gethostbyname_r uses nonstandard error value, removed those unused (nonstandard?) error values from arch.h
This commit is contained in:
parent
a148e33c42
commit
935144b3a3
@ -49,6 +49,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2011-10-18: Simon Goldschmidt
|
||||||
|
* arch.h, netdb.c: fixed bug #34592: lwip_gethostbyname_r uses nonstandard
|
||||||
|
error value
|
||||||
|
|
||||||
2011-10-18: Simon Goldschmidt
|
2011-10-18: Simon Goldschmidt
|
||||||
* opt.h: fixed default values of TCP_SNDLOWAT and TCP_SNDQUEUELOWAT for small
|
* opt.h: fixed default values of TCP_SNDLOWAT and TCP_SNDQUEUELOWAT for small
|
||||||
windows (bug #34176 select after non-blocking send times out)
|
windows (bug #34176 select after non-blocking send times out)
|
||||||
|
@ -200,7 +200,7 @@ lwip_gethostbyname_r(const char *name, struct hostent *ret, char *buf,
|
|||||||
err = netconn_gethostbyname(name, &(h->addr));
|
err = netconn_gethostbyname(name, &(h->addr));
|
||||||
if (err != ERR_OK) {
|
if (err != ERR_OK) {
|
||||||
LWIP_DEBUGF(DNS_DEBUG, ("lwip_gethostbyname(%s) failed, err=%d\n", name, err));
|
LWIP_DEBUGF(DNS_DEBUG, ("lwip_gethostbyname(%s) failed, err=%d\n", name, err));
|
||||||
*h_errnop = ENSRNOTFOUND;
|
*h_errnop = HOST_NOT_FOUND;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,27 +204,6 @@ extern "C" {
|
|||||||
#define ENOMEDIUM 123 /* No medium found */
|
#define ENOMEDIUM 123 /* No medium found */
|
||||||
#define EMEDIUMTYPE 124 /* Wrong medium type */
|
#define EMEDIUMTYPE 124 /* Wrong medium type */
|
||||||
|
|
||||||
|
|
||||||
#define ENSROK 0 /* DNS server returned answer with no data */
|
|
||||||
#define ENSRNODATA 160 /* DNS server returned answer with no data */
|
|
||||||
#define ENSRFORMERR 161 /* DNS server claims query was misformatted */
|
|
||||||
#define ENSRSERVFAIL 162 /* DNS server returned general failure */
|
|
||||||
#define ENSRNOTFOUND 163 /* Domain name not found */
|
|
||||||
#define ENSRNOTIMP 164 /* DNS server does not implement requested operation */
|
|
||||||
#define ENSRREFUSED 165 /* DNS server refused query */
|
|
||||||
#define ENSRBADQUERY 166 /* Misformatted DNS query */
|
|
||||||
#define ENSRBADNAME 167 /* Misformatted domain name */
|
|
||||||
#define ENSRBADFAMILY 168 /* Unsupported address family */
|
|
||||||
#define ENSRBADRESP 169 /* Misformatted DNS reply */
|
|
||||||
#define ENSRCONNREFUSED 170 /* Could not contact DNS servers */
|
|
||||||
#define ENSRTIMEOUT 171 /* Timeout while contacting DNS servers */
|
|
||||||
#define ENSROF 172 /* End of file */
|
|
||||||
#define ENSRFILE 173 /* Error reading file */
|
|
||||||
#define ENSRNOMEM 174 /* Out of memory */
|
|
||||||
#define ENSRDESTRUCTION 175 /* Application terminated lookup */
|
|
||||||
#define ENSRQUERYDOMAINTOOLONG 176 /* Domain name is too long */
|
|
||||||
#define ENSRCNAMELOOP 177 /* Domain name is too long */
|
|
||||||
|
|
||||||
#ifndef errno
|
#ifndef errno
|
||||||
extern int errno;
|
extern int errno;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user