mirror of
https://github.com/espressif/openthread.git
synced 2026-08-17 16:09:51 +00:00
[mesh-forwarder] fix ip6 route selection for the deprecated OMR addresses (#11332)
This commit is contained in:
@@ -293,6 +293,13 @@ public:
|
||||
*/
|
||||
static const char *EcnToString(Ecn aEcn);
|
||||
|
||||
/**
|
||||
* Indicates whether the address is on the thread link or not.
|
||||
*
|
||||
* @returns TRUE if the address is on the thread link, FALSE otherwise.
|
||||
*/
|
||||
bool IsOnLink(const Address &aAddress) const;
|
||||
|
||||
#if OPENTHREAD_CONFIG_IP6_BR_COUNTERS_ENABLE
|
||||
|
||||
typedef otBorderRoutingCounters BrCounters; ///< Border Routing counters.
|
||||
@@ -376,7 +383,6 @@ private:
|
||||
OwnedPtr<Message> &aMessagePtr,
|
||||
uint8_t aIpProto,
|
||||
Message::Ownership aMessageOwnership);
|
||||
bool IsOnLink(const Address &aAddress) const;
|
||||
Error RouteLookup(const Address &aSource, const Address &aDestination) const;
|
||||
#if OPENTHREAD_CONFIG_IP6_BR_COUNTERS_ENABLE
|
||||
void UpdateBorderRoutingCounters(const Header &aHeader, uint16_t aMessageLength, bool aIsInbound);
|
||||
|
||||
@@ -433,7 +433,7 @@ Error MeshForwarder::UpdateIp6RouteFtd(const Ip6::Header &aIp6Header, Message &a
|
||||
{
|
||||
mMeshDest = neighbor->GetRloc16();
|
||||
}
|
||||
else if (Get<NetworkData::Leader>().IsOnMesh(aIp6Header.GetDestination()))
|
||||
else if (Get<Ip6::Ip6>().IsOnLink(aIp6Header.GetDestination()))
|
||||
{
|
||||
SuccessOrExit(error = Get<AddressResolver>().Resolve(aIp6Header.GetDestination(), mMeshDest));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user