Searched refs:h_addr_list (Results 1 - 25 of 47) sorted by relevance

12

/osnet-11/usr/src/lib/libresolv2/common/irs/
H A Dgethostent_r.c168 for (i = 0; he->h_addr_list[i]; i++, nptr++) {
190 hptr->h_addr_list = ptr;
191 for (i = 0; he->h_addr_list[i]; i++ , ptr++) {
192 memcpy(cp, he->h_addr_list[i], n);
193 hptr->h_addr_list[i] = cp;
196 hptr->h_addr_list[i] = NULL;
231 hptr->h_addr_list = hdptr->h_addr_ptrs;
232 while (he->h_addr_list[i] && i < (_MAXADDRS)) {
234 memcpy(cp, he->h_addr_list[i], n);
235 hptr->h_addr_list[
[all...]
H A Dgethostent.c186 for (hap = net_data->ho_last->h_addr_list;
316 he.h_addr_list = addr_list;
317 he.h_addr_list[0] = (v4 == 1) ? (char *)&in4 : (char *)&in6;
318 he.h_addr_list[1] = NULL;
449 cpp = he->h_addr_list;
466 memput(he->h_addr_list, sizeof(char *) * (addresses));
826 cpp = he1->h_addr_list;
839 cpp = he2->h_addr_list;
862 he->h_addr_list = memget(sizeof(char *) * (addresses));
863 if (he->h_addr_list
[all...]
H A Dirp_ho.c235 for (p = ho->h_addr_list ; *p != NULL ; p++) {
388 if (ho->h_addr_list != NULL) {
389 for (p = ho->h_addr_list ; *p != NULL ; p++)
391 free(ho->h_addr_list);
H A Dlcl_ho.c296 for (hap = hp->h_addr_list; *hap; hap++) {
401 pvt->host.h_addr_list = pvt->h_addr_ptrs;
536 (hp->h_addr_list[0] == NULL)) {
/osnet-11/usr/src/lib/libnsl/nss/
H A Dgetipnodeby.c386 order_haddrlist_af(AF_INET6, hp->h_addr_list);
576 addr6 = (struct in6_addr *)hp->h_addr_list[0];
858 host->h_addr_list = (char **)ROUND_UP(buffer, sizeof (char **));
859 if ((char *)host->h_addr_list >= limit ||
860 buff_locp <= (char *)host->h_addr_list) {
871 for (i = 0; he4->h_addr_list[i] != NULL; i++) {
874 (char *)&(host->h_addr_list[count + 1])) {
883 host->h_addr_list[count] = (char *)addr6p;
889 bcopy((char *)he4->h_addr_list[i],
896 host->h_addr_list[coun
[all...]
H A Dgethostent.c161 /* Allocate space for naddr addresses and h_addr_list */
276 host->h_addr_list = addrvec;
/osnet-11/usr/src/cmd/sendmail/aux/
H A Dmconnect.c137 bcopy(hp->h_addr_list[addr_num],
142 bcopy(&hp->h_addr_list[addr_num][IN6ADDRSZ - INADDRSZ],
172 if (hp->h_addr_list[++addr_num] != NULL) {
175 bcopy(hp->h_addr_list[addr_num],
180 bcopy(&hp->h_addr_list[addr_num]
/osnet-11/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c128 /* h_addr_list */
131 host->h_addr_list = (char **)
133 ret = dns_netdb_aliases(he->h_addr_list, host->h_addr_list,
138 host->h_aliases = host->h_addr_list + count + 1;
144 host->h_addr_list = (char **)
147 ret = dns_netdb_aliases(he->h_addr_list,
148 host->h_addr_list, (char **)&addrp6,
151 ret = dns_netdb_aliases(he->h_addr_list,
152 host->h_addr_list, (cha
[all...]
H A Dgethostent6.c124 * Copy the h->h_addr_list[] array to a new array, and append the
125 * moreAddrs[] list. If h->h_addr_list[] contains IPv4 addresses,
144 if (h == 0 || h->h_addr_list == 0) {
158 for (addrCount = 0; h->h_addr_list[addrCount]; addrCount++);
179 (struct in_addr *)h->h_addr_list[i], addrArray[i]);
181 (void) memcpy(addrArray[i], h->h_addr_list[i],
378 mhe.h_addr_list = (char **)mergeAddrs;
407 v6he.h_addr_list = (char **)v6Addrs;
/osnet-11/usr/src/lib/libwrap/
H A Dworkarounds.c234 if ((hp = gethostbyname(name)) && !hp->h_addr_list[1] && hp->h_aliases[1]) {
242 o_addr_list = hp->h_addr_list;
245 hp->h_addr_list = hp->h_aliases;
H A Dsocket.c217 for (i = 0; hp->h_addr_list[i]; i++) {
218 if (memcmp(hp->h_addr_list[i],
/osnet-11/usr/src/lib/libresolv/
H A Dnetdb.h61 char **h_addr_list; /* list of addresses from name server */ member in struct:hostent
62 #define h_addr h_addr_list[0] /* address, for backward compatiblity */
H A Dres_gethost.c131 host.h_addr_list = h_addr_ptrs;
328 for (a = hp2->h_addr_list; *a; a++)
393 host.h_addr_list = host_addrs;
/osnet-11/usr/src/lib/nsswitch/files/common/
H A Dgethostent.c859 hp->h_addr_list = (char **)(ROUND_DOWN(addrp -
864 hp->h_addr_list[i] = (char *)addrp;
870 hp->h_addr_list = (char **)(ROUND_DOWN(addrp6 -
876 hp->h_addr_list[i] = (char *)addrp6;
880 hp->h_addr_list[nhosts] = 0;
883 (char *)hp->h_addr_list - args->buf.buffer);
/osnet-11/usr/src/cmd/hal/addons/network-devices/
H A Dcommon.c92 (void) memcpy(&ipv6addr, hp->h_addr_list[0], hp->h_length);
131 (void) memcpy(&sin6->sin6_addr, hp->h_addr_list[0],
154 addr_to_string("IPV6ADDR-", (uchar_t *)&hp->h_addr_list[0],
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Net/
H A Dhostent.pm13 @h_addr_list $h_addr
41 @h_addr_list = @{ $hob->[4] } = @_[ (4 .. $#_) ];
/osnet-11/usr/src/lib/libsocket/inet/
H A Dgetaddrinfo.c632 for (i = 0; hp->h_addr_list[i]; i++) {
637 v6addrp = (struct in6_addr *)hp->h_addr_list[i];
645 (void) memcpy(&v4addr, hp->h_addr_list[i],
669 hp->h_addr_list[i], sizeof (struct in6_addr));
/osnet-11/usr/src/lib/libsldap/common/
H A Dns_standalone.c484 result->h_addr_list = (char **)ROUND_UP(
487 result->h_aliases = (char **)ROUND_UP(result->h_addr_list,
494 result->h_addr_list[0] = buffer + buflen -
496 result->h_addr_list[1] = NULL;
497 result->h_aliases = result->h_addr_list;
516 result->h_addr_list = (char **)ROUND_UP(
519 result->h_aliases = (char **)ROUND_UP(result->h_addr_list,
526 result->h_addr_list[0] = buffer + buflen -
528 result->h_addr_list[1] = NULL;
529 result->h_aliases = result->h_addr_list;
[all...]
/osnet-11/usr/src/cmd/sendmail/src/
H A Ddaemon.c1664 while (*(hp->h_addr_list) != NULL &&
1666 hp->h_addr_list++;
1667 if (*(hp->h_addr_list) == NULL)
1672 *(hp->h_addr_list),
1696 while (*(hp->h_addr_list) != NULL &&
1698 hp->h_addr_list++;
1699 if (*(hp->h_addr_list) == NULL)
1704 *(hp->h_addr_list),
2718 if (hp != NULL && hp->h_addr_list[addrno] != NULL &&
2729 hp->h_addr_list[addrn
[all...]
/osnet-11/usr/src/lib/libdhcpdu/common/
H A Drfc2136.c167 if (hp->h_addr_list == NULL) {
168 dprint("h_addr_list is NULL - return -1\n");
172 if (hp->h_addr_list[0] == NULL) {
173 dprint("h_addr_list is zero-length - return -1\n");
913 free(hp->h_addr_list);
/osnet-11/usr/src/lib/libldap4/common/
H A Dos-ip.c178 for (i = 0; !use_hp || (hp->h_addr_list[i] != 0); i++) {
195 (use_hp ? (char *) hp->h_addr_list[i] :
H A Dcldap.c161 for ( i = 0; hp->h_addr_list[ i ] != 0; ++i ) {
163 (char *)hp->h_addr_list[ i ],
/osnet-11/usr/src/lib/libldap5/sources/ldap/prldap/
H A Dldappr-dns.c169 ldhp->ldaphe_addr_list = prhp->h_addr_list;
/osnet-11/usr/src/lib/libdscfg/common/
H A Dcfg_lockdmsg.c315 (void) memcpy(&(server.sin_addr.s_addr), *(hp->h_addr_list),
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_mn_subr.c402 } else if (*hp->h_addr_list == NULL) {
409 (void) memcpy(&in.s_addr, *hp->h_addr_list,

Completed in 114 milliseconds

12