summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nsd/namedb.h
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-05-14 06:08:40 +0000
committerflorian <florian@openbsd.org>2020-05-14 06:08:40 +0000
commit308d25095010cc66b1b67286e27e62e265360b59 (patch)
treed0eade07702d4b6112c7bd5e4ffd7908f5029c74 /usr.sbin/nsd/namedb.h
parentWe forgot to keep ChangeLog in sync in previous updates. (diff)
downloadwireguard-openbsd-308d25095010cc66b1b67286e27e62e265360b59.tar.xz
wireguard-openbsd-308d25095010cc66b1b67286e27e62e265360b59.zip
Update to 4.3.1
Testing & OK sthen
Diffstat (limited to 'usr.sbin/nsd/namedb.h')
-rw-r--r--usr.sbin/nsd/namedb.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/usr.sbin/nsd/namedb.h b/usr.sbin/nsd/namedb.h
index c7cf6d96802..4eb4d6852ed 100644
--- a/usr.sbin/nsd/namedb.h
+++ b/usr.sbin/nsd/namedb.h
@@ -443,4 +443,21 @@ rrset_rrclass(rrset_type* rrset)
return rrset->rrs[0].klass;
}
-#endif
+/*
+ * zone_rr_iter can be used to iterate over all RRs in a given zone. the
+ * SOA RRSET is guaranteed to be returned first.
+ */
+typedef struct zone_rr_iter zone_rr_iter_type;
+
+struct zone_rr_iter {
+ zone_type *zone;
+ domain_type *domain;
+ rrset_type *rrset;
+ ssize_t index;
+};
+
+void zone_rr_iter_init(zone_rr_iter_type *iter, zone_type *zone);
+
+rr_type *zone_rr_iter_next(zone_rr_iter_type *iter);
+
+#endif /* _NAMEDB_H_ */