Skip to content
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: remove global variable indicating the root node #2625

Merged

Conversation

cgundogan
Copy link
Member

A global variable i_am_root is used to decide if the node is initialized as root or as a normal node. This approach makes it impossible to handle multiple dodags, because the device could be a normal node for one dodag and root for another.

@cgundogan cgundogan added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: network Area: Networking labels Mar 17, 2015
@BytesGalore BytesGalore mentioned this pull request Mar 17, 2015
21 tasks
@cgundogan cgundogan force-pushed the rpl_remove_global_root_indication branch from 7170619 to 549b5d3 Compare March 19, 2015 10:59
@cgundogan
Copy link
Member Author

rebased to address @OlegHahm's comment mentioned in #2622

@cgundogan cgundogan added the State: waiting for other PR State: The PR requires another PR to be merged first label Mar 19, 2015
@OlegHahm
Copy link
Member

needs rebase

@OlegHahm OlegHahm removed the State: waiting for other PR State: The PR requires another PR to be merged first label Mar 19, 2015
@cgundogan cgundogan force-pushed the rpl_remove_global_root_indication branch from 549b5d3 to e20fbbb Compare March 19, 2015 18:44
@cgundogan
Copy link
Member Author

rebased to current master

uint8_t rpl_is_root(void)
{
return i_am_root;
for (uint8_t i = 0; i < RPL_MAX_DODAGS; i++) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to keep the code consistent it would be nice to iterate like you did for instance here

@OlegHahm OlegHahm force-pushed the master branch 3 times, most recently from 9f184dd to 45554bf Compare March 31, 2015 13:01
@cgundogan
Copy link
Member Author

addressed @BytesGalore's comment to change the style of the for-loop

@OlegHahm OlegHahm added the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Apr 15, 2015
@OlegHahm
Copy link
Member

after merging #2831 my tests succeed. ACK. Please squash!

@cgundogan cgundogan force-pushed the rpl_remove_global_root_indication branch from 0395f8b to b557000 Compare April 28, 2015 16:13
@cgundogan cgundogan removed the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Apr 28, 2015
@cgundogan
Copy link
Member Author

@OlegHahm squashed and rebased

OlegHahm added a commit that referenced this pull request Apr 29, 2015
…tion

rpl: remove global variable indicating the root node
@OlegHahm OlegHahm merged commit 51ff5e0 into RIOT-OS:master Apr 29, 2015
@cgundogan cgundogan deleted the rpl_remove_global_root_indication branch July 31, 2015 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: network Area: Networking Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants