Lines Matching refs:answer
598 DnsAnswer *answer,
611 && (!answer || answer->n_rrs <= 0)
641 if (answer) {
642 for (i = 0; i < answer->n_rrs; i++) {
643 r = dns_packet_append_rr(p, answer->items[i].rr, NULL, NULL);
648 DNS_PACKET_HEADER(p)->ancount = htobe16(answer->n_rrs);
676 if (p->answer)
677 for (n = 0; n < p->answer->n_rrs; n++)
678 dns_zone_verify_conflicts(&s->zone, p->answer->items[n].rr->key);
683 _cleanup_(dns_answer_unrefp) DnsAnswer *answer = NULL, *soa = NULL;
721 r = dns_zone_lookup(&s->zone, key, &answer, &soa, &tentative);
729 if (answer)
730 dns_answer_order_by_scope(answer, in_addr_is_link_local(p->family, &p->sender) > 0);
732 r = dns_scope_make_reply_packet(s, DNS_PACKET_ID(p), DNS_RCODE_SUCCESS, p->question, answer, soa, tentative, &reply);
948 for (i = 0; i < p->answer->n_rrs; i++) {
952 r = dns_zone_check_conflicts(&scope->zone, p->answer->items[i].rr);
958 r = dns_cache_check_conflicts(&scope->cache, p->answer->items[i].rr, p->family, &p->sender);
962 dns_scope_notify_conflict(scope, p->answer->items[i].rr);