-
Notifications
You must be signed in to change notification settings - Fork 2k
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
gnrc_ipv6_nib: don't autoconfig IPv6 address without L2 addr #10483
gnrc_ipv6_nib: don't autoconfig IPv6 address without L2 addr #10483
Conversation
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.
Change makes sense. Will test on actual hardware
@gebart did you? |
@kb2ma might you have time to have a look into this? |
Tested on samr21-xpro. On current master I see the output below from ifconfig. When using this PR, the fe80:: line goes away as expected. I can still send and receive a CoAP message across the tunslip interface.
Please rebase. I'll retest and confirm I see the debug message in the code. |
Which debug message? I'm not quite sure why I need to rebase. |
I asked for a rebase because the PR is 4 months old. I don't know if any updated code in other parts of the network stack might impact the functionality in this PR. At any rate, not necessary now. I rebased myself for testing. This PR still tests fine. My only question is when DEBUG is on in this module. I see the sequence of messages below. Is it confusing to see both line 2 and line 3, which was added by this PR? I don't know enough about debugging the network layer to give an opinion.
|
Since murdock is doing this as well before compiling, I guess this isn't necessary at all ;-).
Ah, will move the check above the first DEBUG. This way it is less confusing, I hope. |
Done. |
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.
Apologies for the delay, @miri64. I missed your fixup message.
Now I see the debug messages below. This definitely is clearer. ACK, please squash.
2019-04-18 21:09:08,535 - INFO # nib: add address based on fe80::/64 automatically to interface 7
2019-04-18 21:09:08,539 - INFO # nib: interface 8 has no link-layer addresses
If the interface's link-layer doesn't use link-layer addresses it obviously doesn't make sense to auto-configure an IPv6 address from it. Moreover, I think the address `fe80::` is actual illegal, but I couldn't find any references for it.
2ebe8e9
to
5732e9b
Compare
Squashed |
@danpetry I think this should be backported. Do you agree? |
Contribution description
If the interface's link-layer doesn't use link-layer addresses it obviously doesn't make sense to auto-configure an IPv6 address from it. Moreover, I think the address
fe80::
is actual illegal, but I couldn't find any references for it.Testing procedure
Try running an application with
slipdev
. The interfaces should not have an auto-configured IPv6 address with this PR. Without this PR an addressfe80::
(and the respective solicited nodes multicast address) show up.Issues/PRs references
Unrelated but found when debugging #10480.