/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | nb_net.c | 66 struct hostent he, *h; local 69 h = gethostbyname_r(name, &he, he_buf, sizeof (he_buf), &err);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | def_realm.c | 86 struct hostent *he = NULL; local 90 he = res_gethostbyaddr((char*)(&sa2sin(addr)->sin_addr), 94 he = res_gethostbyaddr( 100 if (he) { 102 krb5int_fqdn_get_realm(context, he->h_name,
|
/illumos-gate/usr/src/lib/print/libipp-listener/common/ |
H A D | print-job.c | 114 struct hostent *he; local 121 if ((he = getipnodebyaddr((const char *)&peer.sin_addr, 134 if (is_localhost(he->h_name) != 0) 140 else if (he->h_name != NULL) 145 he->h_name);
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | gethostent_r.c | 42 struct hostent *he = gethostbyname(name); local 52 if (he == NULL || (n = copy_hostent(he, hptr, HOST_R_COPY)) != 0) 59 if (he == NULL) 62 return (copy_hostent(he, hptr, HOST_R_COPY)); 69 struct hostent *he = gethostbyaddr(addr, len, type); local 79 if (he == NULL || (n = copy_hostent(he, hptr, HOST_R_COPY)) != 0) 86 if (he == NULL) 89 return (copy_hostent(he, hpt 101 struct hostent *he = gethostent(); local 159 copy_hostent(struct hostent *he, struct hostent *hptr, HOST_R_COPY_ARGS) argument 219 copy_hostent(struct hostent *he, struct hostent *hptr, HOST_R_COPY_ARGS) argument [all...] |
H A D | gethostent.c | 276 struct hostent he, *he1 = NULL, *he2 = NULL, *he3; local 315 DE_CONST(name, he.h_name); 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; 319 he.h_aliases = aliases; 320 he.h_aliases[0] = NULL; 321 he.h_length = (v4 == 1) ? INADDRSZ : IN6ADDRSZ; 322 he.h_addrtype = (v4 == 1) ? AF_INET : AF_INET6; 323 return (copyandmerge(&he, NUL 442 freehostent(struct hostent *he) argument 816 struct hostent *he = NULL; local [all...] |
H A D | irpmarshall.c | 2126 struct hostent he, *hp; local 2131 if (irp_unmarshall_ho(&he, argv[1]) != 0) { 2136 printf("Host: \"%s\"\nAliases:", he.h_name); 2137 for (i = 0 ; he.h_aliases[i] != NULL ; i++) 2138 printf("\n\t\t\"%s\"", he.h_aliases[i]); 2140 ADDR_T_STR(he.h_addrtype)); 2141 printf("Length: %d\nAddresses:", he.h_length); 2142 for (i = 0 ; he.h_addr_list[i] != 0 ; i++) { 2143 inet_ntop(he.h_addrtype, he [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/clear_locks/ |
H A D | clear_locks.c | 62 struct hostent host_ent, *he; local 66 if ((he = gethostbyname_r(client, &host_ent, he_buf, sizeof (he_buf), 85 arg.addr_type = he->h_addrtype; 91 for (ap = he->h_addr_list; *ap; ap++) {
|
/illumos-gate/usr/src/lib/nsswitch/dns/common/ |
H A D | gethostent.c | 137 struct hostent *he; local 145 he = _gethostbyname(&argp->h_errno, argp->key.name); 146 if (he != NULL) { 153 ret = ent2str(he, a, AF_INET); 157 ret = ent2result(he, a, AF_INET); 197 struct hostent *he; local 219 he = _gethostbyaddr(&argp->h_errno, addrp, addrlen, af); 221 if (he != NULL) { 227 ret = ent2str(he, a, argp->key.hostaddr.type); 229 ret = ent2result(he, [all...] |
H A D | gethostent6.c | 284 struct hostent *he = NULL; local 303 he = _nss_dns_gethostbyname2(&argp->h_errno, 305 if (he != NULL) { 307 * pointer in "he" is part of a static pthread key in libresolv 311 v6Name = cloneName(he, &converr); 318 v6Addrs = cloneAddrList(he, 0, &converr); 327 v6Aliases = cloneAliasList(he, 0, &converr); 348 * 2) AI_V4MAPPED and he == NULL 356 ((flags & AI_V4MAPPED) && he == NULL)))) 357 he [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ipaddr.c | 355 static struct hostent he; /* host entry */ local 359 struct hostent *hp = &he;
|
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starfire/ |
H A D | cvcd.c | 587 struct hostent *he; local 634 he = gethostbyname(ssphostname); 635 if (he == NULL) { 664 for (pp = he->h_addr_list; *pp != 0; pp++) { 667 he->h_length) == 0) {
|
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | option.c | 319 struct hostent *he; local 357 he = getipnodebyname((const void *)obj_val, AF_INET6, 0, &err); 358 if (he == 0) { 359 he = getipnodebyname((const void *)obj_val, AF_INET, 361 if (he == 0) { 370 if (he->h_addrtype == AF_INET6) { 373 (in6_addr_t *)he->h_addr_list[0])) { 376 he->h_addr_list[0] + 12, 4); 379 (void) memcpy(ip_ipv6, he->h_addr_list[0], 16); 384 (void) memcpy(&obj_id, he [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | neti_impl.c | 475 * he(I) - event pointer 482 net_event_register(net_handle_t info, hook_event_t *he) argument 487 ASSERT(he != NULL); 493 hei = hook_event_add(info->netd_hooks, he); 501 * he(I) - event pointer 506 net_event_unregister(net_handle_t info, hook_event_t *he) argument 510 ASSERT(he != NULL); 515 return (hook_event_remove(info->netd_hooks, he)); 519 net_event_shutdown(net_handle_t info, hook_event_t *he) argument 523 ASSERT(he ! [all...] |
H A D | hook.c | 208 static hook_event_int_t *hook_event_checkdup(hook_event_t *he, 348 * wanted but from the fw_flags set: only he that sets the flag has the 1286 * he(I) - event pointer 1294 hook_event_add(hook_family_int_t *hfi, hook_event_t *he) argument 1300 ASSERT(he != NULL); 1301 ASSERT(he->he_name != NULL); 1303 new = hook_event_copy(he); 1318 hei = hook_event_checkdup(he, hks); 1353 hfi->hfi_family.hf_name, NULL, he->he_name, HN_REGISTER); 1403 * he( 1414 hook_event_remove(hook_family_int_t *hfi, hook_event_t *he) argument 1503 hook_event_shutdown(hook_family_int_t *hfi, hook_event_t *he) argument 1600 hook_event_checkdup(hook_event_t *he, hook_stack_t *hks) argument [all...] |
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | getipnodeby.c | 1049 * he pointer to hostent with mapped v4 addresses 1064 __mappedtov4(struct hostent *he, int *extract_error) argument 1075 if (he == NULL) { 1079 if ((__find_mapped(he, 0)) == 0) { 1103 for (i = 0; he->h_addr_list[i] != NULL; i++) { 1106 he->h_addr_list[i])) 1123 (struct in6_addr *)he->h_addr_list[i], addr4p); 1133 buff_locp -= (len = strlen(he->h_name) + 1); 1134 h_namep = he->h_name; 1142 if (he 1179 __filter_addresses(int af, struct hostent *he) argument 1223 __find_mapped(struct hostent *he, int find_both) argument [all...] |
H A D | netdir_inet.c | 493 struct hostent *he = NULL, *tmphe; local 502 he = DOOR_GETHOSTBYNAME_R(args->arg.nss.host.name, 506 if (he == NULL) 512 he = DOOR_GETIPNODEBYNAME_R(args->arg.nss.host6.name, 519 if (he == NULL) 584 he = __mappedtov4(tmphe, &h_errnop); 586 if (he == NULL) { 588 he = DOOR_GETHOSTBYNAME_R( 592 if (he == NULL) { 602 ret = hent2ndaddr(AF_INET, he 909 struct hostent *he = NULL, *tmphe; local 2166 hsents2ndhostservs(struct hostent *he, struct servent *se, ushort_t port, struct nd_hostservlist **hslist) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_rules.c | 537 struct hostent *he; local 541 he = getipnodebyaddr((char *)&ip->ia_v4, sizeof (ip->ia_v4), 545 he = getipnodebyaddr((char *)&ip->ia_v6, sizeof (ip->ia_v6), 552 if (he == NULL) 555 (void) strlcpy(buf, he->h_name, bufsize);
|
/illumos-gate/usr/src/cmd/svc/svcadm/ |
H A D | svcadm.c | 210 struct ht_elt *he; local 215 for (he = visited[i]; he != NULL; he = he->next) { 216 if (strcmp(he->str, str) == 0) { 218 *hep = he; 223 he = malloc(offsetof(struct ht_elt, str) + strlen(str) + 1); 224 if (he == NULL) 227 (void) strcpy(he 1036 struct ht_elt *he; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | options.c | 901 hashentry_t *he; local 907 he = (hashentry_t *)malloc(sizeof(*he)); 908 if (he == NULL) { 911 he->opt.p = sopt; 912 he->next = NULL; 932 bucket->next = he; 934 hash_tbl[loc] = he;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ikeadm.c | 584 struct hostent he; member in struct:__anon289 615 dhp->he.h_addr_list = dhp->addtl; 618 hp = &dhp->he; 619 dhp->he.h_addrtype = AF_INET6; 620 dhp->he.h_length = sizeof (struct in6_addr); 622 dhp->he.h_addr_list = dhp->addtl; 625 hp = &dhp->he; 626 dhp->he.h_addrtype = AF_INET; 627 dhp->he.h_length = sizeof (struct in_addr);
|
H A D | ipseckey.c | 730 struct hostent he; member in struct:__anon292 768 dummy.he.h_addr_list = dummy.addtl; 771 hp = &dummy.he; 772 dummy.he.h_addrtype = AF_INET6; 773 dummy.he.h_length = sizeof (struct in6_addr); 778 dummy.he.h_addr_list = dummy.addtl; 781 hp = &dummy.he; 782 dummy.he.h_addrtype = AF_INET6; 783 dummy.he.h_length = sizeof (struct in6_addr); 1254 if (srchp == &dummy.he) { [all...] |
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | conf.c | 1155 ** the user is not logged in or if s/he has write permission 4430 static struct hostent he; local 4434 hp = _switch_gethostbyaddr_r(addr, len, type, &he,
|