[ip6] use 64 as aloc prefix length (#3307)

This commit is contained in:
Yakun Xu
2018-11-17 12:05:40 -08:00
committed by Jonathan Hui
parent cd2521f53a
commit 1801b0713f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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]);
+2 -2
View File
@@ -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;