[mdns] Simplify SO_REUSEPORT usage for UDP sockets.

This CL simplifies the function used to create a UDP socket
with both SO_REUSEADDR and SO_REUSEPORT before binding it.

Using the net.ListenConfig type introduced in Go 1.11 allows
one to specify a control function to set socket options before
it is actually bound to an interface/address.

BUG: DX-1664
Change-Id: I6c520342652f1eb763f87383c745eca89cbb94f3
1 file changed
tree: 2b5654c1f1e6873ec417973a52d4dfe3aada9bdb
  1. bloaty/
  2. botanist/
  3. breakpad/
  4. build/
  5. cache/
  6. cmd/
  7. color/
  8. command/
  9. elflib/
  10. gndoc/
  11. isatty/
  12. logger/
  13. mdns/
  14. memory/
  15. netboot/
  16. netutil/
  17. ninjalog/
  18. qemu/
  19. retry/
  20. runner/
  21. runtests/
  22. serial/
  23. sshutil/
  24. symbolize/
  25. tap/
  26. tarutil/
  27. telnet/
  28. testrunner/
  29. testsharder/
  30. tftp/
  31. .gitignore
  32. go.mod
  33. go.sum
  34. LICENSE
  35. manifest
  36. PATENTS
  37. README.md
README.md

tools

This repo contains tools used in Fuchsia build and development.

Go packages from here are automatically built and uploaded to CIPD and Google Storage by bots using the tools recipe.