mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 09:57:47 +00:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user