Searched refs:soa (Results 1 - 9 of 9) sorted by relevance

/systemd/src/resolve/
H A Dresolved-dns-answer.c189 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *soa = NULL;
191 soa = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_SOA, name);
192 if (!soa)
195 soa->ttl = ttl;
197 soa->soa.mname = strdup(name);
198 if (!soa->soa.mname)
201 soa->soa
349 DnsResourceRecord *rr, *soa = NULL; local
[all...]
H A Dresolved-dns-rr.c258 int dns_resource_key_match_soa(const DnsResourceKey *key, const DnsResourceKey *soa) { argument
259 assert(soa);
262 /* Checks whether 'soa' is a SOA record for the specified key. */
264 if (soa->class != key->class)
267 if (soa->type != DNS_TYPE_SOA)
270 return dns_name_endswith(DNS_RESOURCE_KEY_NAME(key), DNS_RESOURCE_KEY_NAME(soa));
448 free(rr->soa.mname);
449 free(rr->soa.rname);
624 r = dns_name_equal(a->soa.mname, b->soa
[all...]
H A Dresolved-dns-zone.h68 int dns_zone_lookup(DnsZone *z, DnsResourceKey *key, DnsAnswer **answer, DnsAnswer **soa, bool *tentative);
H A Dresolved-dns-cache.c302 if (ttl > rr->soa.minimum)
303 ttl = rr->soa.minimum;
471 DnsResourceRecord *soa,
481 assert(soa);
492 if (nsec_ttl <= 0 || soa->soa.minimum <= 0 || soa->ttl <= 0) {
518 i->until = calculate_until(soa, nsec_ttl, timestamp, true);
620 DnsResourceRecord *soa = NULL, *rr; local
705 r = dns_answer_find_soa(answer, key, &soa,
464 dns_cache_put_negative( DnsCache *c, DnsResourceKey *key, int rcode, bool authenticated, uint32_t nsec_ttl, usec_t timestamp, DnsResourceRecord *soa, int owner_family, const union in_addr_union *owner_address) argument
[all...]
H A Dresolved-dns-zone.c286 _cleanup_(dns_answer_unrefp) DnsAnswer *answer = NULL, *soa = NULL;
363 soa = dns_answer_new(1);
364 if (!soa)
396 r = dns_answer_add_soa(soa, DNS_RESOURCE_KEY_NAME(key), LLMNR_DEFAULT_TTL);
433 r = dns_answer_add_soa(soa, DNS_RESOURCE_KEY_NAME(key), LLMNR_DEFAULT_TTL);
450 *ret_soa = soa;
451 soa = NULL;
H A Dresolved-dns-scope.c599 DnsAnswer *soa,
612 && (!soa || soa->n_rrs <= 0))
651 if (soa) {
652 for (i = 0; i < soa->n_rrs; i++) {
653 r = dns_packet_append_rr(p, soa->items[i].rr, NULL, NULL);
658 DNS_PACKET_HEADER(p)->arcount = htobe16(soa->n_rrs);
683 _cleanup_(dns_answer_unrefp) DnsAnswer *answer = NULL, *soa = NULL;
721 r = dns_zone_lookup(&s->zone, key, &answer, &soa, &tentative);
732 r = dns_scope_make_reply_packet(s, DNS_PACKET_ID(p), DNS_RCODE_SUCCESS, p->question, answer, soa, tentativ
593 dns_scope_make_reply_packet( DnsScope *s, uint16_t id, int rcode, DnsQuestion *q, DnsAnswer *answer, DnsAnswer *soa, bool tentative, DnsPacket **ret) argument
[all...]
H A Dresolved-dns-rr.h169 } soa; member in union:DnsResourceRecord::__anon231
296 int dns_resource_key_match_soa(const DnsResourceKey *key, const DnsResourceKey *soa);
H A Dresolved-dns-packet.c870 r = dns_packet_append_name(p, rr->soa.mname, true, false, NULL);
874 r = dns_packet_append_name(p, rr->soa.rname, true, false, NULL);
878 r = dns_packet_append_uint32(p, rr->soa.serial, NULL);
882 r = dns_packet_append_uint32(p, rr->soa.refresh, NULL);
886 r = dns_packet_append_uint32(p, rr->soa.retry, NULL);
890 r = dns_packet_append_uint32(p, rr->soa.expire, NULL);
894 r = dns_packet_append_uint32(p, rr->soa.minimum, NULL);
1710 r = dns_packet_read_name(p, &rr->soa.mname, true, NULL);
1714 r = dns_packet_read_name(p, &rr->soa.rname, true, NULL);
1718 r = dns_packet_read_uint32(p, &rr->soa
[all...]
H A Dresolved-dns-transaction.c1938 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *soa = NULL;
1976 soa = dns_resource_key_new(rr->key->class, DNS_TYPE_SOA, name);
1977 if (!soa)
1981 r = dns_transaction_request_dnssec_rr(t, soa);
1989 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *soa = NULL;
2010 soa = dns_resource_key_new(rr->key->class, DNS_TYPE_SOA, DNS_RESOURCE_KEY_NAME(rr->key));
2011 if (!soa)
2015 r = dns_transaction_request_dnssec_rr(t, soa);
2052 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *soa = NULL;
2054 soa
[all...]

Completed in 1043 milliseconds