/external/c-ares/ |
D | ares__get_hostent.c | 175 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 …]
|
D | ares_parse_ptr_reply.c | 178 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()
|
D | ares_gethostbyname.c | 304 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 …]
|
D | ares_free_hostent.c | 38 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()
|
D | ares_parse_aaaa_reply.c | 231 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()
|
D | ares_parse_a_reply.c | 233 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()
|
D | ares_parse_ns_reply.c | 161 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()
|
D | ahost.c | 178 for (p = host->h_addr_list; *p; p++) in callback()
|
/external/syslinux/core/lwip/src/api/ |
D | netdb.c | 112 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/ |
D | curl_addrinfo.c | 282 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/ |
D | mc_gethost.c | 95 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/ |
D | netdb.h | 78 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/ |
D | fake-rfc2553.c | 210 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/ |
D | ltpClient.c | 124 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()
|
D | ltpServer.c | 98 memcpy(&multiCastAddr, hostEntry->h_addr_list[0], hostEntry->h_length); in main()
|
/external/libpcap/Win32/Src/ |
D | getaddrinfo.c | 590 || (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/ |
D | mdnsNSP.c | 1565 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/ |
D | nametoaddr.c | 108 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/ |
D | http-addrlist.c | 718 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()
|
D | http-addr.c | 716 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/ |
D | u_network.c | 122 memcpy((char *)&sa.sin_addr,host->h_addr_list[0],host->h_length); in u_socket_connect()
|
/external/toybox/toys/net/ |
D | netcat.c | 78 *result = *(uint32_t *)*hostbyname->h_addr_list; in lookup_name()
|
/external/openssh/ |
D | logintest.c | 120 memcpy((void *)&(sa_in4.sin_addr), (void *)&(he->h_addr_list[0][0]), in testAPI()
|
/external/ltp/testcases/network/rpc/basic_tests/rpc01/ |
D | rpc1.c | 105 host_address = (long)*((int *)hp->h_addr_list[0]); in main()
|
/external/ppp/pppd/plugins/radius/ |
D | config.c | 429 for (paddr = hp->h_addr_list; *paddr; paddr++) in find_match()
|