diff options
author | JINMEI Tatuya <jinmei@isc.org> | 2012-12-18 03:30:32 +0100 |
---|---|---|
committer | JINMEI Tatuya <jinmei@isc.org> | 2012-12-18 03:30:32 +0100 |
commit | 2aa24772e0d3c790ab2127933159747f30bd5430 (patch) | |
tree | 6de3c128d38986a0d295a4a804a4b24328ab6f72 /src/lib/dns/rrttl.h | |
parent | [2429] more clarified the max TTL handling in terms of RFC compliance. (diff) | |
download | kea-2aa24772e0d3c790ab2127933159747f30bd5430.tar.xz kea-2aa24772e0d3c790ab2127933159747f30bd5430.zip |
[2429] define MAX_TTL in rrttl.h, as its bare value, not in form of RRTTL
Diffstat (limited to 'src/lib/dns/rrttl.h')
-rw-r--r-- | src/lib/dns/rrttl.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/dns/rrttl.h b/src/lib/dns/rrttl.h index 4c32c89f5b..2371d8706a 100644 --- a/src/lib/dns/rrttl.h +++ b/src/lib/dns/rrttl.h @@ -267,6 +267,17 @@ public: { return (ttlval_ > other.ttlval_); } //@} + /// + /// \name Protocol constants + /// + //@{ + /// \brief Max allowable value for TTLs, as defined in RFC2181, Sec. 8. + /// + /// \note At the moment an RRTTL object can have a value larger than + /// this limit. We may revisit it in a future version. + static const uint32_t MAX_TTL = 0x7fffffff; + //@} + private: uint32_t ttlval_; }; |