openthread-br
0.3.0-72c0388
|
Go to the source code of this file.
This file includes definition for DNS utilities.
void otbr::DnsUtils::CheckHostnameSanity | ( | const std::string & | aHostName | ) |
This function checks a given host name for sanity.
Check criteria: The host name must ends with dot.
[in] | aHostName | The host name to check. |
void otbr::DnsUtils::CheckServiceNameSanity | ( | const std::string & | aServiceName | ) |
This function checks a given service name for sanity.
Check criteria: The service name must contain exactly one dot. The service name must not end with dot.
[in] | aServiceName | The service name to check. |
std::string otbr::DnsUtils::UnescapeInstanceName | ( | const std::string & | aName | ) |
This function unescapes a DNS Service Instance name according to "DNS Name Escaping".
[in] | aName | The DNS Service Instance name to unescape. |