Limit MPL forwarding to Thread Routers. (#996)

This commit is contained in:
Jonathan Hui
2016-11-21 18:13:48 +00:00
committed by GitHub
parent 47ff5ec0c3
commit 7c8d784f5b
3 changed files with 14 additions and 0 deletions
+5
View File
@@ -68,6 +68,11 @@ Message *Ip6::NewMessage(uint16_t reserved)
return mMessagePool.New(Message::kTypeIp6, sizeof(Header) + sizeof(HopByHopHeader) + sizeof(OptionMpl) + reserved);
}
bool Ip6::IsForwardingEnabled(void)
{
return mForwardingEnabled;
}
void Ip6::SetForwardingEnabled(bool aEnable)
{
mForwardingEnabled = aEnable;