Lines Matching refs:host
2 * Routines for controlled evaluation of host names, user names, and so on.
37 * host name has the value STRING_PARANOID it means there was a name/address
58 char *eval_hostaddr(host)
59 struct host_info *host;
61 if (host->addr[0] == 0) {
62 strcpy(host->addr, unknown);
63 if (host->request->hostaddr != 0)
64 host->request->hostaddr(host);
66 return (host->addr);
69 /* eval_hostname - look up host name */
71 char *eval_hostname(host)
72 struct host_info *host;
74 if (host->name[0] == 0) {
75 strcpy(host->name, unknown);
76 if (host->request->hostname != 0)
77 host->request->hostname(host);
79 return (host->name);
82 /* eval_hostinfo - return string with host name (preferred) or address */
84 char *eval_hostinfo(host)
85 struct host_info *host;
89 #ifndef ALWAYS_HOSTNAME /* no implicit host lookups */
90 if (host->name[0] == 0)
91 return (eval_hostaddr(host));
93 hostname = eval_hostname(host);
95 return (host->name);
97 return (eval_hostaddr(host));
127 char *host = eval_hostinfo(request->server);
130 if (STR_NE(host, unknown)) {
131 sprintf(both, "%s@%s", daemon, host);