-
Notifications
You must be signed in to change notification settings - Fork 37
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
[diag] add network diagnostic data definition and parsing #303
Conversation
supported TLVs: - Ipv6addressList - ChildIpv6AddressList - Mode - ChildTable - LeaderData - Route64 - MacCounters - Eui64 - ExtMacAddress - MacAddress
supported TLVs: - Ipv6addressList - ChildIpv6AddressList - Mode - ChildTable - LeaderData - Route64 - MacCounters - Eui64 - ExtMacAddress - MacAddress
Co-authored-by: Kangping <wgtdkp@google.com>
Co-authored-by: Kangping <wgtdkp@google.com>
Co-authored-by: Kangping <wgtdkp@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to add unit tests in commissioner_impl_test.cpp?
Co-authored-by: Kangping <wgtdkp@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for resolving the comments!
In internal code review, we asked to mark comments resolved when you followed the suggestion in it and leave the other open. This is useful for reviewers to re-review the code and skip comments which has been resolved. It makes the review much easier.
Can you follow that practice in GitHub as well? For example, you can and should only close comments which you replied "done" :)
ByteArray mExtMacAddress; | ||
uint16_t mMacAddress = 0; | ||
Route64 mRoute64; | ||
LeaderData mLeaderData; | ||
MacCounters mMacCounters; | ||
std::vector<std::string> mAddrs; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some place we use "Addr" while some place we use "Address", it doesn't matter which one is used, but it would be better to make it consistent. Looking at existing code, "Addr" is always used for addresses. Can we update the code in PR to follow the existing naming? Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, I changed addrs
to address
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, if you look at include/commissioner/commissioner.hpp, "Addr" is used but not "Address"
Co-authored-by: Kangping <wgtdkp@google.com>
Co-authored-by: Kangping <wgtdkp@google.com>
Looks like the unit test cases need to call the API functions defined into |
Co-authored-by: Kangping <wgtdkp@google.com>
Co-authored-by: Kangping <wgtdkp@google.com>
Added a new unit test case into |
Co-authored-by: Kangping <wgtdkp@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me overall, just minor comments!
Co-authored-by: Kangping <wgtdkp@google.com>
Co-authored-by: Kangping <wgtdkp@google.com>
Co-authored-by: Kangping <wgtdkp@google.com>
Co-authored-by: Kangping <wgtdkp@google.com>
Co-authored-by: Kangping <wgtdkp@google.com>
Co-authored-by: Kangping <wgtdkp@google.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #303 +/- ##
==========================================
- Coverage 72.75% 72.54% -0.22%
==========================================
Files 72 72
Lines 7444 7740 +296
==========================================
+ Hits 5416 5615 +199
- Misses 2028 2125 +97
|
@jwhui Could you please review this PR? Thanks~~ |
@jwhui, Could you please review this Pull Request for me? and really appreciate your help! |
supported TLVs: