Lines Matching refs:DnsAnswer
4 typedef struct DnsAnswer DnsAnswer; typedef
39 struct DnsAnswer { struct
44 DnsAnswer *dns_answer_new(size_t n); argument
45 DnsAnswer *dns_answer_ref(DnsAnswer *a);
46 DnsAnswer *dns_answer_unref(DnsAnswer *a);
56 int dns_answer_add(DnsAnswer *a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags, DnsResou…
57 int dns_answer_add_extend(DnsAnswer **a, DnsResourceRecord *rr, int ifindex, DnsAnswerFlags flags, …
58 int dns_answer_add_soa(DnsAnswer *a, const char *name, uint32_t ttl, int ifindex);
60 int dns_answer_match_key(DnsAnswer *a, const DnsResourceKey *key, DnsAnswerFlags *ret_flags);
61 bool dns_answer_contains_nsec_or_nsec3(DnsAnswer *a);
62 int dns_answer_contains_zone_nsec3(DnsAnswer *answer, const char *zone);
63 bool dns_answer_contains(DnsAnswer *answer, DnsResourceRecord *rr);
65 int dns_answer_find_soa(DnsAnswer *a, const DnsResourceKey *key, DnsResourceRecord **ret, DnsAnswer…
66 int dns_answer_find_cname_or_dname(DnsAnswer *a, const DnsResourceKey *key, DnsResourceRecord **ret…
68 int dns_answer_merge(DnsAnswer *a, DnsAnswer *b, DnsAnswer **ret);
69 int dns_answer_extend(DnsAnswer **a, DnsAnswer *b);
71 void dns_answer_order_by_scope(DnsAnswer *a, bool prefer_link_local);
73 int dns_answer_reserve(DnsAnswer **a, size_t n_free);
74 int dns_answer_reserve_or_clone(DnsAnswer **a, size_t n_free);
76 int dns_answer_remove_by_key(DnsAnswer **a, const DnsResourceKey *key);
77 int dns_answer_remove_by_rr(DnsAnswer **a, DnsResourceRecord *rr);
78 int dns_answer_remove_by_answer_keys(DnsAnswer **a, DnsAnswer *b);
80 int dns_answer_copy_by_key(DnsAnswer **a, DnsAnswer *source, const DnsResourceKey *key, DnsAnswerFl…
81 int dns_answer_move_by_key(DnsAnswer **to, DnsAnswer **from, const DnsResourceKey *key, DnsAnswerFl…
83 int dns_answer_has_dname_for_cname(DnsAnswer *a, DnsResourceRecord *cname);
85 static inline size_t dns_answer_size(DnsAnswer *a) { in dns_answer_size()
89 static inline bool dns_answer_isempty(DnsAnswer *a) { in dns_answer_isempty()
93 void dns_answer_dump(DnsAnswer *answer, FILE *f);
95 void dns_answer_randomize(DnsAnswer *a);
97 uint32_t dns_answer_min_ttl(DnsAnswer *a);
99 DEFINE_TRIVIAL_CLEANUP_FUNC(DnsAnswer*, dns_answer_unref);
103 DnsAnswer *answer;