[netif] define related types (unicast/mcast addr, iterator) as nested types (#6928)

This commit renames and moves the related types in `Netif` module like
`UnicastAddress`, `MulticastAddress`, etc. under `Netif` class (as a
nested type). It also moves iterator types under the related type
(for example, `ExternalMulticastAddressIteratorBuilder` becomes
`Iterator::Builder` under `ExternalMulticastAddress` class. These
changes help simplify the code (allow us to use shorter names in the
`Netif` implementation).
This commit is contained in:
Abtin Keshavarzian
2021-08-18 11:37:25 -07:00
committed by GitHub
parent 1190fb5437
commit 4d8cbe6d59
21 changed files with 416 additions and 406 deletions
+3 -3
View File
@@ -65,7 +65,7 @@ void VerifyMulticastAddressList(const Ip6::Netif &aNetif, Ip6::Address aAddresse
VerifyOrQuit(aNetif.IsMulticastSubscribed(aAddresses[i]));
}
for (const Ip6::NetifMulticastAddress *addr = aNetif.GetMulticastAddresses(); addr; addr = addr->GetNext())
for (const Ip6::Netif::MulticastAddress *addr = aNetif.GetMulticastAddresses(); addr; addr = addr->GetNext())
{
bool didFind = false;
@@ -93,8 +93,8 @@ void TestNetifMulticastAddresses(void)
TestNetif netif(*instance);
Ip6::Address addresses[kMaxAddresses];
Ip6::Address address;
Ip6::NetifMulticastAddress netifAddress;
Ip6::Address address;
Ip6::Netif::MulticastAddress netifAddress;
const char *kLinkLocalAllNodes = "ff02::01";
const char *kRealmLocalAllNodes = "ff03::01";