Leonid Plyushch
5 years ago
2 changed files with 22 additions and 1 deletions
@ -0,0 +1,21 @@ |
|||
--- 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 |
|||
|
Loading…
Reference in new issue