[gardening] Fix fuchsia bot after broadcast InterfaceAddress changes.
Follow-up to https://dart.googlesource.com/sdk/+/6dd8ad53977bc864905248001a86375469415a32, broken bots https://ci.chromium.org/ui/p/dart/builders/ci.sandbox/vm-fuchsia-release-arm64/6667 TEST=ci Change-Id: I16e8544f66c8f97866cd32a03b383e76ef7c9548 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/500840 Commit-Queue: Alexander Aprelev <aam@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
@@ -360,11 +360,10 @@ AddressList<InterfaceSocketAddress>* SocketBase::ListInterfaces(
|
||||
for (struct ifaddrs* ifa = ifaddr; ifa != nullptr; ifa = ifa->ifa_next) {
|
||||
if (ShouldIncludeIfaAddrs(ifa, lookup_family)) {
|
||||
char* ifa_name = DartUtils::ScopedCopyCString(ifa->ifa_name);
|
||||
addresses->SetAt(
|
||||
i,
|
||||
new InterfaceSocketAddress(RawAddr::FromInet4or6(ifa->ifa_addr),
|
||||
ifa_name, if_nametoindex(ifa->ifa_name)),
|
||||
PrefixLengthFromNetmask(ifa->ifa_netmask));
|
||||
addresses->SetAt(i, new InterfaceSocketAddress(
|
||||
RawAddr::FromInet4or6(ifa->ifa_addr), ifa_name,
|
||||
if_nametoindex(ifa->ifa_name),
|
||||
PrefixLengthFromNetmask(ifa->ifa_netmask)));
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user