diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-11-05 13:33:52 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-02-14 15:42:56 +0100 |
commit | 5b2d8ffb5a1ebbd1e7c5359a9b924454f9dac031 (patch) | |
tree | 928a55f982b74d6553ba0a2b5b0004c9dc293e33 /src/resolve/resolved-dns-answer.h | |
parent | random-util: add random_u64_range() that acquires a random number from a cert... (diff) | |
download | systemd-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.h | 2 |
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) \ |