Lines Matching defs:hostname
79 HostInfo *find_host(char *hostname, int create)
88 if (getaddrinfo(hostname, NULL, NULL, &ai1) != 0)
92 if (!strncasecmp(hostname, hp->hostname, SM_MAXSTRLEN))
97 if (hp->hostname[0] != '\0' &&
98 getaddrinfo(hp->hostname, NULL, NULL, &ai2) != 0)
157 strncpy(spare_slot->hostname, hostname, SM_MAXSTRLEN);
256 static int notify_one_host(char *hostname, int verbose)
269 if (debug) syslog (LOG_DEBUG, "Sending SM_NOTIFY to host %s from %s", hostname, our_hostname);
271 cli = clnt_create(hostname, SM_PROG, SM_VERS, "udp");
274 syslog(LOG_ERR, "Failed to contact host %s%s", hostname,
284 syslog(LOG_ERR, "Failed to contact rpc.statd at host %s", hostname);
353 if (notify_one_host(hp->hostname, attempts == 0))