[ncp] fix clearing unsecure ports (#3022)

This commit is contained in:
Zhanglong Xia
2018-09-11 08:39:06 +08:00
committed by Jonathan Hui
parent 0d0c04ece2
commit c573dafe8e
5 changed files with 32 additions and 7 deletions
+7
View File
@@ -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);