[ip6] always enable ICMP6 filtering when forwarding to Thread (#7343)

This will prevent unexpected multicast packets on the Thread network.
This commit is contained in:
Jiacheng Guo
2022-01-24 22:13:07 -08:00
committed by GitHub
parent 3243897cd1
commit b943b250ab
+1 -1
View File
@@ -1269,7 +1269,7 @@ start:
hopLimit = header.GetHopLimit();
aMessage.Write(Header::kHopLimitFieldOffset, hopLimit);
if (aFromNcpHost && nextHeader == kProtoIcmp6)
if (nextHeader == kProtoIcmp6)
{
uint8_t icmpType;
bool isAllowedType = false;