Lines Matching refs:hostent

93 static struct hostent *__mapv4tov6(struct hostent *, struct hostent *,
95 struct hostent *__mappedtov4(struct hostent *, int *);
96 static struct hostent *__filter_addresses(int, struct hostent *);
97 static int __find_mapped(struct hostent *, int);
104 struct hostent *
105 _uncached_getipnodebyname(const char *nam, struct hostent *result,
112 struct hostent *
114 struct hostent *result, char *buffer, int buflen, int *h_errnop)
242 struct hostent *
245 struct hostent *hp = NULL;
470 struct hostent *
478 struct hostent *hp = 0;
569 * At this point, we'll have a v4mapped hostent. If that's
688 freehostent(struct hostent *hent)
838 static struct hostent *
839 __mapv4tov6(struct hostent *he4, struct hostent *he6, nss_XbyY_buf_t *res,
846 struct hostent *host;
854 host = (struct hostent *)res->result;
1046 * This routine will convert a mapped v4 hostent (AF_INET6) to a
1047 * AF_INET hostent. If no mapped addrs found, then a NULL is returned.
1050 * hostent is returned.
1058 * he pointer to hostent with mapped v4 addresses
1061 * pointer to a malloc'd hostent with v4 addresses.
1072 struct hostent *
1073 __mappedtov4(struct hostent *he, int *extract_error)
1080 struct hostent *host;
1097 host = (struct hostent *)res->result;
1106 * "Unmap" the v4 mapped address(es) into a v4 hostent format.
1178 * This routine takes as input a pointer to a hostent and filters out
1187 static struct hostent *
1188 __filter_addresses(int af, struct hostent *he)
1213 /* NULL terminate the list and return the hostent */
1220 * This routine searches a hostent for v4 mapped IPv6 addresses.
1221 * he hostent structure to seach
1228 * If hostent passed in with no addresses, zero will be returned.
1232 __find_mapped(struct hostent *he, int find_both)
1258 * separates the result pointer (ptr to hostent+data buf) from the
1259 * nss_XbyY_buf_t ptr (required for nsswitch API). The returned hostent ptr
1266 * |struct hostent |addresses aliases |
1281 if ((bufp->result = malloc(ALIGN(sizeof (struct hostent)) + bufsz)) ==
1286 bufp->buffer = (char *)(bufp->result) + sizeof (struct hostent);
1293 * hostent pointer, so don't use for successful returns.