diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-20 13:47:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-20 13:47:30 +0000 |
commit | 915c0105267a9685d3fa1bc915dc08bbb5883d55 (patch) | |
tree | 748852e6262da138e2481a706be911c0b548df57 /apps/include | |
parent | e67fe7912645818ff9f4f19481b64fe363f5d357 (diff) | |
download | nuttx-915c0105267a9685d3fa1bc915dc08bbb5883d55.tar.gz nuttx-915c0105267a9685d3fa1bc915dc08bbb5883d55.tar.bz2 nuttx-915c0105267a9685d3fa1bc915dc08bbb5883d55.zip |
DNS fixes from Darcy Gong (part 1 of 2)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5235 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/include')
-rw-r--r-- | apps/include/netutils/resolv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/include/netutils/resolv.h b/apps/include/netutils/resolv.h index bf71e3b6e..21b9b576c 100644 --- a/apps/include/netutils/resolv.h +++ b/apps/include/netutils/resolv.h @@ -74,6 +74,11 @@ EXTERN void resolv_getserver(FAR struct in_addr *dnsserver); EXTERN int resolv_query(FAR const char *name, FAR struct sockaddr_in *addr); #endif +EXTERN int dns_gethostip(const char *hostname, in_addr_t *ipaddr); +#define dns_setserver resolv_conf +#define dns_getserver resolv_getserver +#define dns_whois resolv_query + #undef EXTERN #if defined(__cplusplus) } |