mirror of
https://github.com/espressif/openthread.git
synced 2026-07-16 17:14:09 +00:00
Added ip level counters (#1892)
* Added ip level counters * Fixed style issue * Added const to function prototype * Removed SPINEL_ from the property return strings * Added descriptions for ipv6 counters and moved counter logic out of logging function * Added public API to get the IPv6 counters * Fixed build errors with bad call to otThreadGetIPv6Counters * Changed otThreadGetIp6Counters to return a const * * make pretty
This commit is contained in:
@@ -491,3 +491,8 @@ bool otThreadIsDiscoverInProgress(otInstance *aInstance)
|
||||
{
|
||||
return aInstance->mThreadNetif.GetMle().IsDiscoverInProgress();
|
||||
}
|
||||
|
||||
const otIpCounters *otThreadGetIp6Counters(otInstance *aInstance)
|
||||
{
|
||||
return &aInstance->mThreadNetif.GetMeshForwarder().GetCounters();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user