Skip to content
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

feat(mdns): support update subtype (IDFGH-14068) #693

Merged

Conversation

zwx1995esp
Copy link
Contributor

Description

Currently, the subtype related API has only one for adding a subtype on some services. This PR introduces new APIs to add/remove/update the subtypes in the mdns service. Also current logic will send nothing on the netif when there is a new subtype added, this PR announces the multicast query response on each netif when a new or a series of subtypes are added.

Related

  • Introduce new APIs to add/remove/update the subtypes in the mdns service.
  • Send the announce packets when subtypes are the first time to be added on the mdns.

Testing

  • Updated and removed the subtype, then browsed a query using avahi, checked the PTR answer using wireshark.
  • Added multiple subtypes and then checked the announce packets via wireshark, all subtypes are included in the response packets.

components/mdns/include/mdns.h Fixed Show fixed Hide fixed
components/mdns/include/mdns.h Fixed Show fixed Hide fixed
components/mdns/include/mdns.h Fixed Show fixed Hide fixed
@zwx1995esp zwx1995esp force-pushed the feat/support_add_remove_subtype branch from 56d8d0a to 6ff73a8 Compare November 12, 2024 08:37
components/mdns/include/mdns.h Fixed Show fixed Hide fixed
components/mdns/include/mdns.h Fixed Show fixed Hide fixed
components/mdns/include/mdns.h Fixed Show fixed Hide fixed
components/mdns/mdns.c Fixed Show fixed Hide fixed
components/mdns/mdns.c Fixed Show fixed Hide fixed
@zwx1995esp zwx1995esp force-pushed the feat/support_add_remove_subtype branch 2 times, most recently from e1ba831 to 85d3787 Compare November 12, 2024 09:06
components/mdns/mdns.c Fixed Show fixed Hide fixed
@zwx1995esp zwx1995esp force-pushed the feat/support_add_remove_subtype branch from 85d3787 to 3183a06 Compare November 12, 2024 10:58
Copy link
Collaborator

@david-cermak david-cermak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for extending the subtype API!
left just some nitpicks

components/mdns/include/mdns.h Outdated Show resolved Hide resolved
components/mdns/mdns.c Outdated Show resolved Hide resolved
components/mdns/mdns.c Outdated Show resolved Hide resolved
components/mdns/include/mdns.h Show resolved Hide resolved
components/mdns/include/mdns.h Show resolved Hide resolved
components/mdns/include/mdns.h Show resolved Hide resolved
@david-cermak david-cermak self-assigned this Nov 13, 2024
@zwx1995esp
Copy link
Contributor Author

LGTM, thanks for extending the subtype API! left just some nitpicks

Hi, @david-cermak Thanks for your quick responsing and reviewing. I will resolve the commends ASAP.

@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 14, 2024
@github-actions github-actions bot changed the title feat(mdns): support update subtype feat(mdns): support update subtype (IDFGH-14068) Nov 14, 2024
@zwx1995esp zwx1995esp force-pushed the feat/support_add_remove_subtype branch from 3183a06 to 062b8dc Compare November 14, 2024 03:08
@david-cermak david-cermak merged commit 6c61dd3 into espressif:master Nov 14, 2024
46 checks passed
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.

3 participants