Lines Matching refs:ifa
195 struct ifaddr *ifa; in rib_add_redirect() local
209 if ((ifa = ifaof_ifpforaddr(gateway, ifp)) == NULL) in rib_add_redirect()
218 nhop_set_src(nh, ifa); in rib_add_redirect()
272 struct ifaddr *ifa; in ifa_ifwithroute() local
283 ifa = NULL; in ifa_ifwithroute()
285 ifa = ifa_ifwithdstaddr(dst, fibnum); in ifa_ifwithroute()
286 if (ifa == NULL) in ifa_ifwithroute()
287 ifa = ifa_ifwithaddr(gateway); in ifa_ifwithroute()
294 ifa = ifa_ifwithdstaddr(gateway, fibnum); in ifa_ifwithroute()
296 if (ifa == NULL) in ifa_ifwithroute()
297 ifa = ifa_ifwithnet(gateway, 0, fibnum); in ifa_ifwithroute()
298 if (ifa == NULL) { in ifa_ifwithroute()
309 ifa = nh->nh_ifa; in ifa_ifwithroute()
311 if (ifa->ifa_addr->sa_family != dst->sa_family) { in ifa_ifwithroute()
312 struct ifaddr *oifa = ifa; in ifa_ifwithroute()
313 ifa = ifaof_ifpforaddr(dst, ifa->ifa_ifp); in ifa_ifwithroute()
314 if (ifa == NULL) in ifa_ifwithroute()
315 ifa = oifa; in ifa_ifwithroute()
318 return (ifa); in ifa_ifwithroute()
403 struct ifaddr *ifa = NULL; in rt_getifa_family() local
408 ifa = ifa_ifwithroute(RTF_GATEWAY, gw, gw, fibnum); in rt_getifa_family()
409 if (ifa == NULL) in rt_getifa_family()
411 info->rti_ifp = ifa->ifa_ifp; in rt_getifa_family()
610 rt_addrmsg(int cmd, struct ifaddr *ifa, int fibnum) in rt_addrmsg() argument
613 struct sockaddr *sa = ifa->ifa_addr; in rt_addrmsg()
614 struct ifnet *ifp = ifa->ifa_ifp; in rt_addrmsg()
622 EVENTHANDLER_DIRECT_INVOKE(rt_addrmsg, ifa, cmd); in rt_addrmsg()
640 ip6_sprintf(addrstr, IFA_IN6(ifa)); in rt_addrmsg()
649 return (rtsock_addrmsg(cmd, ifa, fibnum)); in rt_addrmsg()