180
180
/* Loop through the interface list and get the IP address of each IF */
181
181
for (ifa = results; ifa; ifa = ifa->ifa_next) {
182
182
char addr_as_string[INET6_ADDRSTRLEN+1];
185
184
/* no ip address from interface that is down */
186
185
if ((ifa->ifa_flags & IFF_UP) == 0)