Skip to content

Commit

Permalink
Add all Thread ULA addresses to the lwip interface
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 committed Dec 2, 2020
1 parent cb21694 commit e30701f
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 e30701f

Please sign in to comment.