mirror of
https://github.com/espressif/openthread.git
synced 2026-07-10 22:30:21 +00:00
[ncp] fix clearing unsecure ports (#3022)
This commit is contained in:
committed by
Jonathan Hui
parent
0d0c04ece2
commit
c573dafe8e
@@ -221,6 +221,13 @@ otError otIp6RemoveUnsecurePort(otInstance *aInstance, uint16_t aPort)
|
||||
return instance.GetThreadNetif().GetIp6Filter().RemoveUnsecurePort(aPort);
|
||||
}
|
||||
|
||||
void otIp6RemoveAllUnsecurePorts(otInstance *aInstance)
|
||||
{
|
||||
Instance &instance = *static_cast<Instance *>(aInstance);
|
||||
|
||||
instance.GetThreadNetif().GetIp6Filter().RemoveAllUnsecurePorts();
|
||||
}
|
||||
|
||||
const uint16_t *otIp6GetUnsecurePorts(otInstance *aInstance, uint8_t *aNumEntries)
|
||||
{
|
||||
Instance &instance = *static_cast<Instance *>(aInstance);
|
||||
|
||||
Reference in New Issue
Block a user