Home | History | Annotate | Download | only in data

Lines Matching refs:ttl

80 /** Maximum TTL that is allowed. */
82 /** Minimum TTL that is allowed. */
84 /** Maximum Negative TTL that is allowed */
86 /** Minimum Negative TTL that is allowed */
92 /** Reset serve expired TTL after failed update attempt */
94 /** TTL to use for expired records */
98 /** If we serve the original TTL or decrementing TTLs */
101 /** calculate the prefetch TTL as 90% of original. Calculation
103 #define PREFETCH_TTL_CALC(ttl) ((ttl) - (ttl)/10)
105 /* caclulate the TTL used for expired answers to somewhat make sense wrt the
106 * original TTL; don't reply with higher TTL than the original */
108 time_t debug_expired_reply_ttl_calc(time_t ttl, time_t ttl_add);
109 #define EXPIRED_REPLY_TTL_CALC(ttl, ttl_add) \
110 debug_expired_reply_ttl_calc(ttl, ttl_add)
112 #define EXPIRED_REPLY_TTL_CALC(ttl, ttl_add) \
113 (SERVE_EXPIRED_REPLY_TTL < (ttl) - (ttl_add) ? \
114 SERVE_EXPIRED_REPLY_TTL : (ttl) - (ttl_add))
117 /** Update the reply_info TTL from an RRSet's TTL, essentially keeping the TTL
119 #define UPDATE_TTL_FROM_RRSET(ttl, rrsetttl) \
120 ((ttl) = ((ttl) < (rrsetttl)) ? (ttl) : (rrsetttl))
122 /** Check if TTL is expired. 0 TTL is considered expired.
124 #define TTL_IS_EXPIRED(ttl, now) ((ttl) <= (now))
218 * Pointer to the RR. Points to start of TTL value in the packet.
255 /** the EDNS bits field from ttl (host order): Z */