Lines Matching defs:ifa
118 struct ifaddrs *ifa;
124 ifa = iter->pos;
131 INSIST(ifa != NULL);
132 INSIST(ifa->ifa_name != NULL);
134 if (ifa->ifa_addr == NULL)
137 family = ifa->ifa_addr->sa_family;
148 namelen = strlen(ifa->ifa_name);
153 memmove(iter->current.name, ifa->ifa_name, namelen);
157 if ((ifa->ifa_flags & IFF_UP) != 0)
160 if ((ifa->ifa_flags & IFF_POINTOPOINT) != 0)
163 if ((ifa->ifa_flags & IFF_LOOPBACK) != 0)
168 get_addr(family, &iter->current.address, ifa->ifa_addr, ifa->ifa_name);
170 if (ifa->ifa_netmask != NULL)
171 get_addr(family, &iter->current.netmask, ifa->ifa_netmask,
172 ifa->ifa_name);
174 if (ifa->ifa_dstaddr != NULL &&
176 get_addr(family, &iter->current.dstaddress, ifa->ifa_dstaddr,
177 ifa->ifa_name);