Lines Matching defs:host
8 * Routines for controlled evaluation of host names, user names, and so on.
43 * host name has the value STRING_PARANOID it means there was a name/address
64 char *eval_hostaddr(host)
65 struct host_info *host;
67 if (host->addr[0] == 0) {
68 strcpy(host->addr, unknown);
69 if (host->request->hostaddr != 0)
70 host->request->hostaddr(host);
72 return (host->addr);
75 /* eval_hostname - look up host name */
77 char *eval_hostname(host)
78 struct host_info *host;
80 if (host->name[0] == 0) {
81 strcpy(host->name, unknown);
82 if (host->request->hostname != 0)
83 host->request->hostname(host);
85 return (host->name);
88 /* eval_hostinfo - return string with host name (preferred) or address */
90 char *eval_hostinfo(host)
91 struct host_info *host;
95 #ifndef ALWAYS_HOSTNAME /* no implicit host lookups */
96 if (host->name[0] == 0)
97 return (eval_hostaddr(host));
99 hostname = eval_hostname(host);
101 return (host->name);
103 return (eval_hostaddr(host));
133 char *host = eval_hostinfo(request->server);
136 if (STR_NE(host, unknown)) {
137 sprintf(both, "%s@%s", daemon, host);