Lines Matching refs:ifap
353 struct ifaddrs *ifap, *ifa;
375 for (ifap = ifa; ifap != NULL; ifap = ifap->ifa_next) {
378 (void) strlcpy(cifname, ifap->ifa_name, sizeof (cifname));
387 sockaddrunspec(ifap->ifa_addr) &&
388 !(ifap->ifa_flags & IFF_DHCPRUNNING))
403 if ((cifaddr->ifa_name = strdup(ifap->ifa_name)) == NULL)
405 cifaddr->ifa_flags = ifap->ifa_flags;
409 (void) memcpy(cifaddr->ifa_addr, ifap->ifa_addr,
414 (void) memcpy(cifaddr->ifa_netmask, ifap->ifa_netmask,
416 if (ifap->ifa_flags & IFF_POINTOPOINT) {
421 (void) memcpy(cifaddr->ifa_dstaddr, ifap->ifa_dstaddr,
423 } else if (ifap->ifa_flags & IFF_BROADCAST) {
429 ifap->ifa_broadaddr,
437 ipaddr.ipadm_af = ifap->ifa_addr->sa_family;
444 (void) memcpy(&data, ifap->ifa_addr,
447 flags = ifap->ifa_flags;
472 (void) strlcpy(lifr.lifr_name, ifap->ifa_name,
474 sock = (ifap->ifa_addr->sa_family == AF_INET) ?