-
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
ng_rpl: auto address configuration #3489
Conversation
I started it, but I got held up with fixing bugs in iphc and at86rf2xx and didn't get further than reading out the prefix information option from the packet, I didn't add any addresses yet. |
I got a chance to test it, code works for me on Mulle (w/ at86rf212b). |
prefix_info->type = NG_RPL_OPT_PREFIX_INFO; | ||
prefix_info->length = NG_RPL_OPT_PREFIX_INFO_LEN; | ||
/* auto-address configuration */ | ||
prefix_info->LAR_flags = (1 << 6); |
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.
magic number
There are some magic number which should be replaced. |
79efaae
to
64c7c63
Compare
replaced magic numbers and make use of the configured prefix length for the interface |
64c7c63
to
f863b8f
Compare
rebased |
5eeb95c
to
e2924c6
Compare
OK, I just flashed this RP with the [1] https://github.com/RIOT-OS/RIOT/pull/3489/files#diff-37d1178ebaace3fc639d9959b59ff5e0R265 |
@BytesGalore could you please try it with this PR merged: #3494 . This helped for me |
ok, will try :) |
e2924c6
to
f9022eb
Compare
rebased |
nice, the cycling of leaving joining the DODAG does not happen anymore :D |
ok, small update the DODAG cycling still happens but not that fast |
@BytesGalore could you elaborate more on what "DODAG cycling" means? What is your setup? |
99a0a08
to
7798c6b
Compare
94c5249
to
a66fc42
Compare
76f33cf
to
087d292
Compare
I guess this needs a rebase. |
087d292
to
5dde732
Compare
rebased to current master |
5dde732
to
62bcac6
Compare
/** | ||
* @brief Prefix Information Option | ||
* @see <a href="https://tools.ietf.org/html/rfc6550#section-6.7.10"> | ||
* Prefix Information |
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.
* @see <a href="https://tools.ietf.org/html/rfc6550#section-6.7.10">
* RFC6550, section 6.7.10, Prefix Information
* </a>
Rebase is required again. |
c2fdd2b
to
2213d14
Compare
rebased and addressed @OlegHahm's comments |
ACK. Squash please |
2213d14
to
94b8d69
Compare
squashed |
ng_rpl: auto address configuration
Use
Prefix Information Option
for auto address configuration.@gebart I am not sure if you started to work on this feature yet.
This is a very simple implementation and takes the 64 bits of the dodag-id to configure the ipv6 address of all nodes.Depends on #3050