Skip to content

Conversation

@jukkar
Copy link
Member

@jukkar jukkar commented Aug 8, 2017

No description provided.

@jukkar jukkar added the net label Aug 8, 2017
@jukkar jukkar self-assigned this Aug 8, 2017
@jukkar jukkar requested review from rveerama1 and tbursztyka August 8, 2017 08:28
Copy link
Contributor

@tbursztyka tbursztyka left a comment

Choose a reason for hiding this comment

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

Looks like you can drop the 2 firsts patches.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this worth exposing, why would it be needed to be used from shell? (besides some low level rpl testing maybe). Repairing the rpl network is meant to be automatic, and afaik, rpl is designed to be smart enough to do so relevantly.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is related to #980 RPL border router sample application where user can manually trigger repair.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you merge the 2 first patches in one then? I don't see why it has to be separated, both follows the same exact need.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure

Copy link
Contributor

Choose a reason for hiding this comment

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

same comment as previous patch

Copy link
Contributor

Choose a reason for hiding this comment

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

you could have the reverse test to return false directly here.

It would be easier to read, and avoid to break the line on the if () condition below.

Just a taste preference though.

Btw, (it's weird we can't comment the commit message): any rfc reference to add in commit message?

@jukkar
Copy link
Member Author

jukkar commented Aug 8, 2017

Btw, (it's weird we can't comment the commit message): any rfc reference to add in commit message?

That is indeed weird. I usually create a separate comment if there is some issue in commit message.

jukkar added 8 commits August 9, 2017 10:24
The commit b14586c ("net: rpl: RPL route entry was fetched
too late") dropped the DAO packet too early which prevents the
RPL root node functionality. Rework the earlier commit so that
Coverity issues are fixed but the RPL DAO message is also properly
handled.

Signed-off-by: Jukka Rissanen <[email protected]>
The net_rpl_repair_root() and net_rpl_set_root_with_version()
functions were static which prevented global repair when using
an instance id. Making those functions global allows RPL network
repairing from shell for example.

Signed-off-by: Jukka Rissanen <[email protected]>
If debug level was low but debugging was activated, then some
of the debug variables were left unused.

Signed-off-by: Jukka Rissanen <[email protected]>
Instead of always forwarding the DAO, send DAO-ACK if we are
the root node.

Signed-off-by: Jukka Rissanen <[email protected]>
Create net_rpl_foreach_parent() function that will traverse
through all the parents and return their information via callback.
This is needed by net-shell in later commit.

Signed-off-by: Jukka Rissanen <[email protected]>
Add "net rpl" command to net-shell which will return both static
RPL configuration from Kconfig, and dynamic run time configuration
of the nodes and parents.

Signed-off-by: Jukka Rissanen <[email protected]>
Print route information by groupping them for each network
interface like this:

IPv6 routes for interface 0xa8007140
====================================
IPv6 prefix : 2001:db8::212:4b00:0:3/128
        neighbor  : 0xa80065e0
        link addr : 00:12:4B:00:00:00:00:03
IPv6 prefix : 2001:db8::212:4b00:0:1/128
        neighbor  : 0xa8006660
        link addr : 00:12:4B:00:00:00:00:01

Signed-off-by: Jukka Rissanen <[email protected]>
The "net nbr" command was printing the heading of neighbor list
incorrectly.

Signed-off-by: Jukka Rissanen <[email protected]>
@jukkar
Copy link
Member Author

jukkar commented Aug 9, 2017

Updated new version according to comments.

@jukkar jukkar merged commit 77b44a5 into zephyrproject-rtos:master Aug 9, 2017
nagineni pushed a commit to nagineni/zephyr that referenced this pull request Nov 20, 2017
…ephyrproject-rtos#1034)

Naming the assert function accomplishes the same thing here.

Signed-off-by: Geoff Gustafson <[email protected]>
@jukkar jukkar deleted the rpl branch July 20, 2018 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants