Home
last modified time | relevance | path

Searched refs:h_addr_list (Results 1 – 25 of 43) sorted by relevance

12

/external/c-ares/
Dares__get_hostent.c175 hostent->h_addr_list = NULL; in ares__get_hostent()
183 hostent->h_addr_list = malloc(2 * sizeof(char *)); in ares__get_hostent()
184 if (!hostent->h_addr_list) in ares__get_hostent()
186 hostent->h_addr_list[1] = NULL; in ares__get_hostent()
187 hostent->h_addr_list[0] = malloc(addrlen); in ares__get_hostent()
188 if (!hostent->h_addr_list[0]) in ares__get_hostent()
191 memcpy(hostent->h_addr_list[0], &addr.addrV4, sizeof(addr.addrV4)); in ares__get_hostent()
193 memcpy(hostent->h_addr_list[0], &addr.addrV6, sizeof(addr.addrV6)); in ares__get_hostent()
251 if (hostent->h_addr_list) in ares__get_hostent()
253 if (hostent->h_addr_list[0]) in ares__get_hostent()
[all …]
Dares_parse_ptr_reply.c178 hostent->h_addr_list = malloc(2 * sizeof(char *)); in ares_parse_ptr_reply()
179 if (hostent->h_addr_list) in ares_parse_ptr_reply()
181 hostent->h_addr_list[0] = malloc(addrlen); in ares_parse_ptr_reply()
182 if (hostent->h_addr_list[0]) in ares_parse_ptr_reply()
194 memcpy(hostent->h_addr_list[0], addr, addrlen); in ares_parse_ptr_reply()
195 hostent->h_addr_list[1] = NULL; in ares_parse_ptr_reply()
201 free(hostent->h_addr_list[0]); in ares_parse_ptr_reply()
203 free(hostent->h_addr_list); in ares_parse_ptr_reply()
Dares_gethostbyname.c304 hostent.h_addr_list = addrs; in fake_hostent()
432 for (i1 = 0; host->h_addr_list[i1]; i1++) in sort_addresses()
434 memcpy(&a1, host->h_addr_list[i1], sizeof(struct in_addr)); in sort_addresses()
438 memcpy(&a2, host->h_addr_list[i2], sizeof(struct in_addr)); in sort_addresses()
442 memcpy(host->h_addr_list[i2 + 1], &a2, sizeof(struct in_addr)); in sort_addresses()
444 memcpy(host->h_addr_list[i2 + 1], &a1, sizeof(struct in_addr)); in sort_addresses()
488 for (i1 = 0; host->h_addr_list[i1]; i1++) in sort6_addresses()
490 memcpy(&a1, host->h_addr_list[i1], sizeof(struct ares_in6_addr)); in sort6_addresses()
494 memcpy(&a2, host->h_addr_list[i2], sizeof(struct ares_in6_addr)); in sort6_addresses()
498 memcpy(host->h_addr_list[i2 + 1], &a2, sizeof(struct ares_in6_addr)); in sort6_addresses()
[all …]
Dares_free_hostent.c38 free(host->h_addr_list[0]); /* no matter if there is one or many entries, in ares_free_hostent()
40 free(host->h_addr_list); in ares_free_hostent()
Dares_parse_aaaa_reply.c231 hostent->h_addr_list = malloc((naddrs + 1) * sizeof(char *)); in ares_parse_aaaa_reply()
232 if (hostent->h_addr_list) in ares_parse_aaaa_reply()
240 hostent->h_addr_list[i] = (char *) &addrs[i]; in ares_parse_aaaa_reply()
241 hostent->h_addr_list[naddrs] = NULL; in ares_parse_aaaa_reply()
Dares_parse_a_reply.c233 hostent->h_addr_list = malloc((naddrs + 1) * sizeof(char *)); in ares_parse_a_reply()
234 if (hostent->h_addr_list) in ares_parse_a_reply()
242 hostent->h_addr_list[i] = (char *) &addrs[i]; in ares_parse_a_reply()
243 hostent->h_addr_list[naddrs] = NULL; in ares_parse_a_reply()
Dares_parse_ns_reply.c161 hostent->h_addr_list = malloc( 1 * sizeof( char * ) ); in ares_parse_ns_reply()
162 if ( hostent->h_addr_list ) in ares_parse_ns_reply()
169 hostent->h_addr_list[0] = NULL; in ares_parse_ns_reply()
Dahost.c178 for (p = host->h_addr_list; *p; p++) in callback()
/external/syslinux/core/lwip/src/api/
Dnetdb.c112 s_hostent.h_addr_list = (char**)&s_phostent_addr; in lwip_gethostbyname()
127 LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list == %p\n", s_hostent.h_addr_list)); in lwip_gethostbyname()
128 if (s_hostent.h_addr_list != NULL) { in lwip_gethostbyname()
130 for ( idx=0; s_hostent.h_addr_list[idx]; idx++) { in lwip_gethostbyname()
131 … LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i] == %p\n", idx, s_hostent.h_addr_list[idx])); in lwip_gethostbyname()
132 …EBUG, ("hostent.h_addr_list[%i]-> == %s\n", idx, ip_ntoa((ip_addr_t*)s_hostent.h_addr_list[idx]))); in lwip_gethostbyname()
218 ret->h_addr_list = (char**)&(h->addrs); in lwip_gethostbyname_r()
/external/curl/lib/
Dcurl_addrinfo.c282 DEBUGASSERT((he->h_name != NULL) && (he->h_addr_list != NULL)); in Curl_he2ai()
284 for(i=0; (curr = he->h_addr_list[i]) != NULL; i++) { in Curl_he2ai()
368 char *h_addr_list[2]; member
435 h->h_addr_list = &buf->h_addr_list[0]; in Curl_ip2addr()
436 h->h_addr_list[0] = addrentry; in Curl_ip2addr()
437 h->h_addr_list[1] = NULL; /* terminate list of entries */ in Curl_ip2addr()
/external/ltp/testcases/network/multicast/mc_gethost/
Dmc_gethost.c95 if (host->h_addr_list && *host->h_addr_list) {
97 for (ap = host->h_addr_list; *ap; ap++) {
/external/syslinux/core/lwip/src/include/lwip/
Dnetdb.h78 char **h_addr_list; /* A pointer to an array of pointers to network addresses (in member
80 #define h_addr h_addr_list[0] /* for backward compatibility */
/external/openssh/openbsd-compat/
Dfake-rfc2553.c210 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) { in getaddrinfo()
214 for (i = 0; hp->h_addr_list[i]; i++) { in getaddrinfo()
215 struct in_addr *in = (struct in_addr *)hp->h_addr_list[i]; in getaddrinfo()
/external/ltp/testcases/network/sockets/
DltpClient.c124 inet_ntoa(*(struct in_addr *)hostEntry->h_addr_list[0])); in main()
130 hostEntry->h_addr_list[0], hostEntry->h_length); in main()
137 hostEntry->h_addr_list[0], hostEntry->h_length); in main()
144 hostEntry->h_addr_list[0], hostEntry->h_length); in main()
236 inet_ntoa(*(struct in_addr *)hostEntry->h_addr_list[0])); in main()
DltpServer.c98 memcpy(&multiCastAddr, hostEntry->h_addr_list[0], hostEntry->h_length); in main()
/external/libpcap/Win32/Src/
Dgetaddrinfo.c590 || (hp->h_addr_list[0] == NULL)) {
602 aplist = hp->h_addr_list;
608 for (naddrs = 0; hp->h_addr_list[naddrs] != NULL; naddrs++)
619 if (hp->h_addr_list[i] == NULL) {
623 memcpy(&apbuf[i * hp->h_length], hp->h_addr_list[i],
931 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
933 GET_AI(cur, afd, hp->h_addr_list[0]);
942 memcpy(ap, hp->h_addr_list[0], hp->h_length);
/external/mdnsresponder/mDNSWindows/mdnsNSP/
DmdnsNSP.c1565 he->h_addr_list = (char **)( dst - base ); in QueryCopyQuerySetTo()
2022 if ( info->m_host.h_addr_list ) in HostsFileInfoFree()
2024 if ( info->m_host.h_addr_list[0] ) in HostsFileInfoFree()
2026 free( info->m_host.h_addr_list[0] ); in HostsFileInfoFree()
2027 info->m_host.h_addr_list[0] = NULL; in HostsFileInfoFree()
2030 free( info->m_host.h_addr_list ); in HostsFileInfoFree()
2031 info->m_host.h_addr_list = NULL; in HostsFileInfoFree()
2169 (*hInfo)->m_host.h_addr_list = (char**) malloc( sizeof( char**) * 2 ); in HostsFileNext()
2170 require_action( (*hInfo)->m_host.h_addr_list, exit, err = kNoMemoryErr ); in HostsFileNext()
2175 (*hInfo)->m_host.h_addr_list[0] = (char*) malloc( (*hInfo)->m_host.h_length ); in HostsFileNext()
[all …]
/external/libpcap/
Dnametoaddr.c108 for (p = (bpf_u_int32 **)hp->h_addr_list; *p; ++p) in pcap_nametoaddr()
110 return (bpf_u_int32 **)hp->h_addr_list; in pcap_nametoaddr()
/external/libcups/cups/
Dhttp-addrlist.c718 for (i = 0; host->h_addr_list[i]; i ++) in httpAddrGetList()
735 memcpy(&(temp->addr.ipv6.sin6_addr), host->h_addr_list[i], in httpAddrGetList()
743 memcpy(&(temp->addr.ipv4.sin_addr), host->h_addr_list[i], in httpAddrGetList()
Dhttp-addr.c716 cg->hostent.h_addr_list = cg->ip_ptrs; in httpGetHostByName()
753 cg->hostent.h_addr_list = cg->ip_ptrs; in httpGetHostByName()
/external/mesa3d/src/gallium/auxiliary/util/
Du_network.c122 memcpy((char *)&sa.sin_addr,host->h_addr_list[0],host->h_length); in u_socket_connect()
/external/toybox/toys/net/
Dnetcat.c78 *result = *(uint32_t *)*hostbyname->h_addr_list; in lookup_name()
/external/openssh/
Dlogintest.c120 memcpy((void *)&(sa_in4.sin_addr), (void *)&(he->h_addr_list[0][0]), in testAPI()
/external/ltp/testcases/network/rpc/basic_tests/rpc01/
Drpc1.c105 host_address = (long)*((int *)hp->h_addr_list[0]); in main()
/external/ppp/pppd/plugins/radius/
Dconfig.c429 for (paddr = hp->h_addr_list; *paddr; paddr++) in find_match()

12