[roll] Roll fuchsia [ffx] Discover all addresses via mDNS records

Rely on A/AAAA records in mDNS responses to discover all addresses
of a target on a specific interface, rather than just the source
address of the packet.

While the records represent the target's view of its addresses, for
link-local addresses received on a specific interface, we can trust
that they are reachable on that same link by applying the host's
scope ID for that interface. This allows us to discover alternative
valid addresses (e.g. when the target has multiple addresses on one
interface) that might not be used as the source address of the mDNS
packet.

Also fixed a bug in `mdns_discovery` where it failed to extract
IP addresses from `A` and `AAAA` records because it used `bytes()`
which only matches `RData::Bytes`, while those records are parsed
as `RData::A` and `RData::Aaaa`.

Also added deduplication in `merge_target_addrs` to prevent
duplicate addresses in the output when a target has duplicates
in its initial list.

Original-Original-Bug: 455664620
Test: Manual verification with `ffx -d target list` on a target with
      multiple addresses. Unit tests for `mdns_discovery` passed.

Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1601709
Original-Original-Revision: 8a0fe282b989aaca1e93f9a8ef93c20225e102c5
GitOrigin-RevId: e2ee1feaa669091d99b7a623b58d794d385a523a
Change-Id: Id00e1c7ce9ea6d39a40f36abdd85f8cfc5cfcbf3
1 file changed
tree: 33fafa5c411843cda881ec8e34d435ba6c6c3149
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.