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: pass dodag to the rpl_find_parent function #2644

Merged
merged 1 commit into from
Mar 20, 2015

Conversation

cgundogan
Copy link
Member

This PR extends the condition to find a parent by checking if it belongs to the dodag. Otherwise, the function could return a parent belonging to another dodag.

@cgundogan cgundogan added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: network Area: Networking labels Mar 19, 2015
if ((parent->used) && (rpl_equal_id(address, &parent->addr)
&& (parent->dodag->instance->id == dodag->instance->id)
&& !memcmp(&parent->dodag->dodag_id,
&dodag->dodag_id, sizeof(ipv6_addr_t)))) {
Copy link
Member

Choose a reason for hiding this comment

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

parens

@OlegHahm
Copy link
Member

Apart from the missing parentheses: ACKt

@cgundogan cgundogan force-pushed the rpl_pass_dodag_to_find_parent branch from 354275e to 5fb526f Compare March 19, 2015 18:47
@cgundogan
Copy link
Member Author

addressed @OlegHahm's comment to add parens

@cgundogan
Copy link
Member Author

added the missing parens and travis is building => GO

cgundogan added a commit that referenced this pull request Mar 20, 2015
rpl: pass dodag to the rpl_find_parent function
@cgundogan cgundogan merged commit f2b9b51 into RIOT-OS:master Mar 20, 2015
@cgundogan cgundogan deleted the rpl_pass_dodag_to_find_parent branch March 20, 2015 19:16
@BytesGalore BytesGalore mentioned this pull request Mar 20, 2015
21 tasks
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.

2 participants