-
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: allow for predictable static link-local addresses #20224
gnrc/ipv6/nib: allow for predictable static link-local addresses #20224
Conversation
0deea3d
to
4ca2dab
Compare
You should probably add a sentence of documentation in ipv6.h close to |
4ca2dab
to
ec8271e
Compare
Just out of curiosity: What happens if you have this enabled with multiple interfaces (say the |
gnrc_border_router on same54-xpro + ethos (6) + ethernet (7) + atwinc15x0 (5)
Linux: From the mac address I see that the ethos interface replies. |
Is Kconfig not mandatory anymore? |
A question ragarding |
In this case we actually want the same link-local address on all interfaces (we use them to identify the board type). I can add Kconfig but this will require renaming the |
I mean Kconfig for |
ec8271e
to
7c97c7c
Compare
I think this was never a requirement, but I added a Kconfig entry. |
7c97c7c
to
4a5757b
Compare
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.
I think this was never a requirement, but I added a Kconfig entry.
Ok sorry, I didn't want to enlarge this unnecessarily.
Remotely, that was to be expected, since it is a link-local address (so only the address at the link would reply). However, my curiosity was more when you locally try to ping yourself. But now that I thought about this: You need to provide an interface with that anyways. So all fine. Thanks for testing though! |
Contribution description
With
GNRC_IPV6_STATIC_LLADDR
we can set static link-local addresses.They are however not predictable: the interface ID gets added to least significant byte of the address. Add another option
CONFIG_GNRC_IPV6_STATIC_LLADDR_IS_FIXED
to avoid that.Testing procedure
with CONFIG_GNRC_IPV6_STATIC_LLADDR_IS_FIXED=0
with CONFIG_GNRC_IPV6_STATIC_LLADDR_IS_FIXED=1
Issues/PRs references