#if LWIP_DNS struct addrinfo { int ai_flags; /* Input flags. */ int ai_family; /* Address family of socket. */ int ai_socktype; /* Socket type. */ int ai_protocol; /* Protocol of socket. */ socklen_t ai_addrlen; /* Length of socket address. */ struct sockaddr *ai_addr; /* Socket address of socket. */ char *ai_canonname; /* Canonical name of service location. */ struct addrinfo *ai_next; /* Pointer to next in list. */ }; #define EAI_NONAME 200 #define EAI_SERVICE 201 #define EAI_FAIL 202 #define EAI_MEMORY 203 #endif /* LWIP_DNS */ #if LWIP_DNS void lwip_freeaddrinfo(struct addrinfo *ai); int lwip_getaddrinfo(const char *nodename, const char *servname, const struct addrinfo *hints, struct addrinfo **res); #endif /* LWIP_DNS */ #if LWIP_DNS #define freeaddrinfo(a) lwip_freeaddrinfo(a) #define getaddrinfo(a,b,c,d) lwip_getaddrinfo(a,b,c,d) #endif /* LWIP_DNS */