mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 22:00:19 +00:00
[slaac] add IsEnabled() method and public API otIp6IsSlaacEnabled (#3667)
This commit is contained in:
committed by
Jonathan Hui
parent
ce24abb7bb
commit
cce16b6dda
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user