-
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
rpl: omit dodag id in DAO(-ACK) for global instances #3659
rpl: omit dodag id in DAO(-ACK) for global instances #3659
Conversation
needs rebase :/ |
/* set the K flag to indicate that a ACKs are required */ | ||
dao->k_d_flags = ((1 << 6) | (1 << 7)); | ||
dao->k_d_flags |= (1 << 7); |
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.
in the case of !local_instance
the k_d_flags member is never zeroed out.
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.
please replace (1 << 7)
with a new constant macro with a describing name
Wow! 👏 This is one more step towards Contiki interoperability |
b3ec31d
to
4055554
Compare
@gebart, addressed your comments and did a rebase. I will put the length checks in a separate PR however, thanks again for the reminder. |
OK to squash. |
4055554
to
7ac816a
Compare
I can test tomorrow. Please send me a reminder. |
squashed. anybody can test this by starting rpl with an instance id in the range of |
7ac816a
to
22512f2
Compare
@@ -28,17 +28,20 @@ | |||
#define ENABLE_DEBUG (0) | |||
#include "debug.h" | |||
|
|||
#if ENABLE_DEBUG && defined(MODULE_IPV6_ADDR) |
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.
How is this related to the PR?
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.
unrelated, but also unnecessary as rpl does not build without MODULE_IPV6_ADDR
. Do you want me to open a separate PR for this change?
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.
No, but a separate commit would be great.
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.
this comment has been addressed
22512f2
to
98b35ad
Compare
addressed @OlegHahm's comments (squashed) |
98b35ad
to
2ae99d9
Compare
rebased to curr. master |
Friendly reminder, @OlegHahm |
|
Seems not to break anything and Wireshark shows what is described. ACK |
rpl: omit dodag id in DAO(-ACK) for global instances
This PR introduces minor support for global / local instance ids.
If an instance id
0 <= id <= 127
is specified, the instance is global and thus thedodag_id
will be omitted in outgoingDAOs
andDAO-ACKs
and not expected respectively on the receiving side. (see #3050 (comment))