summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nsd/udbzone.h
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2016-06-24 08:34:02 +0000
committerflorian <florian@openbsd.org>2016-06-24 08:34:02 +0000
commit275a8d899e6ba7e61052b65d3c7abe38db9a32dc (patch)
tree5ce9fc7264a20d348a71d21e01af2edd1700ec8c /usr.sbin/nsd/udbzone.h
parentAvoid multiple evaluation of macro arguments in softclock() (diff)
downloadwireguard-openbsd-275a8d899e6ba7e61052b65d3c7abe38db9a32dc.tar.xz
wireguard-openbsd-275a8d899e6ba7e61052b65d3c7abe38db9a32dc.zip
Update to 4.1.10
Testing by millert@, sthen@ and me. came up with the same diff & OK sthen@
Diffstat (limited to 'usr.sbin/nsd/udbzone.h')
-rw-r--r--usr.sbin/nsd/udbzone.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/nsd/udbzone.h b/usr.sbin/nsd/udbzone.h
index eb81675a18b..8169857a795 100644
--- a/usr.sbin/nsd/udbzone.h
+++ b/usr.sbin/nsd/udbzone.h
@@ -39,6 +39,8 @@ struct zone_d {
udb_rel_ptr file_str;
/** modification time, time when the zone data was changed */
uint64_t mtime;
+ /** modification time, nsecs */
+ uint64_t mtime_nsec;
/** number of RRsets in the zone */
uint64_t rrset_count;
/** number of RRs in the zone */
@@ -107,7 +109,8 @@ void udb_zone_delete(udb_base* udb, udb_ptr* zone);
int udb_zone_search(udb_base* udb, udb_ptr* result, const uint8_t* dname,
size_t dlen);
/** get modification time for zone or 0 */
-uint64_t udb_zone_get_mtime(udb_base* udb, const uint8_t* dname, size_t dlen);
+void udb_zone_get_mtime(udb_base* udb, const uint8_t* dname, size_t dlen,
+ struct timespec* mtime);
/** set log str in udb, or remove it */
void udb_zone_set_log_str(udb_base* udb, udb_ptr* zone, const char* str);
/** set file str in udb, or remove it */