Lines Matching defs:hostname
133 strlcpy(hi->hostname, rr->u.srv->target, len + 1);
227 memcpy(hi->hostname, &p[1], q - p - 1);
228 hi->hostname[q - p - 1] = '\0';
233 } else if(strsep_copy(&p, ":", hi->hostname, strlen(spec) + 1) < 0) {
239 hi->hostname[strcspn(hi->hostname, "/")] = '\0';
240 strlwr(hi->hostname);
269 size_t hostnamelen = strlen(from->hostname);
284 memcpy((*to)->hostname, from->hostname, hostnamelen + 1);
297 strcmp(h->hostname, host->hostname) == 0) {
320 * return a readable representation of `host' in `hostname, hostlen'
325 char *hostname, size_t hostlen)
335 snprintf(hostname, hostlen, "%s%s%s", proto, host->hostname, portstr);
378 char *hostname = host->hostname;
390 ret = getaddrinfo(host->hostname, portstr, &hints, &host->ai);
395 * If the hostname contains a dot, assumes it's a FQDN and
402 if (strchr(hostname, '.') && hostname[strlen(hostname) - 1] != '.') {
403 ret = asprintf(&hostname, "%s.", host->hostname);
404 if (ret < 0 || hostname == NULL)
408 ret = getaddrinfo(hostname, portstr, &hints, &host->ai);
409 if (hostname != host->hostname)
410 free(hostname);
536 memmove(hi->hostname, host, hostlen);
537 hi->hostname[hostlen] = '\0';
581 memmove(hi->hostname, host, hostlen);
582 hi->hostname[hostlen] = '\0';
973 * in `hostname' (or length `hostlen)
979 char *hostname,
987 return krb5_krbhst_format_string(context, host, hostname, hostlen);