gnrc/ipv6/nib: allow for predictable static link-local addresses#20224
gnrc/ipv6/nib: allow for predictable static link-local addresses#20224benpicco merged 2 commits intoRIOT-OS:masterfrom
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
fabian18
left a comment
There was a problem hiding this comment.
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_LLADDRwe 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_FIXEDto 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