mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 12:17:47 +00:00
[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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user