Lines Matching defs:hostname
139 strlcpy(hi->hostname, rr->u.srv->target, len + 1);
233 memcpy(hi->hostname, &p[1], q - p - 1);
234 hi->hostname[q - p - 1] = '\0';
239 } else if(strsep_copy(&p, ":", hi->hostname, strlen(spec) + 1) < 0) {
245 hi->hostname[strcspn(hi->hostname, "/")] = '\0';
246 strlwr(hi->hostname);
275 size_t hostnamelen = strlen(from->hostname);
290 memcpy((*to)->hostname, from->hostname, hostnamelen + 1);
303 strcmp(h->hostname, host->hostname) == 0) {
326 * return a readable representation of `host' in `hostname, hostlen'
331 char *hostname, size_t hostlen)
341 snprintf(hostname, hostlen, "%s%s%s", proto, host->hostname, portstr);
384 char *hostname = host->hostname;
396 ret = getaddrinfo(host->hostname, portstr, &hints, &host->ai);
401 * If the hostname contains a dot, assumes it's a FQDN and
408 if (strchr(hostname, '.') && hostname[strlen(hostname) - 1] != '.') {
409 ret = asprintf(&hostname, "%s.", host->hostname);
410 if (ret < 0 || hostname == NULL)
414 ret = getaddrinfo(hostname, portstr, &hints, &host->ai);
415 if (hostname != host->hostname)
416 free(hostname);
542 memmove(hi->hostname, host, hostlen);
543 hi->hostname[hostlen] = '\0';
587 memmove(hi->hostname, host, hostlen);
588 hi->hostname[hostlen] = '\0';
979 * in `hostname' (or length `hostlen)
985 char *hostname,
993 return krb5_krbhst_format_string(context, host, hostname, hostlen);