Lines Matching refs:current_dns_server

102             m->current_dns_server &&  in dns_server_new()
103 m->current_dns_server->type == DNS_SERVER_FALLBACK) in dns_server_new()
166 if (s->link && s->link->current_dns_server == s) in dns_server_unlink()
169 if (s->manager->current_dns_server == s) in dns_server_unlink()
849 if (m->current_dns_server == s) in manager_set_dns_server()
855 …log_full((s->type == DNS_SERVER_FALLBACK) != (m->current_dns_server && m->current_dns_server->type… in manager_set_dns_server()
858 dns_server_unref(m->current_dns_server); in manager_set_dns_server()
859 m->current_dns_server = dns_server_ref(s); in manager_set_dns_server()
877 if (!m->current_dns_server || in manager_get_dns_server()
879 manager_server_is_stub(m, m->current_dns_server)) in manager_get_dns_server()
882 while (m->current_dns_server && in manager_get_dns_server()
883 manager_server_is_stub(m, m->current_dns_server)) { in manager_get_dns_server()
885 if (m->current_dns_server == m->dns_servers) in manager_get_dns_server()
889 if (!m->current_dns_server) { in manager_get_dns_server()
906 return m->current_dns_server; in manager_get_dns_server()
913 if (if_current && m->current_dns_server != if_current) in manager_next_dns_server()
917 if (!m->current_dns_server) in manager_next_dns_server()
922 if (m->current_dns_server->linked && m->current_dns_server->servers_next) { in manager_next_dns_server()
923 manager_set_dns_server(m, m->current_dns_server->servers_next); in manager_next_dns_server()
928 if (m->current_dns_server->type == DNS_SERVER_FALLBACK) in manager_next_dns_server()
960 current = s->link ? s->link->current_dns_server : s->manager->current_dns_server; in dns_server_flush_cache()