[dnssd] implement DNS-SD Discovery Proxy (#6191)

This commit implements DNS-SD Discovery Proxy.
- Implemented DNS-SD Discovery Proxy functionalities - OT part
- Fixed an memory issue of NameCompressInfo (introduced in #6155 , but
  somehow revealed by this commit)

Some implementation details:
- Discovery Proxy subscribes to services/service instances/hosts
  through callbacks set by a public OT API. It is up to the platform
  mDNS implementation to collect service instance/host information and
  notify OT via a public OT API.
- Discovery Proxy can handle DNS browsing of one service or DNS
  resolving of one service instance/host. We leave browsing multiple
  services or resolving multiple service instances/hosts for future
  enhancements if necessary.
This commit is contained in:
Simon Lin
2021-04-08 18:21:23 -07:00
committed by GitHub
parent e43cd4bb07
commit 5a39566f81
21 changed files with 1184 additions and 279 deletions
+2
View File
@@ -144,6 +144,8 @@ LEADER_NOTIFY_SED_BY_CHILD_UPDATE_REQUEST = True
THREAD_VERSION_1_1 = 2
THREAD_VERSION_1_2 = 3
BORDER_AGENT_UDP_PORT = 49191
def create_default_network_data_prefix_sub_tlvs_factories():
return {