summaryrefslogtreecommitdiff
path: root/util/data/packed_rrset.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/data/packed_rrset.h')
-rw-r--r--util/data/packed_rrset.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/util/data/packed_rrset.h b/util/data/packed_rrset.h
index 3a5335ddfa59..729877bab5ec 100644
--- a/util/data/packed_rrset.h
+++ b/util/data/packed_rrset.h
@@ -446,4 +446,17 @@ struct ub_packed_rrset_key* packed_rrset_copy_alloc(
struct ub_packed_rrset_key* key, struct alloc_cache* alloc,
time_t now);
+/**
+ * Find RR index in packed rrset
+ * Raw comparison, does not canonicalize RDATA
+ * @param d: packed rrset
+ * @param rdata: RDATA of RR to find
+ * @param len: length of rdata
+ * @param index: pointer to int to store index of found RR
+ * @return 1 if RR found, 0 otherwise
+ */
+int
+packed_rrset_find_rr(struct packed_rrset_data* d, uint8_t* rdata, size_t len,
+ size_t* index);
+
#endif /* UTIL_DATA_PACKED_RRSET_H */