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:
Adam Eliot
2017-06-14 20:58:15 -07:00
committed by Jonathan Hui
parent b205bf03ff
commit 8b4d468c3c
9 changed files with 175 additions and 32 deletions
+5
View File
@@ -491,3 +491,8 @@ bool otThreadIsDiscoverInProgress(otInstance *aInstance)
{
return aInstance->mThreadNetif.GetMle().IsDiscoverInProgress();
}
const otIpCounters *otThreadGetIp6Counters(otInstance *aInstance)
{
return &aInstance->mThreadNetif.GetMeshForwarder().GetCounters();
}