[dhcp] correct ALOC range (#2267)

This commit is contained in:
rongli
2017-10-17 09:54:57 -07:00
committed by Jonathan Hui
parent 9f86c3326e
commit 7950203691
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -896,7 +896,7 @@ otError MeshForwarder::UpdateIp6Route(Message &aMessage)
}
#if OPENTHREAD_ENABLE_DHCP6_SERVER || OPENTHREAD_ENABLE_DHCP6_CLIENT
else if ((aloc16 & Mle::kAloc16DhcpAgentMask) != 0)
else if (aloc16 <= Mle::kAloc16DhcpAgentEnd)
{
uint16_t agentRloc16;
uint8_t routerId;
+1 -1
View File
@@ -114,7 +114,7 @@ enum AlocAllocation
kAloc16Leader = 0xfc00,
kAloc16DhcpAgentStart = 0xfc01,
kAloc16DhcpAgentEnd = 0xfc0f,
kAloc16DhcpAgentMask = 0x03ff,
kAloc16DhcpAgentMask = 0x000f,
kAloc16ServiceStart = 0xfc10,
kAloc16ServiceEnd = 0xfc2f,
kAloc16CommissionerStart = 0xfc30,