Skip to content
Permalink
Browse files

allow getifaddrs() to return more address families

  • Loading branch information...
wiedi authored and pyhalov committed Jun 23, 2017
1 parent 53d5d04 commit 41af213a36ab40e44a30b4bf9d33765531c6a145
Showing with 5 additions and 0 deletions.
  1. +5 −0 common/libnwamui.c
@@ -1665,6 +1665,11 @@ nwamui_util_ncp_init_acquired_ip(NwamuiNcp *ncp)
if (getifaddrs(&ifap) == 0) {

for (idx = ifap; idx; idx = idx->ifa_next) {
if (idx->ifa_addr->sa_family != AF_INET
&& idx->ifa_addr->sa_family != AF_INET6) {
continue;
}

ncu = nwamui_ncp_get_ncu_by_device_name(ncp, idx->ifa_name);

if (ncu) {

0 comments on commit 41af213

Please sign in to comment.
You can’t perform that action at this time.