[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:
Abtin Keshavarzian
2020-02-20 09:36:34 -08:00
committed by Jonathan Hui
parent 67c5081d14
commit fb65c77c1a
6 changed files with 54 additions and 6 deletions
+2
View File
@@ -120,6 +120,8 @@ void TestChildIp6Address(void)
sInstance = testInitInstance();
VerifyOrQuit(sInstance != NULL, "Null instance");
child.Init(*sInstance);
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
printf("\nConverting IPv6 addresses from string");