Lines Matching defs:ifa
691 struct ifaddr *ifa = 0;
705 if (Ifpaddr && (ifa = ifa_ifwithnet_scoped(Ifpaddr, ifscope)) &&
706 (ifp = ifa->ifa_ifp) && (Ifaaddr || Gate)) {
707 ifafree(ifa);
708 ifa = ifaof_ifpforaddr(Ifaaddr ? Ifaaddr : Gate, ifp);
710 if (ifa) {
711 ifafree(ifa);
712 ifa = 0;
716 ifa = ifaof_ifpforaddr(Gate, ifp);
719 ifa = TAILQ_FIRST(&ifp->if_addrhead);
720 ifaref(ifa);
724 (ifa = ifa_ifwithaddr_scoped(Ifaaddr, ifscope))) {
725 ifp = ifa->ifa_ifp;
727 (ifa = ifa_ifwithroute_scoped_locked(rt->rt_flags,
729 ifp = ifa->ifa_ifp;
732 if (ifa) {
734 if (oifa != ifa) {
737 rtsetifa(rt, ifa);
749 ifafree(ifa);
752 ifafree(ifa);
1025 rt_newaddrmsg(int cmd, struct ifaddr *ifa, int error, struct rtentry *rt)
1031 struct ifnet *ifp = ifa->ifa_ifp;
1042 ifaaddr = sa = ifa->ifa_addr;
1044 netmask = ifa->ifa_netmask;
1045 brdaddr = ifa->ifa_dstaddr;
1050 ifam->ifam_metric = ifa->ifa_metric;
1051 ifam->ifam_flags = ifa->ifa_flags;
1176 struct ifaddr *ifa;
1188 ifa = ifp->if_addrhead.tqh_first;
1189 ifpaddr = ifa->ifa_addr;
1206 while ((ifa = ifa->ifa_link.tqe_next) != 0) {
1207 if (af && af != ifa->ifa_addr->sa_family)
1209 ifaaddr = ifa->ifa_addr;
1210 netmask = ifa->ifa_netmask;
1211 brdaddr = ifa->ifa_dstaddr;
1217 ifam->ifam_index = ifa->ifa_ifp->if_index;
1218 ifam->ifam_flags = ifa->ifa_flags;
1219 ifam->ifam_metric = ifa->ifa_metric;
1239 struct ifaddr *ifa;
1251 ifa = ifp->if_addrhead.tqh_first;
1252 ifpaddr = ifa->ifa_addr;
1273 while ((ifa = ifa->ifa_link.tqe_next) != 0) {
1274 if (af && af != ifa->ifa_addr->sa_family)
1276 ifaaddr = ifa->ifa_addr;
1277 netmask = ifa->ifa_netmask;
1278 brdaddr = ifa->ifa_dstaddr;
1284 ifam->ifam_index = ifa->ifa_ifp->if_index;
1285 ifam->ifam_flags = ifa->ifa_flags;
1286 ifam->ifam_metric = ifa->ifa_metric;