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

This commit is contained in:
Abtin Keshavarzian
2019-03-13 23:20:41 -07:00
committed by Jonathan Hui
parent ce24abb7bb
commit cce16b6dda
3 changed files with 26 additions and 1 deletions
+11
View File
@@ -522,6 +522,17 @@ bool otIp6IsAddressUnspecified(const otIp6Address *aAddress);
*/
otError otIp6SelectSourceAddress(otInstance *aInstance, otMessageInfo *aMessageInfo);
/**
* This function indicates whether the SLAAC module is enabled or not.
*
* This function requires the build-time feature `OPENTHREAD_CONFIG_ENABLE_SLAAC` to be enabled.
*
* @retval TRUE SLAAC module is enabled.
* @retval FALSE SLAAC module is disabled.
*
*/
bool otIp6IsSlaacEnabled(otInstance *aInstance);
/**
* This function enables/disables the SLAAC module.
*