Lines Matching defs:conf
20 #define DNS_RESOLV_CONF_PATH "/etc/resolv.conf"
104 int __get_resolv_conf(struct resolvconf *conf, char *search, size_t search_sz)
106 return get_resolv_conf_ext(conf, search, search_sz, 0);
109 int get_resolv_conf_ext(struct resolvconf *conf, char *search, size_t search_sz, int netid)
116 conf->ndots = 1;
117 conf->timeout = 5;
118 conf->attempts = 2;
144 conf->timeout = 60;
146 conf->timeout = timeout_second;
151 conf->attempts = 10;
153 conf->attempts = config.retry_count;
160 if (__lookup_ipliteral(conf->ns + nns, config.nameservers[i], AF_UNSPEC) > 0) {
179 MUSL_LOGE("%{public}s: %{public}d: open resolv.conf failed with Unexpected errno: %{public}d",
200 if (z != p) conf->ndots = x > 15 ? 15 : x;
206 if (z != p) conf->attempts = x > 10 ? 10 : x;
212 if (z != p) conf->timeout = x > 60 ? 60 : x;
221 if (__lookup_ipliteral(conf->ns+nns, p, AF_UNSPEC) > 0)
241 __lookup_ipliteral(conf->ns, "127.0.0.1", AF_UNSPEC);
246 conf->nns = nns;