Other Parts Discussed in Thread: CC3100, CC3120
Hi,
I have a question regarding the function gethostbyname() define as follow:
static inline _i16 gethostbyname(_i8 *hostname, const _u16 usNameLen,
_u32 *out_ip_addr, const _u8 family)
{
return sl_NetAppDnsGetHostByName(hostname, usNameLen, out_ip_addr, family);
}
When I pass the parameter family = AF_INET6 (IPV6) to the function above it always retutns -1 . (Failure)
It always returns a valid IP when family = AF_INET (IPV4)
The host name is "pool.ntp.org" that supports IPV4 and IPV6.
My questions:
1. Does CC3200 SDK support IPV6 protocol
2. Does the function gethostbyname() support IPV6 (what does it mean when it return -1)
Thanks a lot,
Yossi