Lines Matching refs:server

109         dns_server_unref(t->server);  in dns_transaction_free()
402 "DNS_SERVER=%s", strna(dns_server_string_full(t->server)), in dns_transaction_complete()
403 …"DNS_SERVER_FEATURE_LEVEL=%s", dns_server_feature_level_to_string(t->server->possible_feature_leve… in dns_transaction_complete()
464 DnsServer *server; in dns_transaction_pick_server() local
471 server = dns_scope_get_dns_server(t->scope); in dns_transaction_pick_server()
472 if (!server) in dns_transaction_pick_server()
477 if (server != t->server) { in dns_transaction_pick_server()
482 t->current_feature_level = dns_server_possible_feature_level(server); in dns_transaction_pick_server()
494 if (server == t->server) in dns_transaction_pick_server()
497 dns_server_unref(t->server); in dns_transaction_pick_server()
498 t->server = dns_server_ref(server); in dns_transaction_pick_server()
502 …log_debug("Using DNS server %s for transaction %u.", strna(dns_server_string_full(t->server)), t->… in dns_transaction_pick_server()
521 dns_scope_next_dns_server(t->scope, t->server); in dns_transaction_retry()
548 if (!t->server) in dns_transaction_maybe_restart()
551 if (t->current_feature_level <= dns_server_possible_feature_level(t->server)) in dns_transaction_maybe_restart()
634 dns_server_packet_lost(t->server, IPPROTO_TCP, t->current_feature_level); in on_stream_complete()
665 if (t->server->port > 0) in dns_transaction_port()
666 return t->server->port; in dns_transaction_port()
691 if (manager_server_is_stub(t->scope->manager, t->server)) in dns_transaction_emit_tcp()
695 … if (!dns_server_dnssec_supported(t->server) && dns_type_is_dnssec(dns_transaction_key(t)->type)) in dns_transaction_emit_tcp()
698 r = dns_server_adjust_opt(t->server, t->sent, t->current_feature_level); in dns_transaction_emit_tcp()
703 …if (t->server->stream && (DNS_SERVER_FEATURE_LEVEL_IS_TLS(t->current_feature_level) == t->server->… in dns_transaction_emit_tcp()
704 s = dns_stream_ref(t->server->stream); in dns_transaction_emit_tcp()
706 … fd = dns_scope_socket_tcp(t->scope, AF_UNSPEC, NULL, t->server, dns_transaction_port(t), &sa); in dns_transaction_emit_tcp()
713 dns_server_get_dns_over_tls_mode(t->server) == DNS_OVER_TLS_OPPORTUNISTIC) in dns_transaction_emit_tcp()
764 assert(t->server); in dns_transaction_emit_tcp()
765 r = dnstls_stream_connect_tls(s, t->server); in dns_transaction_emit_tcp()
771 if (t->server) { in dns_transaction_emit_tcp()
772 dns_server_unref_stream(t->server); in dns_transaction_emit_tcp()
773 s->server = dns_server_ref(t->server); in dns_transaction_emit_tcp()
774 t->server->stream = dns_stream_ref(s); in dns_transaction_emit_tcp()
972 dns_server_warn_downgrade(t->server); in dns_transaction_process_dnssec()
1122 assert(t->server); in dns_transaction_process_reply()
1191 dns_server_packet_truncated(t->server, t->current_feature_level); in dns_transaction_process_reply()
1220 if (t->server) in dns_transaction_process_reply()
1221 … dns_server_packet_udp_fragmented(t->server, dns_packet_size_unfragmented(p)); in dns_transaction_process_reply()
1267 if (t->server) { in dns_transaction_process_reply()
1268 dns_server_packet_invalid(t->server, t->current_feature_level); in dns_transaction_process_reply()
1320 if (t->server) { in dns_transaction_process_reply()
1326 … dns_server_packet_rcode_downgrade(t->server, t->clamp_feature_level_servfail); in dns_transaction_process_reply()
1330 dns_server_packet_bad_opt(t->server, t->current_feature_level); in dns_transaction_process_reply()
1334 dns_server_packet_do_off(t->server, t->current_feature_level); in dns_transaction_process_reply()
1339 …dns_server_packet_received(t->server, p->ipproto, t->current_feature_level, dns_packet_size_unfrag… in dns_transaction_process_reply()
1424 dns_server_packet_lost(t->server, IPPROTO_UDP, t->current_feature_level); in on_dns_packet()
1472 if (manager_server_is_stub(t->scope->manager, t->server)) in dns_transaction_emit_udp()
1478 …if (!t->bypass && !dns_server_dnssec_supported(t->server) && dns_type_is_dnssec(dns_transaction_ke… in dns_transaction_emit_udp()
1489 fd = dns_scope_socket_udp(t->scope, t->server); in dns_transaction_emit_udp()
1504 r = dns_server_adjust_opt(t->server, t->sent, t->current_feature_level); in dns_transaction_emit_udp()
1511 …r = dns_scope_emit_udp(t->scope, t->dns_udp_fd, t->server ? t->server->family : AF_UNSPEC, t->sent… in dns_transaction_emit_udp()
1534 assert(t->server); in on_transaction_timeout()
1535 …dns_server_packet_lost(t->server, t->stream ? IPPROTO_TCP : IPPROTO_UDP, t->current_feature_level); in on_transaction_timeout()
2031 dns_scope_next_dns_server(t->scope, t->server); in dns_transaction_go()
2033 if (dns_scope_get_dns_server(t->scope) == t->server) { in dns_transaction_go()
2062 dns_scope_next_dns_server(t->scope, t->server); in dns_transaction_go()
2264 if (!t->server) in dns_transaction_dnssec_supported()
2272 return dns_server_dnssec_supported(t->server); in dns_transaction_dnssec_supported()
3244 … dns_server_packet_rrsig_missing(t->server, t->current_feature_level); in dnssec_validate_records()