diff options
author | des <des@FreeBSD.org> | 2015-09-17 16:10:11 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2015-09-17 16:10:11 +0000 |
commit | c5050a3b9f622f6308084b1e253919467f3c6ff0 (patch) | |
tree | 9ba31f6272e0b39184eba0b36bb65cda61f09b93 /contrib/unbound/util/data/packed_rrset.h | |
parent | 5ef9f703be928fbaab82c07bd99fa37838acd02f (diff) | |
parent | 0b3e2c01ad6e393f14541f9b977e89fdb993a100 (diff) | |
download | FreeBSD-src-c5050a3b9f622f6308084b1e253919467f3c6ff0.zip FreeBSD-src-c5050a3b9f622f6308084b1e253919467f3c6ff0.tar.gz |
Upgrade to Unbound 1.5.4.
Diffstat (limited to 'contrib/unbound/util/data/packed_rrset.h')
-rw-r--r-- | contrib/unbound/util/data/packed_rrset.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/unbound/util/data/packed_rrset.h b/contrib/unbound/util/data/packed_rrset.h index 5d7990a..6039aef 100644 --- a/contrib/unbound/util/data/packed_rrset.h +++ b/contrib/unbound/util/data/packed_rrset.h @@ -58,6 +58,12 @@ typedef uint64_t rrset_id_t; * from the SOA in the answer section from a direct SOA query or ANY query. */ #define PACKED_RRSET_SOA_NEG 0x4 +/** number of rrs and rrsets for integer overflow protection. More than + * this is not really possible (64K packet has much less RRs and RRsets) in + * a message. And this is small enough that also multiplied there is no + * integer overflow. */ +#define RR_COUNT_MAX 0xffffff + /** * The identifying information for an RRset. */ |