[slaac] add IsEnabled() method and public API otIp6IsSlaacEnabled (#3667)

This commit is contained in:
Abtin Keshavarzian
2019-03-11 17:46:32 -07:00
committed by Jonathan Hui
parent ce24abb7bb
commit cce16b6dda
3 changed files with 26 additions and 1 deletions
+5
View File
@@ -272,6 +272,11 @@ exit:
#if OPENTHREAD_CONFIG_ENABLE_SLAAC
bool otIp6IsSlaacEnabled(otInstance *aInstance)
{
return static_cast<Instance *>(aInstance)->Get<Utils::Slaac>().IsEnabled();
}
void otIp6SetSlaacEnabled(otInstance *aInstance, bool aEnabled)
{
Instance & instance = *static_cast<Instance *>(aInstance);