ot::Dns::Name::IsSubDomainOf() method
Tests if a DNS name is a sub-domain of a given domain. Both @p aName and @p aDomain can end without dot ('.').
Syntax
static bool IsSubDomainOf(const char *aName,
const char *aDomain);
Arguments
aName
The dot-separated name.
aDomain
The dot-separated domain.
Return value
TRUE if the name is a sub-domain of @p aDomain, FALSE if is not.
ot::Dns::Name::IsSubDomainOf() is called by 3 functions and calls 3 functions:
![]()
ot::Dns::Name::IsSubDomainOf()
ot::Dns::Name::IsSubDomainOf() reads 3 variables:
![]()
ot::Dns::Name::IsSubDomainOf()