summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-dns-answer.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-11-05 13:33:52 +0100
committerLennart Poettering <lennart@poettering.net>2021-02-14 15:42:56 +0100
commit5b2d8ffb5a1ebbd1e7c5359a9b924454f9dac031 (patch)
tree928a55f982b74d6553ba0a2b5b0004c9dc293e33 /src/resolve/resolved-dns-answer.h
parentrandom-util: add random_u64_range() that acquires a random number from a cert... (diff)
downloadsystemd-5b2d8ffb5a1ebbd1e7c5359a9b924454f9dac031.tar.xz
systemd-5b2d8ffb5a1ebbd1e7c5359a9b924454f9dac031.zip
answer: add helper for randomizing RR of answers
Diffstat (limited to 'src/resolve/resolved-dns-answer.h')
-rw-r--r--src/resolve/resolved-dns-answer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-answer.h b/src/resolve/resolved-dns-answer.h
index cc2cd93a33..f90ca67019 100644
--- a/src/resolve/resolved-dns-answer.h
+++ b/src/resolve/resolved-dns-answer.h
@@ -80,6 +80,8 @@ static inline bool dns_answer_isempty(DnsAnswer *a) {
void dns_answer_dump(DnsAnswer *answer, FILE *f);
+void dns_answer_randomize(DnsAnswer *a);
+
DEFINE_TRIVIAL_CLEANUP_FUNC(DnsAnswer*, dns_answer_unref);
#define _DNS_ANSWER_FOREACH(q, kk, a) \