Home | History | Annotate | Download | only in net

Lines Matching full:host

110 int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host, size_t hostlen, char* serv, size_t servlen, int flags)
115 return getnameinfo_inet(sa, salen, host, hostlen,
119 return getnameinfo_link(sa, salen, host, hostlen,
133 getnameinfo_inet(sa, salen, host, hostlen, serv, servlen, flags)
136 char *host;
153 /* host may be NULL */
243 if (host == NULL || hostlen == 0) {
247 * "||" here: rfc2553bis-03 says that host == NULL or
263 if ((error = ip6_parsenumeric(sa, addr, host,
276 strlcpy(host, numaddr, hostlen);
285 * commented out, since "for local host" is not
298 strlcpy(host, hp->h_name, hostlen);
308 if ((error = ip6_parsenumeric(sa, addr, host,
316 if (inet_ntop(afd->a_af, addr, host,
328 ip6_parsenumeric(sa, addr, host, hostlen, flags)
331 char *host;
340 assert(host != NULL);
348 strlcpy(host, numaddr, hostlen);
362 memcpy(host + numaddrlen + 1, zonebuf,
364 host[numaddrlen] = SCOPE_DELIMITER;
365 host[numaddrlen + 1 + zonelen] = '\0';
426 char *host, socklen_t hostlen, char *serv, socklen_t servlen,
438 n = snprintf(host, hostlen, "link#%u", sdl->sdl_index);
440 *host = '\0';
452 n = snprintf(host, hostlen, "%u", CLLADDR(sdl)[0]);
454 n = snprintf(host, hostlen, "%u.%u",
457 *host = '\0';
468 host, hostlen);
492 (size_t)sdl->sdl_alen, host, hostlen);
497 hexname(cp, len, host, hostlen)
499 char *host;
505 char *outp = host;
512 *host = '\0';