Lines Matching refs:hostlen
98 socklen_t hostlen
143 socklen_t hostlen,
153 return getnameinfo_inet(sa, salen, host, hostlen,
156 return getnameinfo_link(sa, salen, host, hostlen,
174 socklen_t hostlen,
286 if (host == NULL || hostlen == 0) {
291 * hostlen == 0 means that the caller does not want the result.
307 hostlen, flags)) != 0)
317 if (numaddrlen + 1 > hostlen) /* don't forget terminator */
319 strlcpy(host, numaddr, hostlen);
338 if (strlen(hp->h_name) + 1 > hostlen) {
341 strlcpy(host, hp->h_name, hostlen);
352 hostlen,
360 hostlen) == NULL)
375 socklen_t hostlen,
390 if (numaddrlen + 1 > hostlen) /* don't forget terminator */
392 strlcpy(host, numaddr, hostlen);
403 if ((size_t) zonelen + 1 + numaddrlen + 1 > hostlen)
481 socklen_t hostlen,
496 n = snprintf(host, hostlen, "link#%u", sdl->sdl_index);
497 if (n < 0 || (socklen_t) n > hostlen) {
511 n = snprintf(host, hostlen, "%u", CLLADDR(sdl)[0]);
513 n = snprintf(host, hostlen, "%u.%u",
515 if (n < 0 || (socklen_t) n >= hostlen) {
527 host, hostlen);
552 (size_t)sdl->sdl_alen, host, hostlen);
562 socklen_t hostlen
571 n = snprintf(outp, hostlen, "%s%02x",
573 if (n < 0 || (socklen_t) n >= hostlen) {
578 hostlen -= n;