mirror of
https://github.com/espressif/openthread.git
synced 2026-07-06 04:10:22 +00:00
NcpBase: Implement get handler for IPV6_LL_ADDR spinel property (#1826)
This commit add a new API `otThreadGetLinkLocalIp6Address()` to get the Thread link-local address (which is is derived using IEEE802.15.4 Extended Address as Interface Identifier). The new API is then used to implement the get handler for spinel property `IPV6_LL_ADDR` in `NcpBase` class.
This commit is contained in:
committed by
Jonathan Hui
parent
06bf90cef3
commit
9c09577d52
@@ -195,6 +195,11 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
const otIp6Address *otThreadGetLinkLocalIp6Address(otInstance *aInstance)
|
||||
{
|
||||
return &aInstance->mThreadNetif.GetMle().GetLinkLocalAddress();
|
||||
}
|
||||
|
||||
const char *otThreadGetNetworkName(otInstance *aInstance)
|
||||
{
|
||||
return aInstance->mThreadNetif.GetMac().GetNetworkName();
|
||||
|
||||
Reference in New Issue
Block a user