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

NCPInstanceBase-NetInterface: Add mesh-local address (if non-zero) in set_online() #112

Merged
merged 1 commit into from
Dec 14, 2016

Conversation

abtink
Copy link
Member

@abtink abtink commented Dec 6, 2016

This commit makes the following changes:

  • In NCPInstanceBase::set_online() new code is added to add mesh-local address (in non-zero) when the interface is brought online. This helps address an issue where the mesh-local address was not added after a reset.

  • In SpinelNCPInstance::handle_ncp_spinel_value_is() when processing the receiving of new mesh-local address, the codechecks that the old value of mNCPMeshLocalAddress to ensure it is non-zero before trying to remove it (this helps remove an unnecessary require failure message from the logs).

… `set_online()`

This commit makes the following changes:

- In `NCPInstanceBase::set_online()` new code is added to add
  mesh-local address (in non-zero) when the interface is brought
  online. This helps address an issue where the mesh-local address
  was not added after a reset.

- In `SpinelNCPInstance::handle_ncp_spinel_value_is()` when
  processing the receiving of new mesh-local address, the code
  checks that the old value of `mNCPMeshLocalAddress` to ensure it
  is non-zero before trying to remove it (this helps remove an
  unnecessary `require` failure message from the logs).
Copy link
Member

@jwhui jwhui left a comment

Choose a reason for hiding this comment

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

I have verified this fix. Thanks.

@darconeous darconeous merged commit 3c4da0e into openthread:master Dec 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants