getifaddrs: actually iterate over interfaces.

This commit is contained in:
Adrien Destugues
2015-01-26 10:50:47 +01:00
parent c861dfdb7e
commit 2ba13ecd93
+3
View File
@@ -119,6 +119,9 @@ getifaddrs(struct ifaddrs **ifap)
current->ifa_next = previous;
previous = current;
}
interfaces = (ifreq*)((uint8*)interfaces
+ _SIZEOF_ADDR_IFREQ(interfaces[0]));
}
*ifap = current;