Searched refs:he (Results 1 - 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgethostent_r.c42 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 Dgethostent.c276 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 Dirpmarshall.c2126 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/lib/print/libipp-listener/common/
H A Dprint-job.c114 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/nsswitch/dns/common/
H A Dgethostent6.c284 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...]
H A Dgethostent.c137 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 Ddns_common.c106 ent2result(he, argp, af_type)
107 struct hostent *he;
129 len = strlen(he->h_name) + 1;
133 (void) memcpy(host->h_name, he->h_name, len);
141 ret = dns_netdb_aliases(he->h_addr_list, host->h_addr_list,
147 ret = dns_netdb_aliases(he->h_aliases, host->h_aliases,
154 if (he->h_addrtype == AF_INET && af_type == AF_INET6) {
155 ret = dns_netdb_aliases(he->h_addr_list,
159 ret = dns_netdb_aliases(he->h_addr_list,
167 ret = dns_netdb_aliases(he
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/clear_locks/
H A Dclear_locks.c62 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/libsmbfs/smb/
H A Dnb_net.c66 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 Ddef_realm.c86 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/libnsl/nss/
H A Dgetipnodeby.c1049 * 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 Dnetdir_inet.c493 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/uts/common/io/
H A Dneti_impl.c475 * 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 Dhook.c208 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/cmd/svc/svcadm/
H A Dsvcadm.c210 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/auditreduce/
H A Doption.c319 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/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipseckey.c730 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...]
H A Dikeadm.c584 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);
/illumos-gate/usr/src/grub/grub-0.97/
H A Dmissing64 -h|--h|--he|--hel|--help)
H A Dconfig.status.solaris342 --he | --h)
H A Dconfigure432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
6589 --he | --h)
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starfire/
H A Dcvcd.c587 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/cmd-inet/usr.bin/pppd/
H A Doptions.c901 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/snoop/
H A Dsnoop_ipaddr.c355 static struct hostent he; /* host entry */ local
359 struct hostent *hp = &he;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_rules.c537 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);

Completed in 152 milliseconds

12