tree: b19f9882c2d268056bbb53589530525b7481cc1c [path history] [tgz]
  1. AddressResolve.cpp
  2. AddressResolve.h
  3. AddressResolve_DefaultImpl.cpp
  4. AddressResolve_DefaultImpl.h
  5. BUILD.gn
  6. README.md
  7. tool.cpp
src/lib/address_resolve/README.md

Content

This library defines methods for resolving addresses of CHIP Nodes/Peers.

While dnssd is used for discovery, that method generally can yield several IP addresses due to:

  • multiple IP addresses per interface (e.g. LL, GUA, ULA or even IPv4)
  • multiple interfaces per device

The purpose of address resolution is to find a single ip address to use for the given lookup. It employs a set of heuristics to determine what the best IP (the most likely to route correctly) is and allows custom implementations from applications by not including the default implementation.