diff options
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_; }; |