mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 14:47:46 +00:00
[topology] have Neighbor/Child/Router inherit from InstanceLocatorInit (#4569)
This commit changes the `Neighbor` class (and therefore its sub-classes `Child` and `Router`) to inherit from `InstanceLoatorInit`. It adds `Init()` method to them as well and ensures that they are initialized before use from `ChildTable`, `RouterTable` and `Mle` classes.
This commit is contained in:
committed by
Jonathan Hui
parent
67c5081d14
commit
fb65c77c1a
@@ -120,6 +120,8 @@ void TestChildIp6Address(void)
|
||||
sInstance = testInitInstance();
|
||||
VerifyOrQuit(sInstance != NULL, "Null instance");
|
||||
|
||||
child.Init(*sInstance);
|
||||
|
||||
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
printf("\nConverting IPv6 addresses from string");
|
||||
|
||||
Reference in New Issue
Block a user