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

[Cherrypick] Change to prefer IPv6 link local address #28691

Merged

Conversation

jadhavrohit924
Copy link
Contributor

Cherry picking #27981 on v1.1-branch

@github-actions github-actions bot added the lib label Aug 14, 2023
The IPv6 LLA of the Commissioner is almost always valid. On the other
hand, Commissioner's ULA updates sometimes don't work well, so it's very
rare that there is no ULA.
At this time, the Commissioner mDNS resolves IPv6 addresses through
Commissionable Node Discovery,
- If it selects ULA address, "Network is unreachable" error occurs.
- If it selects LLA address, it works well.
Through IPv6 source address selection,
- If IPv6 destination address is LLA, source address is selected as LLA.
- If IPv6 destination address is ULA, source address is selected as ULA.
The solution is simple. The Commissioner should prefer IPv6 LLA over ULA
among mDNS resolved IPv6 addresses. The same problem occurred on android
and darwin platforms, and it is possible that this problem is common to
all platforms. So it's better to fix that for all platforms.

Signed-off-by: Youngho Yoon <[email protected]>
@andy31415 andy31415 merged commit 505bbef into project-chip:v1.1-branch Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants