Draft: Add configuration option that allows to choose alternative mDNS implementation dns_sd library.

This is functionally a revival of !1140 and is created in response to the request by a downstream packager (https://github.com/macports/macports-ports/pull/28345#issuecomment-2861878496). The original adopters (FreeBSD) has been shipping this patch for at least 4 years and, for all these years, the files/code sections to be patched have remained unchanged, even though there are very obvious mistakes due to some find-and-replace actions in a past refactoring. I tend to think of this patch as well-maintained for the two supported platforms (macOS and FreeBSD, though presumably not employed at scale apart from internally by TrueNAS at some point), so it seems to me that adding this feature would not add a significant burden to the maintenance work.

Of course everything (tests and docs) must be updated accordingly for this to be merged, but I can confirm that this works properly on macOS and FreeBSD. Some initial opinions would be much appreciated.

(Also I already see some CI error from codespell LOL, that should be fixed, too)

Checklist

  • Commits have Signed-off-by: with name/author being identical to the commit author
  • (optional) This MR is just one part towards a larger feature.
  • (optional, if backport required) Bugzilla bug filed and BUG: tag added
  • Test suite updated with functionality tests
  • Test suite updated with negative tests
  • Documentation updated
  • CI timeout is 3h or higher (see Settings/CICD/General pipelines/ Timeout)

Reviewer's checklist:

  • There is a test suite reasonably covering new functionality or modifications
  • Function naming, parameters, return values, types, etc., are consistent and according to README.Coding.md
  • This feature/change has adequate documentation added
  • No obvious mistakes in the code
Edited by Mike L.

Merge request reports

Loading
Loading