Lines Matching defs:host

309 		nssout.nss.host.hent = buf6->result;
310 nssout.nss.host.herrno_p = error_num;
344 nssin.arg.nss.host.name = name;
345 nssin.arg.nss.host.buf = buf4->buffer;
346 nssin.arg.nss.host.buflen = buf4->buflen;
347 nssout.nss.host.hent = buf4->result;
348 nssout.nss.host.herrno_p = error_num;
526 nssin.arg.nss.host.addr = (const char *)tmpbuf;
528 nssin.arg.nss.host.addr = (const char *)addr6;
530 nssin.arg.nss.host.len = sizeof (struct in6_addr);
531 nssin.arg.nss.host.type = AF_INET6;
532 nssin.arg.nss.host.buf = buf->buffer;
533 nssin.arg.nss.host.buflen = buf->buflen;
535 nssout.nss.host.hent = buf->result;
536 nssout.nss.host.herrno_p = error_num;
606 nssin.arg.nss.host.addr = (const char *)addr6;
607 nssin.arg.nss.host.len = sizeof (struct in6_addr);
608 nssin.arg.nss.host.type = AF_INET6;
609 nssin.arg.nss.host.buf = buf->buffer;
610 nssin.arg.nss.host.buflen = buf->buflen;
612 nssout.nss.host.hent = buf->result;
613 nssout.nss.host.herrno_p = error_num;
656 nssin.arg.nss.host.addr = (const char *)addr6;
657 nssin.arg.nss.host.len = len;
658 nssin.arg.nss.host.type = type;
659 nssin.arg.nss.host.buf = buf->buffer;
660 nssin.arg.nss.host.buflen = buf->buflen;
662 nssout.nss.host.hent = buf->result;
663 nssout.nss.host.herrno_p = error_num;
678 return (nssout.nss.host.hent);
846 struct hostent *host;
854 host = (struct hostent *)res->result;
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) {
874 (char *)&(host->h_addr_list[count + 1])) {
883 host->h_addr_list[count] = (char *)addr6p;
896 host->h_addr_list[count] = NULL;
897 host->h_aliases = host->h_addr_list + count + 1;
905 (void) inet_ntop(AF_INET6, host->h_addr_list[0], tmpstr,
909 if (buff_locp <= (char *)(host->h_aliases))
912 host->h_name = buff_locp;
913 host->h_aliases = NULL; /* no aliases for literal */
914 host->h_length = sizeof (struct in6_addr);
915 host->h_addrtype = AF_INET6;
916 return (host); /* we're done, return result */
923 if (buff_locp <= (char *)(host->h_aliases))
926 host->h_name = buff_locp;
933 (char *)&(host->h_aliases[count + 1])) {
940 host->h_aliases[count] = buff_locp;
944 host->h_aliases[count] = NULL;
945 host->h_length = sizeof (struct in6_addr);
946 host->h_addrtype = AF_INET6;
947 return (host);
958 (char *)&(host->h_addr_list[count + 1])) {
965 host->h_addr_list[count] = buff_locp;
976 (char *)&(host->h_addr_list[count + 1])) {
985 host->h_addr_list[count] = (char *)addr6p;
994 * Pass 2 (IPv6 aliases, host name first). We start h_aliases
999 host->h_addr_list[count] = NULL;
1000 host->h_aliases = host->h_addr_list + count + 1;
1003 if (buff_locp <= (char *)(host->h_aliases))
1006 host->h_name = buff_locp;
1010 (char *)&(host->h_aliases[count + 1])) {
1017 host->h_aliases[count] = buff_locp;
1027 (char *)&(host->h_aliases[count + 1])) {
1034 host->h_aliases[count] = buff_locp;
1038 host->h_aliases[count] = NULL;
1039 host->h_length = sizeof (struct in6_addr);
1040 host->h_addrtype = AF_INET6;
1041 return (host);
1080 struct hostent *host;
1097 host = (struct hostent *)res->result;
1101 host->h_addr_list = (char **)ROUND_UP(buffer, sizeof (char **));
1102 if ((char *)host->h_addr_list >= limit ||
1103 buff_locp <= (char *)host->h_addr_list)
1123 (char *)&(host->h_addr_list[count + 1]))
1127 host->h_addr_list[count] = (char *)addr4p;
1138 host->h_addr_list[count] = NULL;
1139 host->h_aliases = host->h_addr_list + count + 1;
1141 /* Copy official host name */
1144 if (buff_locp <= (char *)(host->h_aliases))
1147 host->h_name = buff_locp;
1159 (char *)&(host->h_aliases[count + 1]))
1161 host->h_aliases[count] = buff_locp;
1166 host->h_aliases[count] = NULL;
1167 host->h_length = sizeof (struct in_addr);
1168 host->h_addrtype = AF_INET;
1170 return (host);