diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 10:22:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 10:22:00 +0000 |
commit | bbd07c51ea09d39a276ce4ed21eba19072150c0c (patch) | |
tree | 89ef066e2d4428688b42ec1d2f23dd28d51253b2 /src/dns/dns.h | |
parent | Adding upstream version 3.7.10. (diff) | |
download | postfix-bbd07c51ea09d39a276ce4ed21eba19072150c0c.tar.xz postfix-bbd07c51ea09d39a276ce4ed21eba19072150c0c.zip |
Adding upstream version 3.7.11.upstream/3.7.11upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/dns/dns.h')
-rw-r--r-- | src/dns/dns.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dns/dns.h b/src/dns/dns.h index 5f53dbc..0d9c8a3 100644 --- a/src/dns/dns.h +++ b/src/dns/dns.h @@ -159,11 +159,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 */ @@ -197,6 +203,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 |