![]() |
0.01.00
|
This module includes definitions for managing Thread Network Data. More...
Classes | |
| class | ot::NetworkData::NetworkData |
| This class implements Network Data processing. More... | |
Enumerations | |
| enum | { ot::NetworkData::NetworkData::kMaxSize = 255 } |
Functions | |
| ot::NetworkData::NetworkData::NetworkData (Instance &aInstance, bool aLocal) | |
| This constructor initializes the object. More... | |
| void | ot::NetworkData::NetworkData::Clear (void) |
| This method clears the network data. | |
| otError | ot::NetworkData::NetworkData::GetNetworkData (bool aStable, uint8_t *aData, uint8_t &aDataLength) |
| This method provides a full or stable copy of the Thread Network Data. More... | |
| otError | ot::NetworkData::NetworkData::GetNextOnMeshPrefix (otNetworkDataIterator *aIterator, otBorderRouterConfig *aConfig) |
| This method provides the next On Mesh prefix in the Thread Network Data. More... | |
| otError | ot::NetworkData::NetworkData::GetNextOnMeshPrefix (otNetworkDataIterator *aIterator, uint16_t aRloc16, otBorderRouterConfig *aConfig) |
| This method provides the next On Mesh prefix in the Thread Network Data for a given RLOC16. More... | |
| otError | ot::NetworkData::NetworkData::GetNextExternalRoute (otNetworkDataIterator *aIterator, otExternalRouteConfig *aConfig) |
| This method provides the next external route in the Thread Network Data. More... | |
| otError | ot::NetworkData::NetworkData::GetNextExternalRoute (otNetworkDataIterator *aIterator, uint16_t aRloc16, otExternalRouteConfig *aConfig) |
| This method provides the next external route in the Thread Network Data for a given RLOC16. More... | |
| bool | ot::NetworkData::NetworkData::ContainsOnMeshPrefixes (NetworkData &aCompare, uint16_t aRloc16) |
This method indicates whether or not the Thread Network Data contains all of the on mesh prefix information in aCompare associated with aRloc16. More... | |
| bool | ot::NetworkData::NetworkData::ContainsExternalRoutes (NetworkData &aCompare, uint16_t aRloc16) |
This method indicates whether or not the Thread Network Data contains all of the external route information in aCompare associated with aRloc16. More... | |
| void | ot::NetworkData::NetworkData::ClearResubmitDelayTimer (void) |
| This method cancels the data resubmit delay timer. | |
| BorderRouterTlv * | ot::NetworkData::NetworkData::FindBorderRouter (PrefixTlv &aPrefix) |
| This method returns a pointer to the Border Router TLV within a given Prefix TLV. More... | |
| BorderRouterTlv * | ot::NetworkData::NetworkData::FindBorderRouter (PrefixTlv &aPrefix, bool aStable) |
| This method returns a pointer to the stable or non-stable Border Router TLV within a given Prefix TLV. More... | |
| HasRouteTlv * | ot::NetworkData::NetworkData::FindHasRoute (PrefixTlv &aPrefix) |
| This method returns a pointer to the Has Route TLV within a given Prefix TLV. More... | |
| HasRouteTlv * | ot::NetworkData::NetworkData::FindHasRoute (PrefixTlv &aPrefix, bool aStable) |
| This method returns a pointer to the stable or non-stable Has Route TLV within a given Prefix TLV. More... | |
| ContextTlv * | ot::NetworkData::NetworkData::FindContext (PrefixTlv &aPrefix) |
| This method returns a pointer to the Context TLV within a given Prefix TLV. More... | |
| PrefixTlv * | ot::NetworkData::NetworkData::FindPrefix (const uint8_t *aPrefix, uint8_t aPrefixLength) |
| This method returns a pointer to a Prefix TLV. More... | |
| PrefixTlv * | ot::NetworkData::NetworkData::FindPrefix (const uint8_t *aPrefix, uint8_t aPrefixLength, uint8_t *aTlvs, uint8_t aTlvsLength) |
| This method returns a pointer to a Prefix TLV in a specified tlvs buffer. More... | |
| otError | ot::NetworkData::NetworkData::Insert (uint8_t *aStart, uint8_t aLength) |
| This method inserts bytes into the Network Data. More... | |
| otError | ot::NetworkData::NetworkData::Remove (uint8_t *aStart, uint8_t aLength) |
| This method removes bytes from the Network Data. More... | |
| void | ot::NetworkData::NetworkData::RemoveTemporaryData (uint8_t *aData, uint8_t &aDataLength) |
| This method strips non-stable data from the Thread Network Data. More... | |
| void | ot::NetworkData::NetworkData::RemoveTemporaryData (uint8_t *aData, uint8_t &aDataLength, PrefixTlv &aPrefix) |
| This method strips non-stable Sub-TLVs from a Prefix TLV. More... | |
| int8_t | ot::NetworkData::NetworkData::PrefixMatch (const uint8_t *a, const uint8_t *b, uint8_t aLength) |
| This method computes the number of IPv6 Prefix bits that match. More... | |
| otError | ot::NetworkData::NetworkData::SendServerDataNotification (uint16_t aRloc16) |
| This method sends a Server Data Notification message to the Leader. More... | |
| ot::NetworkData::NetworkData::NetworkDataIterator::NetworkDataIterator (otNetworkDataIterator *aIterator) | |
| uint8_t | ot::NetworkData::NetworkData::NetworkDataIterator::GetTlvOffset (void) const |
| uint8_t | ot::NetworkData::NetworkData::NetworkDataIterator::GetSubTlvOffset (void) const |
| uint8_t | ot::NetworkData::NetworkData::NetworkDataIterator::GetEntryIndex (void) const |
| void | ot::NetworkData::NetworkData::NetworkDataIterator::SetTlvOffset (uint8_t aOffset) |
| void | ot::NetworkData::NetworkData::NetworkDataIterator::SetSubTlvOffset (uint8_t aOffset) |
| void | ot::NetworkData::NetworkData::NetworkDataIterator::SetEntryIndex (uint8_t aIndex) |
| void | ot::NetworkData::NetworkData::NetworkDataIterator::SaveTlvOffset (const NetworkDataTlv *aTlv, const uint8_t *aTlvs) |
| void | ot::NetworkData::NetworkData::NetworkDataIterator::SaveSubTlvOffset (const NetworkDataTlv *aSubTlv, const NetworkDataTlv *aSubTlvs) |
Variables | |
| uint8_t | ot::NetworkData::NetworkData::mTlvs [kMaxSize] |
| The Network Data buffer. | |
This module includes definitions for managing Thread Network Data.
| bool ot::NetworkData::NetworkData::ContainsExternalRoutes | ( | NetworkData & | aCompare, |
| uint16_t | aRloc16 | ||
| ) |
This method indicates whether or not the Thread Network Data contains all of the external route information in aCompare associated with aRloc16.
| [in] | aCompare | The Network Data to use for the query. |
| [in] | aRloc16 | The RLOC16 to consider. |
aCompare associated with aRloc16, FALSE otherwise. | bool ot::NetworkData::NetworkData::ContainsOnMeshPrefixes | ( | NetworkData & | aCompare, |
| uint16_t | aRloc16 | ||
| ) |
This method indicates whether or not the Thread Network Data contains all of the on mesh prefix information in aCompare associated with aRloc16.
| [in] | aCompare | The Network Data to use for the query. |
| [in] | aRloc16 | The RLOC16 to consider. |
aCompare associated with aRloc16, FALSE otherwise.
|
protected |
|
protected |
|
protected |
This method returns a pointer to the Context TLV within a given Prefix TLV.
| [in] | aPrefix | A reference to the Prefix TLV. |
|
protected |
This method returns a pointer to the Has Route TLV within a given Prefix TLV.
| [in] | aPrefix | A reference to the Prefix TLV. |
|
protected |
This method returns a pointer to the stable or non-stable Has Route TLV within a given Prefix TLV.
| [in] | aPrefix | A reference to the Prefix TLV. |
| [in] | aStable | TRUE if requesting a stable Has Route TLV, FALSE otherwise. |
|
protected |
This method returns a pointer to a Prefix TLV.
| [in] | aPrefix | A pointer to an IPv6 prefix. |
| [in] | aPrefixLength | The prefix length pointed to by aPrefix. |
|
protected |
This method returns a pointer to a Prefix TLV in a specified tlvs buffer.
| [in] | aPrefix | A pointer to an IPv6 prefix. |
| [in] | aPrefixLength | The prefix length pointed to by aPrefix. |
| [in] | aTlvs | A pointer to a specified tlvs buffer. |
| [in] | aTlvsLength | The specified tlvs buffer length pointed to by aTlvs. |
| otError ot::NetworkData::NetworkData::GetNetworkData | ( | bool | aStable, |
| uint8_t * | aData, | ||
| uint8_t & | aDataLength | ||
| ) |
This method provides a full or stable copy of the Thread Network Data.
| [in] | aStable | TRUE when copying the stable version, FALSE when copying the full version. |
| [out] | aData | A pointer to the data buffer. |
| [in,out] | aDataLength | On entry, size of the data buffer pointed to by aData. On exit, number of copied bytes. |
| OT_ERROR_NONE | Successfully copied full Thread Network Data. |
| OT_ERROR_NO_BUFS | Not enough space to fully copy Thread Network Data. |
| otError ot::NetworkData::NetworkData::GetNextExternalRoute | ( | otNetworkDataIterator * | aIterator, |
| otExternalRouteConfig * | aConfig | ||
| ) |
This method provides the next external route in the Thread Network Data.
| [in,out] | aIterator | A pointer to the Network Data iterator context. |
| [out] | aConfig | A pointer to where the external route information will be placed. |
| OT_ERROR_NONE | Successfully found the next external route. |
| OT_ERROR_NOT_FOUND | No subsequent external route exists in the Thread Network Data. |
| otError ot::NetworkData::NetworkData::GetNextExternalRoute | ( | otNetworkDataIterator * | aIterator, |
| uint16_t | aRloc16, | ||
| otExternalRouteConfig * | aConfig | ||
| ) |
This method provides the next external route in the Thread Network Data for a given RLOC16.
| [in,out] | aIterator | A pointer to the Network Data iterator context. |
| [in] | aRloc16 | The RLOC16 value. |
| [out] | aConfig | A pointer to where the external route information will be placed. |
| OT_ERROR_NONE | Successfully found the next external route. |
| OT_ERROR_NOT_FOUND | No subsequent external route exists in the Thread Network Data. |
| otError ot::NetworkData::NetworkData::GetNextOnMeshPrefix | ( | otNetworkDataIterator * | aIterator, |
| otBorderRouterConfig * | aConfig | ||
| ) |
This method provides the next On Mesh prefix in the Thread Network Data.
| [in,out] | aIterator | A pointer to the Network Data iterator context. |
| [out] | aConfig | A pointer to where the On Mesh Prefix information will be placed. |
| OT_ERROR_NONE | Successfully found the next On Mesh prefix. |
| OT_ERROR_NOT_FOUND | No subsequent On Mesh prefix exists in the Thread Network Data. |
| otError ot::NetworkData::NetworkData::GetNextOnMeshPrefix | ( | otNetworkDataIterator * | aIterator, |
| uint16_t | aRloc16, | ||
| otBorderRouterConfig * | aConfig | ||
| ) |
This method provides the next On Mesh prefix in the Thread Network Data for a given RLOC16.
| [in,out] | aIterator | A pointer to the Network Data iterator context. |
| [in] | aRloc16 | The RLOC16 value. |
| [out] | aConfig | A pointer to where the On Mesh Prefix information will be placed. |
| OT_ERROR_NONE | Successfully found the next On Mesh prefix. |
| OT_ERROR_NOT_FOUND | No subsequent On Mesh prefix exists in the Thread Network Data. |
|
protected |
This method inserts bytes into the Network Data.
| [in] | aStart | A pointer to the beginning of the insertion. |
| [in] | aLength | The number of bytes to insert. |
| OT_ERROR_NONE | Successfully inserted bytes. |
| OT_ERROR_NO_BUFS | Insufficient buffer space to insert bytes. |
| ot::NetworkData::NetworkData::NetworkData | ( | Instance & | aInstance, |
| bool | aLocal | ||
| ) |
This constructor initializes the object.
| [in] | aInstance | A reference to the OpenThread instance. |
| [in] | aLocal | TRUE if this represents local network data, FALSE otherwise. |
|
protected |
This method computes the number of IPv6 Prefix bits that match.
| [in] | a | A pointer to the first IPv6 Prefix. |
| [in] | b | A pointer to the second IPv6 prefix. |
| [in] | aLength | The maximum length in bits to compare. |
|
protected |
This method removes bytes from the Network Data.
| [in] | aStart | A pointer to the beginning of the removal. |
| [in] | aLength | The number of bytes to remove. |
| OT_ERROR_NONE | Successfully removed bytes. |
|
protected |
This method strips non-stable data from the Thread Network Data.
| [in,out] | aData | A pointer to the Network Data to modify. |
| [in,out] | aDataLength | On entry, the size of the Network Data in bytes. On exit, the size of the resulting Network Data in bytes. |
|
protected |
This method strips non-stable Sub-TLVs from a Prefix TLV.
| [in,out] | aData | A pointer to the Network Data to modify. |
| [in,out] | aDataLength | On entry, the size of the Network Data in bytes. On exit, the size of the resulting Network Data in bytes. |
| [in,out] | aPrefix | A reference to the Prefix TLV to modify. |
|
protected |
This method sends a Server Data Notification message to the Leader.
| [in] | aRloc16 | The old RLOC16 value that was previously registered. |
| OT_ERROR_NONE | Successfully enqueued the notification message. |
| OT_ERROR_NO_BUFS | Insufficient message buffers to generate the notification message. |