mirror of
https://github.com/espressif/openthread.git
synced 2026-08-14 22:57:46 +00:00
[ip6] use 64 as aloc prefix length (#3307)
This commit is contained in:
@@ -159,7 +159,7 @@ otError Dhcp6Server::UpdateService(void)
|
||||
address->mFields.m16[6] = HostSwap16(0xfe00);
|
||||
address->mFields.m8[14] = Ip6::Address::kAloc16Mask;
|
||||
address->mFields.m8[15] = lowpanContext.mContextId;
|
||||
mAgentsAloc[i].mPrefixLength = 128;
|
||||
mAgentsAloc[i].mPrefixLength = 64;
|
||||
mAgentsAloc[i].mPreferred = true;
|
||||
mAgentsAloc[i].mValid = true;
|
||||
netif.AddUnicastAddress(mAgentsAloc[i]);
|
||||
|
||||
@@ -135,7 +135,7 @@ Mle::Mle(Instance &aInstance)
|
||||
mLinkLocal64.mValid = true;
|
||||
|
||||
// Leader Aloc
|
||||
mLeaderAloc.mPrefixLength = 128;
|
||||
mLeaderAloc.mPrefixLength = 64;
|
||||
mLeaderAloc.mPreferred = true;
|
||||
mLeaderAloc.mValid = true;
|
||||
mLeaderAloc.mScopeOverride = Ip6::Address::kRealmLocalScope;
|
||||
@@ -148,7 +148,7 @@ Mle::Mle(Instance &aInstance)
|
||||
{
|
||||
memset(&mServiceAlocs[i], 0, sizeof(mServiceAlocs[i]));
|
||||
|
||||
mServiceAlocs[i].mPrefixLength = 128;
|
||||
mServiceAlocs[i].mPrefixLength = 64;
|
||||
mServiceAlocs[i].mPreferred = true;
|
||||
mServiceAlocs[i].mValid = true;
|
||||
mServiceAlocs[i].mScopeOverride = Ip6::Address::kRealmLocalScope;
|
||||
|
||||
Reference in New Issue
Block a user