Lines Matching refs:DnsAnswer

26 DnsAnswer *dns_answer_new(unsigned n) {
27 DnsAnswer *a;
29 a = malloc0(offsetof(DnsAnswer, items) + sizeof(DnsAnswerItem) * n);
39 DnsAnswer *dns_answer_ref(DnsAnswer *a) {
48 static void dns_answer_flush(DnsAnswer *a) {
60 DnsAnswer *dns_answer_unref(DnsAnswer *a) {
75 static int dns_answer_add_raw(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags) {
93 static int dns_answer_add_raw_all(DnsAnswer *a, DnsAnswer *source) {
107 int dns_answer_add(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags) {
161 static int dns_answer_add_all(DnsAnswer *a, DnsAnswer *b) {
175 int dns_answer_add_extend(DnsAnswer **a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags) {
188 int dns_answer_add_soa(DnsAnswer *a, const char *name, uint32_t ttl) {
214 int dns_answer_match_key(DnsAnswer *a, const DnsResourceKey *key, DnsAnswerFlags *ret_flags) {
246 int dns_answer_contains_rr(DnsAnswer *a, DnsResourceRecord *rr, DnsAnswerFlags *ret_flags) {
278 int dns_answer_contains_key(DnsAnswer *a, const DnsResourceKey *key, DnsAnswerFlags *ret_flags) {
310 int dns_answer_contains_nsec_or_nsec3(DnsAnswer *a) {
321 int dns_answer_contains_zone_nsec3(DnsAnswer *answer, const char *zone) {
348 int dns_answer_find_soa(DnsAnswer *a, const DnsResourceKey *key, DnsResourceRecord **ret, DnsAnswerFlags *flags) {
389 int dns_answer_find_cname_or_dname(DnsAnswer *a, const DnsResourceKey *key, DnsResourceRecord **ret, DnsAnswerFlags *flags) {
416 int dns_answer_merge(DnsAnswer *a, DnsAnswer *b, DnsAnswer **ret) {
417 _cleanup_(dns_answer_unrefp) DnsAnswer *k = NULL;
450 int dns_answer_extend(DnsAnswer **a, DnsAnswer *b) {
451 DnsAnswer *merged;
466 int dns_answer_remove_by_key(DnsAnswer **a, const DnsResourceKey *key) {
499 _cleanup_(dns_answer_unrefp) DnsAnswer *copy = NULL;
552 int dns_answer_remove_by_rr(DnsAnswer **a, DnsResourceRecord *rm) {
585 _cleanup_(dns_answer_unrefp) DnsAnswer *copy = NULL;
638 int dns_answer_copy_by_key(DnsAnswer **a, DnsAnswer *source, const DnsResourceKey *key, DnsAnswerFlags or_flags) {
669 int dns_answer_move_by_key(DnsAnswer **to, DnsAnswer **from, const DnsResourceKey *key, DnsAnswerFlags or_flags) {
683 void dns_answer_order_by_scope(DnsAnswer *a, bool prefer_link_local) {
716 int dns_answer_reserve(DnsAnswer **a, unsigned n_free) {
717 DnsAnswer *n;
738 n = realloc(*a, offsetof(DnsAnswer, items) + sizeof(DnsAnswerItem) * ns);
753 int dns_answer_reserve_or_clone(DnsAnswer **a, unsigned n_free) {
754 _cleanup_(dns_answer_unrefp) DnsAnswer *n = NULL;
759 /* Tries to extend the DnsAnswer object. And if that's not
786 void dns_answer_dump(DnsAnswer *answer, FILE *f) {
823 bool dns_answer_has_dname_for_cname(DnsAnswer *a, DnsResourceRecord *cname) {