[fdio] Initial implementation of getifaddrs

Sets up the API plumbing and implement getifaddrs to the point where a
list of all addresses are returned.

Due to lack of support in the current version of the netstack,
broadcast address (missing IFF_BROADCAST flag) and destination address
are not set. They will be added when corresponding support is added in
the netstack.

Support for AF_PACKET addresses will be added separately.

Test:
fx test -d getifaddrs-netemul-test
fx test --host getifaddrs-test

Bug: 30719, 54162, 54163

Change-Id: I52910b5bbf5a4d493fd9b591e1dbb2203aa51ef9
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/398773
Commit-Queue: Jay Zhuang <jayzhuang@google.com>
Reviewed-by: Tamir Duberstein <tamird@google.com>
Reviewed-by: Adam Barth <abarth@google.com>
Reviewed-by: Chris Tam <godtamit@google.com>
Testability-Review: Tamir Duberstein <tamird@google.com>
API-Review: Adam Barth <abarth@google.com>
16 files changed
tree: 1d8be0f4d2496d9d3f6832dfa07a283ccee91ca0
  1. boards/
  2. build/
  3. bundles/
  4. cts/
  5. docs/
  6. examples/
  7. garnet/
  8. products/
  9. scripts/
  10. sdk/
  11. src/
  12. third_party/
  13. tools/
  14. zircon/
  15. .clang-format
  16. .clang-tidy
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. AUTHORS
  22. BUILD.gn
  23. CODE_OF_CONDUCT.md
  24. CONTRIBUTING.md
  25. LICENSE
  26. OWNERS
  27. PATENTS
  28. README.md
  29. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.