Lines Matching refs:hostname
77 HostInfo *find_host(char *hostname, int create) in find_host() argument
86 if (getaddrinfo(hostname, NULL, NULL, &ai1) != 0) in find_host()
90 if (!strncasecmp(hostname, hp->hostname, SM_MAXSTRLEN)) in find_host()
95 if (hp->hostname[0] != '\0' && in find_host()
96 getaddrinfo(hp->hostname, NULL, NULL, &ai2) != 0) in find_host()
155 strncpy(spare_slot->hostname, hostname, SM_MAXSTRLEN); in find_host()
254 static int notify_one_host(char *hostname, int verbose) in notify_one_host() argument
267 if (debug) syslog (LOG_DEBUG, "Sending SM_NOTIFY to host %s from %s", hostname, our_hostname); in notify_one_host()
269 cli = clnt_create(hostname, SM_PROG, SM_VERS, "udp"); in notify_one_host()
272 syslog(LOG_ERR, "Failed to contact host %s%s", hostname, in notify_one_host()
282 syslog(LOG_ERR, "Failed to contact rpc.statd at host %s", hostname); in notify_one_host()
351 if (notify_one_host(hp->hostname, attempts == 0)) in notify_hosts()