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

[mdns] ensure callback is invoked when registering host with no address #10264

Merged
merged 1 commit into from
May 20, 2024

Conversation

abtink
Copy link
Member

@abtink abtink commented May 17, 2024

This commit updates the native mDNS implementation to ensure the callback is invoked when a host is registered without any address (effectively unregistering the host and removing any previously registered addresses for the host-name).

The implementation ensures the callback is invoked after returning from the RegisterHost() call (invoked from a posted tasklet), as required by the mDNS API definitions.

Additionally, the test_mdns unit test is updated to cover registering a host with no address for the first time or updating a previous registration.


Fixes #10262

This commit updates the native mDNS implementation to ensure the
callback is invoked when a host is registered without any address
(effectively unregistering the host and removing any previously
registered addresses for the host-name).

The implementation ensures the callback is invoked after returning
from the `RegisterHost()` call (invoked from a posted tasklet), as
required by the mDNS API definitions.

Additionally, the `test_mdns` unit test is updated to cover
registering a host with no address for the first time or updating a
previous registration.
Copy link

size-report bot commented May 17, 2024

Size Report of OpenThread

Merging #10264 into main(63442f7).

name branch text data bss total
ot-cli-ftd main 467040 856 66364 534260
#10264 467040 856 66364 534260
+/- 0 0 0 0
ot-ncp-ftd main 435900 760 61576 498236
#10264 435900 760 61576 498236
+/- 0 0 0 0
libopenthread-ftd.a main 236166 95 40310 276571
#10264 236166 95 40310 276571
+/- 0 0 0 0
libopenthread-cli-ftd.a main 57533 0 8075 65608
#10264 57533 0 8075 65608
+/- 0 0 0 0
libopenthread-ncp-ftd.a main 31863 0 5916 37779
#10264 31863 0 5916 37779
+/- 0 0 0 0
ot-cli-mtd main 364520 760 51220 416500
#10264 364520 760 51220 416500
+/- 0 0 0 0
ot-ncp-mtd main 347060 760 46448 394268
#10264 347060 760 46448 394268
+/- 0 0 0 0
libopenthread-mtd.a main 158165 0 25182 183347
#10264 158165 0 25182 183347
+/- 0 0 0 0
libopenthread-cli-mtd.a main 39756 0 8059 47815
#10264 39756 0 8059 47815
+/- 0 0 0 0
libopenthread-ncp-mtd.a main 24743 0 5916 30659
#10264 24743 0 5916 30659
+/- 0 0 0 0
ot-cli-ftd-br main 550768 864 131204 682836
#10264 550784 864 131204 682852
+/- +16 0 0 +16
libopenthread-ftd-br.a main 324592 100 105126 429818
#10264 324646 100 105126 429872
+/- +54 0 0 +54
libopenthread-cli-ftd-br.a main 71320 0 8099 79419
#10264 71320 0 8099 79419
+/- 0 0 0 0
ot-rcp main 62216 564 20604 83384
#10264 62216 564 20604 83384
+/- 0 0 0 0
libopenthread-rcp.a main 9542 0 5052 14594
#10264 9542 0 5052 14594
+/- 0 0 0 0
libopenthread-radio.a main 18870 0 214 19084
#10264 18870 0 214 19084
+/- 0 0 0 0

@jwhui
Copy link
Member

jwhui commented May 17, 2024

@Cristib05 , can you help indicate whether this PR addresses your issue?

@Cristib05
Copy link
Contributor

Cristib05 commented May 20, 2024

@Cristib05 , can you help indicate whether this PR addresses your issue?

Thanks @abtink for implementing this PR! It does address the reported issue; the SRP Update is accepted without any other retries from the client (as described in the opened issue).

@jwhui jwhui merged commit 42d567d into openthread:main May 20, 2024
103 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.

SRP Advertising Proxy Thread 1.3 Certification Question
3 participants