![]() |
0.01.00
|
This class implements the EID-to-RLOC mapping and caching. More...
#include <src/core/thread/address_resolver.hpp>
Public Member Functions | |
AddressResolver (otInstance &aInstance) | |
This constructor initializes the object. | |
void | Clear (void) |
This method clears the EID-to-RLOC cache. | |
otError | GetEntry (uint8_t aIndex, otEidCacheEntry &aEntry) const |
This method gets an EID cache entry. More... | |
void | Remove (uint8_t aRouterId) |
This method removes a Router ID from the EID-to-RLOC cache. More... | |
void | UpdateCacheEntry (const Ip6::Address &aEid, Mac::ShortAddress aRloc16) |
This method updates an existing cache entry for the EID, if one exists. More... | |
otError | Resolve (const Ip6::Address &aEid, Mac::ShortAddress &aRloc16) |
This method returns the RLOC16 for a given EID, or initiates an Address Query if the mapping is not known. More... | |
![]() | |
otInstance & | GetInstance (void) const |
This method returns a reference to the parent otInstance structure. More... | |
Ip6::Ip6 & | GetIp6 (void) const |
This method returns a reference to the Ip6. More... | |
ThreadNetif & | GetNetif (void) const |
This method returns a reference to the thread network interface. More... | |
Additional Inherited Members | |
![]() | |
InstanceLocator (otInstance &aInstance) | |
This constructor initializes the object. More... | |
This class implements the EID-to-RLOC mapping and caching.
otError ot::AddressResolver::GetEntry | ( | uint8_t | aIndex, |
otEidCacheEntry & | aEntry | ||
) | const |
This method gets an EID cache entry.
[in] | aIndex | An index into the EID cache table. |
[out] | aEntry | A pointer to where the EID information is placed. |
OT_ERROR_NONE | Successfully retrieved the EID cache entry. |
OT_ERROR_INVALID_ARGS | aIndex was out of bounds or aEntry was NULL. |
void ot::AddressResolver::Remove | ( | uint8_t | aRouterId | ) |
otError ot::AddressResolver::Resolve | ( | const Ip6::Address & | aEid, |
Mac::ShortAddress & | aRloc16 | ||
) |
This method returns the RLOC16 for a given EID, or initiates an Address Query if the mapping is not known.
[in] | aEid | A reference to the EID. |
[out] | aRloc16 | The RLOC16 corresponding to aEid . |
OT_ERROR_NONE | Successfully provided the RLOC16. |
OT_ERROR_ADDRESS_QUERY | Initiated an Address Query. |
OT_ERROR_NO_BUFS | Insufficient buffer space available to send Address Query. |
void ot::AddressResolver::UpdateCacheEntry | ( | const Ip6::Address & | aEid, |
Mac::ShortAddress | aRloc16 | ||
) |
This method updates an existing cache entry for the EID, if one exists.
[in] | aEid | A reference to the EID. |
[in] | aRloc16 | The RLOC16 corresponding to aEid . |