[slaac] only allow SLAAC for prefixes with 64-bit length (#8021)

This commit updates `Slaac` module to only allow prefixes with
64-bit length.
This commit is contained in:
Abtin Keshavarzian
2022-08-16 13:21:51 -07:00
committed by GitHub
parent 7c648559da
commit 51c58d9080
+2 -1
View File
@@ -204,7 +204,8 @@ void Slaac::Update(UpdateMode aMode)
{
Ip6::Prefix &prefix = config.GetPrefix();
if (config.mDp || !config.mSlaac || ShouldFilter(prefix))
if (config.mDp || !config.mSlaac || (prefix.GetLength() != Ip6::NetworkPrefix::kLength) ||
ShouldFilter(prefix))
{
continue;
}