[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:
Abtin Keshavarzian
2023-07-28 09:18:34 -07:00
committed by GitHub
parent 3fd192dfa7
commit e958f8827e
2 changed files with 405 additions and 1122 deletions
+2 -2
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff