[netif] add address callback (#3249)

This commit is contained in:
Yakun Xu
2018-11-13 19:29:52 -08:00
committed by Jonathan Hui
parent 08747cf7a7
commit 33b0ee9330
6 changed files with 123 additions and 5 deletions
+7
View File
@@ -170,6 +170,13 @@ void otIp6SetReceiveCallback(otInstance *aInstance, otIp6ReceiveCallback aCallba
instance.GetIp6().SetReceiveDatagramCallback(aCallback, aCallbackContext);
}
void otIp6SetAddressCallback(otInstance *aInstance, otIp6AddressCallback aCallback, void *aCallbackContext)
{
Instance &instance = *static_cast<Instance *>(aInstance);
instance.GetThreadNetif().SetAddressCallback(aCallback, aCallbackContext);
}
bool otIp6IsReceiveFilterEnabled(otInstance *aInstance)
{
Instance &instance = *static_cast<Instance *>(aInstance);