Skip to content

mDNS response on link local when using DHCPv4 and AutoIP/Static IP #34409

@n-lohrmann

Description

@n-lohrmann

Describe the bug
When using device that is configured for both DHCPv4 and AutoIP/Static IP, all mDNS responses have link local as source. These responses are not received by host on DHCP network.

To Reproduce
CONFIG_NET_DHCPV4=y
CONFIG_NET_IPV4_AUTO=y
CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=2
CONFIG_DNS_SD=y
CONFIG_MDNS_RESPONDER=y
CONFIG_MDNS_RESPONDER_DNS_SD=y

Expected behavior
Expect the source to be set as the address set in the query response, or best matching from source of mDNS query.

Logs and console output
Screenshot from 2021-04-20 10-19-36

Environment (please complete the following information):
Zephyr v2.5.0
Commit: fe7c2ef

Additional context
Added a little workaround, that sets the local IP - Very untested...
mdns.txt

Metadata

Metadata

Assignees

Labels

area: NetworkingbugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions