Lines Matching refs:host
10 * host (or domain) names, NIS (host) netgroup names, IP addresses (or
104 /* hosts_access - host access control facility */
231 char *host;
233 if ((host = split_at(tok + 1, '@')) == 0) { /* plain daemon */
235 } else { /* daemon@host */
237 && host_match(host, request->server));
247 char *host;
249 if ((host = split_at(tok + 1, '@')) == 0) { /* plain host */
251 } else { /* user@host */
252 return (host_match(host, request->client)
257 /* host_match - match host name and/or address against pattern */
259 static int host_match(tok, host)
261 struct host_info *host;
270 * patterns are specific to host names or to host addresses; all other
279 return (innetgr(tok + 1, eval_hostname(host), (char *) 0, mydomain));
285 char *name = eval_hostname(host);
286 return (STR_NE(eval_hostaddr(host), unknown) && HOSTNAME_KNOWN(name));
288 char *name = eval_hostname(host);
302 if (host->sin == NULL) {
303 if (host->addr == NULL ||
304 inet_pton(AF_INET6, host->addr, &hostin6) != 1) {
309 if (SGFAM(host->sin) != AF_INET6)
311 hip = &host->sin->sg_sin6.sin6_addr;
329 if (host->sin != NULL) {
330 hostin6 = host->sin->sg_sin6.sin6_addr;
341 * then compare. Note that we take a copy of the host info
353 return (masked_match(tok, mask, eval_hostaddr(host)));
355 return (string_match(tok, eval_hostaddr(host))
356 || (NOT_INADDR(tok) && string_match(tok, eval_hostname(host))));