Some networking logic was used helpers from apps/netutils. Not good. Quick fix is to duplicate logic

This commit is contained in:
Gregory Nutt 2016-01-09 15:57:44 -06:00
parent 1608b7c33f
commit fbb4dcc0af
1 changed files with 19 additions and 0 deletions

View File

@ -198,6 +198,25 @@ int dns_setserver(FAR const struct sockaddr *addr, socklen_t addrlen);
int dns_getserver(FAR struct sockaddr *addr, FAR socklen_t *addrlen);
/****************************************************************************
* Name: dns_getaddr
*
* Description:
* Get the DNS server IPv4 address
*
* Parameters:
* ipaddr The location to return the IPv4 address
*
* Return:
* Zero (OK) is returned on success; A negated errno value is returned
* on failure.
*
****************************************************************************/
#ifdef CONFIG_NET_IPv4
int dns_getaddr(FAR struct in_addr *inaddr);
#endif
#undef EXTERN
#if defined(__cplusplus)
}