22 lines
872 B
Diff
22 lines
872 B
Diff
--- a/deps/uv/src/unix/android-ifaddrs.c
|
|
+++ b/deps/uv/src/unix/android-ifaddrs.c
|
|
@@ -470,13 +470,14 @@ static int interpretAddr(struct nlmsghdr *p_hdr, struct ifaddrs **p_resultList,
|
|
{
|
|
case IFA_ADDRESS:
|
|
case IFA_LOCAL:
|
|
+ l_addrSize += NLMSG_ALIGN(calcAddrLen(l_info->ifa_family, l_rtaDataSize));
|
|
if((l_info->ifa_family == AF_INET || l_info->ifa_family == AF_INET6) && !l_addedNetmask)
|
|
{
|
|
/* Make room for netmask */
|
|
l_addrSize += NLMSG_ALIGN(calcAddrLen(l_info->ifa_family, l_rtaDataSize));
|
|
l_addedNetmask = 1;
|
|
}
|
|
- break;
|
|
+ break;
|
|
case IFA_BROADCAST:
|
|
l_addrSize += NLMSG_ALIGN(calcAddrLen(l_info->ifa_family, l_rtaDataSize));
|
|
break;
|
|
--
|
|
2.23.1
|
|
|