Lines Matching refs:host
50 static int addzoneid(const struct sockaddr_in6 *sa, char *host,
69 * hostlen - length of caller supplied "host" buffer
75 * NI_NUMERICHOST - Always return numeric form of the host's
86 * host - return the nodename associcated with the IP address in the
87 * buffer pointed to by the "host" argument.
96 char *host, socklen_t hostlen,
133 * fill in "host" buffer that user passed in
138 /* Caller wants the host's numeric address */
140 host, hostlen) == NULL)
145 /* Caller wants the name of host */
163 (void) strcpy(host, hp->h_name);
169 * return error; otherwise, return host's
187 host, hostlen) == NULL)
194 * zone-id needs to be appended to the resultant 'host'
206 * zone-id to 'host'. If it does not, return
210 if ((err = addzoneid(sa2sin6(sa), host,
266 * addzoneid(sa, host, hostlen)
268 * Appends a zone-id to the input 'host' string if the input sin6_scope_id
269 * is non-zero. The resultant 'host' string would be of the form
270 * 'host'%'zone-id'. Where 'zone-id' can be either an interface name or a
278 addzoneid(const struct sockaddr_in6 *sa, char *host, size_t hostlen)
282 size_t addrlen = strlen(host);
291 host[addrlen] = '%'; /* place address-zoneid delimiter */
292 (void) strlcpy((host + addrlen + 1), zonestr, (zonelen + 1));