Lines Matching refs:cname
253 resolve_host(const char *name, int port, int logerr, char *cname, size_t clen) in resolve_host() argument
263 if (cname != NULL) in resolve_host()
264 *cname = '\0'; in resolve_host()
272 if (cname != NULL) in resolve_host()
281 if (cname != NULL && res->ai_canonname != NULL) { in resolve_host()
285 } else if (strlcpy(cname, res->ai_canonname, clen) >= clen) { in resolve_host()
289 *cname = '\0'; in resolve_host()
387 check_follow_cname(int direct, char **namep, const char *cname) in check_follow_cname() argument
392 if (*cname == '\0' || !config_has_permitted_cnames(&options) || in check_follow_cname()
393 strcmp(*namep, cname) == 0) in check_follow_cname()
404 debug3_f("check \"%s\" CNAME \"%s\"", *namep, cname); in check_follow_cname()
408 match_pattern_list(cname, rule->target_list, 1) != 1) in check_follow_cname()
411 "\"%s\" => \"%s\"", *namep, cname); in check_follow_cname()
413 *namep = xstrdup(cname); in check_follow_cname()
674 char cname[NI_MAXHOST], thishost[NI_MAXHOST]; in main() local
1255 direct, cname, sizeof(cname))) == NULL) { in main()
1260 check_follow_cname(direct, &host, cname); in main()
1630 cname, sizeof(cname))) == NULL) in main()