Skip to content

Commit

Permalink
Add all Thread ULA addresses to the lwip interface (project-chip#4053)
Browse files Browse the repository at this point in the history
ULA prefixes will used for CHIP network so we need to add all these
addresses to the interface.
  • Loading branch information
gjc13 authored and hnnajh committed Dec 10, 2020
1 parent 3e00e8b commit 41c3739
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,7 @@ void GenericThreadStackManagerImpl_OpenThread_LwIP<ImplClass>::UpdateThreadInter
// - link-local addresses.
// - mesh-local addresses that are NOT RLOC addresses.
// - global unicast addresses.
//
// This logic purposefully leaves out CHIP fabric ULAs, as well as other non-fabric ULAs that the
// Thread stack assigns due to Thread SLAAC.
//
// Assignments of CHIP fabric ULAs to the netif address table are handled separately by the WARM module.
//
// Non-fabric ULAs are ignored entirely as they are presumed to not be of interest to CHIP-enabled
// devices, and would otherwise consume slots in the LwIP address table, potentially leading to
// starvation.
if (otAddr->mValid && !otAddr->mRloc &&
(!addr.IsIPv6ULA() || IsOpenThreadMeshLocalAddress(Impl()->OTInstance(), addr)))
if (otAddr->mValid && !otAddr->mRloc)
{
ip_addr_t lwipAddr = addr.ToLwIPAddr();
s8_t addrIdx;
Expand Down

0 comments on commit 41c3739

Please sign in to comment.