Skip to content

netutils: add mDNS library support #3081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

TimJTi
Copy link
Contributor

@TimJTi TimJTi commented May 23, 2025

Summary

This allows an external mDNS library from here to be built as a NuttX app.

My thanks to @xiaoxiang781216 for pointing me in the direction of how to do this, based on how Vela handled it and to an example of how NuttX downlloads such libraries: so saving me the effort of porting it, as such.

The library has a "built in" example app which runs from nsh if wanted, and I have added a "daemon" wrapper to it to allow it to be started and stopped, making it more directly usable from applications. There's an example app to go with it (hence to two commits).

In an ideal world, the library should be used as just that: a library. If Kconfig is configured for that usage, the library's header file is automatically copied to apps/include/netutils during build to facilitate easier inclusion.

I have added what I hope is enough information in the Kconfig help to allow others to make use of it.

Impact

This netutil is only enabled by Kconfig so will not impact any builds that do not enable it of course. Once enabled there is no obvious impact that I can envisage as it is standalone.

Testing

I have built this with/without all Kconfig options on my custom SAMA5D27 board and it seems to behave as expected.

@TimJTi TimJTi changed the title netutils: add mDNS library suppoer netutils: add mDNS library support May 23, 2025
@TimJTi TimJTi marked this pull request as ready for review May 23, 2025 16:41
@TimJTi TimJTi force-pushed the examples-add-mdnsd-example-app branch from 56c3031 to 041cb3e Compare May 28, 2025 11:03
@TimJTi TimJTi force-pushed the examples-add-mdnsd-example-app branch from 041cb3e to 1cae0b3 Compare May 28, 2025 14:44
TimJTi added 2 commits May 30, 2025 13:14
This commit allows an external mDNS library to be included in NuttX.

It originates from here: <https://github.com/mjansson/mdns>

It is declared as being in the Public Domain as per <http://unlicense.org>

Signed-off-by: Tim Hardisty <[email protected]>
…brary

This commit adds a new example app to allow the newly added netutils/mdns
library and associated daemon to be exeercised.

Signed-off-by: Tim Hardisty <[email protected]>
@TimJTi TimJTi force-pushed the examples-add-mdnsd-example-app branch from 1cae0b3 to 261ee13 Compare May 30, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants