Lines Matching refs:ifamap

554     struct rtmaddr_ifamap ifamap;  in rk_getifaddrs()  local
602 memset(&ifamap, 0, sizeof(ifamap)); in rk_getifaddrs()
712 ifamap.address = rtadata; in rk_getifaddrs()
713 ifamap.address_len = rtapayload; in rk_getifaddrs()
716 ifamap.local = rtadata; in rk_getifaddrs()
717 ifamap.local_len = rtapayload; in rk_getifaddrs()
720 ifamap.broadcast = rtadata; in rk_getifaddrs()
721 ifamap.broadcast_len = rtapayload; in rk_getifaddrs()
725 ifamap.anycast = rtadata; in rk_getifaddrs()
726 ifamap.anycast_len = rtapayload; in rk_getifaddrs()
752 if (!ifamap.local) { in rk_getifaddrs()
753 ifamap.local = ifamap.address; in rk_getifaddrs()
754 ifamap.local_len = ifamap.address_len; in rk_getifaddrs()
756 if (!ifamap.address) { in rk_getifaddrs()
757 ifamap.address = ifamap.local; in rk_getifaddrs()
758 ifamap.address_len = ifamap.local_len; in rk_getifaddrs()
760 if (ifamap.address_len != ifamap.local_len || in rk_getifaddrs()
761 (ifamap.address != NULL && in rk_getifaddrs()
762 memcmp(ifamap.address, ifamap.local, ifamap.address_len))) { in rk_getifaddrs()
764 ifamap.broadcast = ifamap.address; in rk_getifaddrs()
765 ifamap.broadcast_len = ifamap.address_len; in rk_getifaddrs()
766 ifamap.address = ifamap.local; in rk_getifaddrs()
767 ifamap.address_len = ifamap.local_len; in rk_getifaddrs()
769 if (ifamap.address) { in rk_getifaddrs()
771 sockaddr_size = NLMSG_ALIGN(ifa_sa_len(nlm_family,ifamap.address_len)); in rk_getifaddrs()
774 dlen += NLMSG_ALIGN(ifa_sa_len(nlm_family,ifamap.address_len)); in rk_getifaddrs()
777 ifa_make_sockaddr(nlm_family, ifa->ifa_addr, ifamap.address, ifamap.address_len, in rk_getifaddrs()
779 data += NLMSG_ALIGN(ifa_sa_len(nlm_family, ifamap.address_len)); in rk_getifaddrs()
783 if (ifamap.netmask) { in rk_getifaddrs()
785 dlen += NLMSG_ALIGN(ifa_sa_len(nlm_family,ifamap.netmask_len)); in rk_getifaddrs()
788 ifa_make_sockaddr(nlm_family, ifa->ifa_netmask, ifamap.netmask, ifamap.netmask_len, in rk_getifaddrs()
790 data += NLMSG_ALIGN(ifa_sa_len(nlm_family, ifamap.netmask_len)); in rk_getifaddrs()
794 if (ifamap.broadcast) { in rk_getifaddrs()
796 dlen += NLMSG_ALIGN(ifa_sa_len(nlm_family,ifamap.broadcast_len)); in rk_getifaddrs()
799 ifa_make_sockaddr(nlm_family, ifa->ifa_broadaddr, ifamap.broadcast, ifamap.broadcast_len, in rk_getifaddrs()
801 data += NLMSG_ALIGN(ifa_sa_len(nlm_family, ifamap.broadcast_len)); in rk_getifaddrs()
805 if (ifamap.anycast) { in rk_getifaddrs()
807 dlen += NLMSG_ALIGN(ifa_sa_len(nlm_family,ifamap.anycast_len)); in rk_getifaddrs()
810 ifa_make_sockaddr(nlm_family, ifa->ifa_anyaddr, ifamap.anycast, ifamap.anycast_len, in rk_getifaddrs()
812 data += NLMSG_ALIGN(ifa_sa_len(nlm_family, ifamap.anycast_len)); in rk_getifaddrs()