mirror of
https://github.com/espressif/openthread.git
synced 2026-08-13 14:17:47 +00:00
[mle] change protected declarations as `private (#9317)
This commit changes the `protected` declarations in the `Mle` class to be `private` since `Mle` class and its subclass, the `MleRouter`, are declared as `friend` classes. The commit also re-arranges the `private` definitions in the `Mle` class into five sections: constants, enumerations, nested classes, methods declarations, and member variable definitions. With the change to `private`, this commit also removes the redundant documentation of methods.
This commit is contained in:
@@ -66,7 +66,7 @@ namespace Mle {
|
||||
|
||||
RegisterLogModule("Mle");
|
||||
|
||||
const otMeshLocalPrefix Mle::sMeshLocalPrefixInit = {
|
||||
const otMeshLocalPrefix Mle::kMeshLocalPrefixInit = {
|
||||
{0xfd, 0xde, 0xad, 0x00, 0xbe, 0xef, 0x00, 0x00},
|
||||
};
|
||||
|
||||
@@ -140,7 +140,7 @@ Mle::Mle(Instance &aInstance)
|
||||
mRealmLocalAllThreadNodes.GetAddress().mFields.m16[0] = HostSwap16(0xff33);
|
||||
mRealmLocalAllThreadNodes.GetAddress().mFields.m16[7] = HostSwap16(0x0001);
|
||||
|
||||
SetMeshLocalPrefix(AsCoreType(&sMeshLocalPrefixInit));
|
||||
SetMeshLocalPrefix(AsCoreType(&kMeshLocalPrefixInit));
|
||||
|
||||
// `SetMeshLocalPrefix()` also adds the Mesh-Local EID and subscribes
|
||||
// to the Link- and Realm-Local All Thread Nodes multicast addresses.
|
||||
|
||||
+403
-1120
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user