net: dns: mDNS resolving fails when responder is also enabled #21970
Labels
area: Networking
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
#18797 introduced the possibility to enable both mDNS responder and resolver at the same time. Now all multicast packets are correctly received by each subsystem.
There is an issue now with a setup with 2 zephyr nodes with both resolver and responder enabled and actively resolving names. The resolver submodule will receive mDNS queries instead of only answers this will make name resolving fail.
The following call will fail because it only excepts to receive mDNS answers and not queries.
zephyr/subsys/net/lib/dns/resolve.c
Line 409 in 3d5c911
zephyr/subsys/net/lib/dns/dns_pack.c
Line 195 in 3d5c911
It will then call the mDNS resolver callback with a failed status.
The text was updated successfully, but these errors were encountered: