-
Notifications
You must be signed in to change notification settings - Fork 3k
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
LWIP::get_ipv6_addr for link-local only #11714
Conversation
@tymoteuszblochmobica, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering the fact that LWIP_IPV6_NUM_ADDRESSES
is 3
, I personally think this solution is acceptable.
Although it would be great to know what is the point of ignorig the linklocal addresses in the first place. @kjbracey-arm , do you know the reason behind this check:
!ip6_addr_islonklocal(netif_ip6_addr(netif, i))
in line 91 of lwip_tools.cpp?
Perhaps there is a good reason not to return it?
I think the desired behaviour is what you're doing here. This call is used in the context "give me one address", and for that we want to give a global address if possible, hence the existing check, but it should fall back to link-local if that's all it's got. I've cross-checked what However, I think you need to check the event generation for If you compare with Nanostack, you'll see that it checks that the "get address" function hasn't returned the local address to distinguish LWIP currently isn't generating |
1963d21
to
686ec73
Compare
@kjbracey-arm I changed netif status generating. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks plausible to me.
CI started |
Test run: FAILEDSummary: 3 of 4 test jobs failed Failed test jobs:
|
I don't understand how failures relate to this one , from one log : Is this CI config mismatch? cc @VeliMattiLahtela |
CI restarted |
Test run: FAILEDSummary: 3 of 4 test jobs failed Failed test jobs:
|
One failure in the logs : |
…cal adress exits.
686ec73
to
6514433
Compare
[Error] LWIPInterface.cpp@232,17: no member named 'addr' in 'ip_addr' is fixed now |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
LWIP::get_ipv6_addr is modified to avoid netif NULL return if only link-local adress
exists.
Second netifs loop iteration is added.
On original pass global IP is preffered if it fails also netifs for link-local are considered on second loop.
This can avoid to return NULL if local adress exists.
Initial IPV6 issue #11442
Description
Pull request type
Reviewers
@SeppoTakalo
@mikaleppanen
@kjbracey-arm
@michalpasztamobica
Release Notes