Home
last modified time | relevance | path

Searched refs:my_hostent (Results 1 – 1 of 1) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/jni/
DNativeDnsJni.c148 struct hostent *my_hostent = gethostbyname("www.youtube.com"); in Java_android_net_cts_DnsTest_testNativeDns() local
149 if (my_hostent == NULL) { in Java_android_net_cts_DnsTest_testNativeDns()
153 if ((my_hostent->h_addr_list == NULL) || (*my_hostent->h_addr_list == NULL)) { in Java_android_net_cts_DnsTest_testNativeDns()
158 char **current = my_hostent->h_addr_list; in Java_android_net_cts_DnsTest_testNativeDns()
161 inet_ntop(my_hostent->h_addrtype, *current, buf, sizeof(buf)); in Java_android_net_cts_DnsTest_testNativeDns()
170 my_hostent = gethostbyaddr(addr6, sizeof(addr6), AF_INET6); in Java_android_net_cts_DnsTest_testNativeDns()
171 if (my_hostent == NULL) { in Java_android_net_cts_DnsTest_testNativeDns()
177 my_hostent->h_name ? my_hostent->h_name : "null"); in Java_android_net_cts_DnsTest_testNativeDns()
179 if (my_hostent->h_name == NULL) return JNI_FALSE; in Java_android_net_cts_DnsTest_testNativeDns()