udhcp: use improved gethostbyname replacement from IPv6 code

This commit is contained in:
Denis Vlasenko
2007-02-04 02:41:57 +00:00
parent 1094452423
commit e991303406
4 changed files with 20 additions and 11 deletions

View File

@@ -182,6 +182,11 @@ USE_FEATURE_IPV6(sa_family_t af,)
#endif
#if ENABLE_FEATURE_IPV6
len_and_sockaddr* host_and_af2sockaddr(const char *host, int port, sa_family_t af)
{
return str2sockaddr(host, port, af, 0);
}
len_and_sockaddr* xhost_and_af2sockaddr(const char *host, int port, sa_family_t af)
{
return str2sockaddr(host, port, af, DIE_ON_ERROR);