Provide an API to retrieve the list of on-mesh prefixes. (#392)

This commit is contained in:
Jonathan Hui
2016-08-16 19:10:41 -07:00
committed by GitHub
parent 95827bae16
commit 5755f99cae
7 changed files with 168 additions and 3 deletions
+4
View File
@@ -380,6 +380,10 @@ typedef struct otIp6Prefix
uint8_t mLength; ///< The IPv6 prefix length.
} otIp6Prefix;
#define OT_NETWORK_DATA_ITERATOR_INIT 0 ///< Initializeer for otNetworkDataIterator.
typedef uint8_t otNetworkDataIterator; ///< Used to iterate through Network Data information.
/**
* This structure represents a Border Router configuration.
*/
+13
View File
@@ -498,6 +498,19 @@ const char *otGetNetworkName(void);
*/
ThreadError otSetNetworkName(const char *aNetworkName);
/**
* This function gets the next On Mesh Prefix in the Network Data.
*
* @param[in] aLocal TRUE to retrieve from the local Network Data, FALSE for partition's Network Data
* @param[inout] aIterator A pointer to the Network Data iterator context.
* @param[out] aConfig A pointer to where the On Mesh Prefix information will be placed.
*
* @retval kThreadError_None Successfully found the next On Mesh prefix.
* @retval kThreadError_NotFound No subsequent On Mesh prefix exists in the Thread Network Data.
*
*/
ThreadError otGetNextOnMeshPrefix(bool aLocal, otNetworkDataIterator *aIterator, otBorderRouterConfig *aConfig);
/**
* Get the IEEE 802.15.4 PAN ID.
*