Changeset View
Changeset View
Standalone View
Standalone View
contrib/ldns/ldns/dname.h
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Put a dname into canonical fmt - ie. lowercase it | * Put a dname into canonical fmt - ie. lowercase it | ||||
* \param[in] rdf the dname to lowercase | * \param[in] rdf the dname to lowercase | ||||
* \return void | * \return void | ||||
*/ | */ | ||||
void ldns_dname2canonical(const ldns_rdf *rdf); | void ldns_dname2canonical(const ldns_rdf *rdf); | ||||
/** | /** | ||||
* test wether the name sub falls under parent (i.e. is a subdomain | * test whether the name sub falls under parent (i.e. is a subdomain | ||||
* of parent). This function will return false if the given dnames are | * of parent). This function will return false if the given dnames are | ||||
* equal. | * equal. | ||||
* \param[in] sub the name to test | * \param[in] sub the name to test | ||||
* \param[in] parent the parent's name | * \param[in] parent the parent's name | ||||
* \return true if sub falls under parent, otherwise false | * \return true if sub falls under parent, otherwise false | ||||
*/ | */ | ||||
bool ldns_dname_is_subdomain(const ldns_rdf *sub, const ldns_rdf *parent); | bool ldns_dname_is_subdomain(const ldns_rdf *sub, const ldns_rdf *parent); | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |