mirror of
https://github.com/espressif/openthread.git
synced 2026-07-05 20:00:23 +00:00
[mesh-forwarder] add method ResetCounters to clear IP counter (#4286)
This commit also adds a public API `otThreadResetIp6Counters()`.
This commit is contained in:
committed by
Jonathan Hui
parent
795cd14f8c
commit
bf03f40bd7
@@ -454,6 +454,13 @@ const otIpCounters *otThreadGetIp6Counters(otInstance *aInstance)
|
||||
return &instance.Get<MeshForwarder>().GetCounters();
|
||||
}
|
||||
|
||||
void otThreadResetIp6Counters(otInstance *aInstance)
|
||||
{
|
||||
Instance &instance = *static_cast<Instance *>(aInstance);
|
||||
|
||||
instance.Get<MeshForwarder>().ResetCounters();
|
||||
}
|
||||
|
||||
const otMleCounters *otThreadGetMleCounters(otInstance *aInstance)
|
||||
{
|
||||
Instance &instance = *static_cast<Instance *>(aInstance);
|
||||
|
||||
Reference in New Issue
Block a user