Lines Matching refs:ifa
583 struct ifaddrmsg *ifa; in link_addr() local
595 if (len < sizeof(*ifa)) { in link_addr()
599 ifa = NLMSG_DATA(nlm); in link_addr()
600 if ((ifp = if_findindex(ctx->ifaces, ifa->ifa_index)) == NULL) { in link_addr()
605 rta = (struct rtattr *)IFA_RTA(ifa); in link_addr()
606 len = NLMSG_PAYLOAD(nlm, sizeof(*ifa)); in link_addr()
607 switch (ifa->ifa_family) { in link_addr()
612 inet_cidrtoaddr(ifa->ifa_prefixlen, &net); in link_addr()
629 &addr, &net, &dest, ifa->ifa_flags); in link_addr()
645 &addr6, ifa->ifa_prefixlen, ifa->ifa_flags); in link_addr()
1113 struct ifaddrmsg ifa; member
1301 nlm.ifa.ifa_index = iface->index; in if_address()
1302 nlm.ifa.ifa_family = AF_INET; in if_address()
1303 nlm.ifa.ifa_prefixlen = inet_ntocidr(*netmask); in if_address()
1452 nlm.ifa.ifa_index = ap->iface->index; in if_address6()
1453 nlm.ifa.ifa_family = AF_INET6; in if_address6()
1458 nlm.ifa.ifa_flags |= IFA_F_TEMPORARY; in if_address6()
1468 nlm.ifa.ifa_prefixlen = ap->prefix_len; in if_address6()