Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

firmware: fixed set ipv6 address conflicts between RPL, radio and border_router modules #259

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

CW-75
Copy link
Collaborator

@CW-75 CW-75 commented Jun 1, 2022

Contribution description

This PR has to the propose of fix the conflicts presents in ipv6 setup in each module reported in the issue #257, radio will be modify to work under the physical layer, rpl and border router could be needs the settings of ipv6 address, these needs to check if a global address already exists, if doesn't exist don't should be able to modify the ipv6 params.

Testing procedure

could add The basic modules as border_router and rpl in makefile

USEMODULE += border_router
USEMODULE += rpl_protocol

When these modules are added you could manage all the functions required from both elements.
add to .c

....
#include<border_router.h>
#include<rpl_protocol>
...
main(){
    ipv6_addr_t ip;
    ipv6_addr_from_str(&ip_addr, "2001:db8:1::1");
    border_router_add_ipv6(_UNICAST, &ip_addr, WIRELESS_INTERFACE);
    rpl_setup(DODAG); 
}

note : in case that you are running first rpl_setup before to the border_router_add_ipv6 , you could see that the ipv6 address saved it's the ipv6 addres generated by the uniqueid module or property from cpuid.

New features:
rpl_setup() receives now a parameter to set in mode DAG or DODAG.
Border_router_add_ipv6() has a new param to set to a WIRELESS_INTERFACE or WIRED_INTERFACE an ipv6 address-

Issues/PRs references

Fix #257

@CW-75 CW-75 added this to the 0.22.06 milestone Jun 1, 2022
@CW-75 CW-75 marked this pull request as draft June 1, 2022 01:23
@CW-75 CW-75 changed the title Feature/fix modules firmware: fixed set ipv6 address conflicts between RPL, radio and border_router Jun 1, 2022
@CW-75 CW-75 changed the title firmware: fixed set ipv6 address conflicts between RPL, radio and border_router firmware: fixed set ipv6 address conflicts between RPL, radio and border_router modules Jun 1, 2022
@CW-75 CW-75 force-pushed the feature/fix_modules branch from a6e95ec to c97ec71 Compare June 1, 2022 14:04
@CW-75 CW-75 marked this pull request as ready for review June 1, 2022 19:04
@CW-75 CW-75 force-pushed the feature/fix_modules branch from d0b65f0 to d8be7c7 Compare June 2, 2022 01:47
@CW-75 CW-75 force-pushed the feature/fix_modules branch from d8be7c7 to e29891e Compare June 2, 2022 02:15
@CW-75 CW-75 merged commit 50b39e3 into Mesh4all:main Jun 2, 2022
@CW-75 CW-75 deleted the feature/fix_modules branch June 2, 2022 02:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conflicting modules: radio, rpl, border_router
3 participants