From 1e7741f40999b12a66f37978b280c7fa55b4fa0b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 02:00:39 +0200 Subject: Adding upstream version 3.5.25. Signed-off-by: Daniel Baumann --- src/dns/dns.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/dns/dns.h') diff --git a/src/dns/dns.h b/src/dns/dns.h index 3631d23..27d2ab9 100644 --- a/src/dns/dns.h +++ b/src/dns/dns.h @@ -148,11 +148,17 @@ typedef struct DNS_RR { unsigned int ttl; /* always */ unsigned int dnssec_valid; /* DNSSEC validated */ unsigned short pref; /* T_MX only */ + /* Assume that flags lives in what was previously padding */ + unsigned short flags; /* DNS_RR_FLAG_XX, see below */ struct DNS_RR *next; /* linkage */ size_t data_len; /* actual data size */ char data[1]; /* actually a bunch of data */ } DNS_RR; +#define DNS_RR_FLAG_TRUNCATED (1<<0) + +#define DNS_RR_IS_TRUNCATED(rr) ((rr)->flags & DNS_RR_FLAG_TRUNCATED) + /* * dns_strerror.c */ @@ -186,6 +192,7 @@ extern int dns_rr_compare_pref_any(DNS_RR *, DNS_RR *); extern int dns_rr_compare_pref(DNS_RR *, DNS_RR *); extern DNS_RR *dns_rr_shuffle(DNS_RR *); extern DNS_RR *dns_rr_remove(DNS_RR *, DNS_RR *); +extern int var_dns_rr_list_limit; /* * dns_rr_to_pa.c -- cgit v1.2.3