Lines Matching defs:DnsAnswer
22 typedef struct DnsAnswer DnsAnswer;
33 * Note that we usually encode the the empty DnsAnswer object as a simple NULL. */
47 struct DnsAnswer {
53 DnsAnswer *dns_answer_new(unsigned n);
54 DnsAnswer *dns_answer_ref(DnsAnswer *a);
55 DnsAnswer *dns_answer_unref(DnsAnswer *a);
57 int dns_answer_add(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags);
58 int dns_answer_add_extend(DnsAnswer **a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags);
59 int dns_answer_add_soa(DnsAnswer *a, const char *name, uint32_t ttl);
61 int dns_answer_match_key(DnsAnswer *a, const DnsResourceKey *key, DnsAnswerFlags *combined_flags);
62 int dns_answer_contains_rr(DnsAnswer *a, DnsResourceRecord *rr, DnsAnswerFlags *combined_flags);
63 int dns_answer_contains_key(DnsAnswer *a, const DnsResourceKey *key, DnsAnswerFlags *combined_flags);
64 int dns_answer_contains_nsec_or_nsec3(DnsAnswer *a);
65 int dns_answer_contains_zone_nsec3(DnsAnswer *answer, const char *zone);
67 int dns_answer_find_soa(DnsAnswer *a, const DnsResourceKey *key, DnsResourceRecord **ret, DnsAnswerFlags *flags);
68 int dns_answer_find_cname_or_dname(DnsAnswer *a, const DnsResourceKey *key, DnsResourceRecord **ret, DnsAnswerFlags *flags);
70 int dns_answer_merge(DnsAnswer *a, DnsAnswer *b, DnsAnswer **ret);
71 int dns_answer_extend(DnsAnswer **a, DnsAnswer *b);
73 void dns_answer_order_by_scope(DnsAnswer *a, bool prefer_link_local);
75 int dns_answer_reserve(DnsAnswer **a, unsigned n_free);
76 int dns_answer_reserve_or_clone(DnsAnswer **a, unsigned n_free);
78 int dns_answer_remove_by_key(DnsAnswer **a, const DnsResourceKey *key);
79 int dns_answer_remove_by_rr(DnsAnswer **a, DnsResourceRecord *rr);
81 int dns_answer_copy_by_key(DnsAnswer **a, DnsAnswer *source, const DnsResourceKey *key, DnsAnswerFlags or_flags);
82 int dns_answer_move_by_key(DnsAnswer **to, DnsAnswer **from, const DnsResourceKey *key, DnsAnswerFlags or_flags);
84 bool dns_answer_has_dname_for_cname(DnsAnswer *a, DnsResourceRecord *cname);
86 static inline unsigned dns_answer_size(DnsAnswer *a) {
90 void dns_answer_dump(DnsAnswer *answer, FILE *f);
92 DEFINE_TRIVIAL_CLEANUP_FUNC(DnsAnswer*, dns_answer_unref);