diff options
Diffstat (limited to 'services/localzone.h')
-rw-r--r-- | services/localzone.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/services/localzone.h b/services/localzone.h index fcdad41666d2c..0a8759268bb29 100644 --- a/services/localzone.h +++ b/services/localzone.h @@ -235,6 +235,7 @@ void local_zone_delete(struct local_zone* z); * @param len: length of name. * @param labs: labelcount of name. * @param dclass: class to lookup. + * @param dtype: type to lookup, if type DS a zone higher is used for zonecuts. * @param taglist: taglist to lookup. * @param taglen: lenth of taglist. * @param ignoretags: lookup zone by name and class, regardless the @@ -242,7 +243,7 @@ void local_zone_delete(struct local_zone* z); * @return closest local_zone or NULL if no covering zone is found. */ struct local_zone* local_zones_tags_lookup(struct local_zones* zones, - uint8_t* name, size_t len, int labs, uint16_t dclass, + uint8_t* name, size_t len, int labs, uint16_t dclass, uint16_t dtype, uint8_t* taglist, size_t taglen, int ignoretags); /** @@ -253,10 +254,12 @@ struct local_zone* local_zones_tags_lookup(struct local_zones* zones, * @param len: length of name. * @param labs: labelcount of name. * @param dclass: class to lookup. + * @param dtype: type of the record, if type DS then a zone higher up is found + * pass 0 to just plain find a zone for a name. * @return closest local_zone or NULL if no covering zone is found. */ struct local_zone* local_zones_lookup(struct local_zones* zones, - uint8_t* name, size_t len, int labs, uint16_t dclass); + uint8_t* name, size_t len, int labs, uint16_t dclass, uint16_t dtype); /** * Debug helper. Print all zones |