diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-04 02:41:57 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-04 02:41:57 +0000 |
commit | e99130340610a09de7581abe5c127c024347bc32 (patch) | |
tree | 85f96b893cc174965b65d8691901da659468ed97 /libbb | |
parent | 10944524238532ad35aaefec89cf7cc950745d6b (diff) |
udhcp: use improved gethostbyname replacement from IPv6 code
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xconnect.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/xconnect.c b/libbb/xconnect.c index c3ccc470b..22f98dcf2 100644 --- a/libbb/xconnect.c +++ b/libbb/xconnect.c @@ -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); |