Lines Matching refs:ifa
464 #define ifatoia(ifa) ((struct in_ifaddr *)(ifa))
513 struct ifaddr *ifa;
516 ifa = in_selectsrcif(ip, ro, ifscope);
525 if (ifa == NULL && !(flags & IP_RAWOUTPUT) &&
546 if (ifa != NULL) {
548 ifscope = ifa->ifa_ifp->if_index;
549 ifafree(ifa);
3021 struct ifaddr *ifa = NULL;
3064 ifa = ifa_ifwithaddr_scoped(&src, scope);
3066 if (ip_select_srcif_debug && ifa != NULL) {
3070 scope, ifa->ifa_ifp->if_name,
3071 ifa->ifa_ifp->if_unit, rt_ifp->if_name,
3076 ifa->ifa_ifp->if_name,
3077 ifa->ifa_ifp->if_unit);
3092 if (ifa == NULL && ifscope == IFSCOPE_NONE) {
3093 ifa = ifa_ifwithaddr(&src);
3095 if (ip_select_srcif_debug && ifa != NULL) {
3097 ip_src, ip_dst, ifscope, ifa->ifa_ifp->if_name,
3098 ifa->ifa_ifp->if_unit);
3109 (ifa == NULL || (ifa->ifa_ifp != rt_ifp && rt_ifp != lo_ifp) ||
3112 if (ifa != NULL) {
3116 rt_ifp->if_unit, ifa->ifa_ifp->if_name,
3117 ifa->ifa_ifp->if_unit);
3141 !IN_LINKLOCAL(ntohl(ip->ip_src.s_addr)) && ifa != NULL) {
3142 ifafree(ifa);
3143 ifa = NULL;
3147 if (ip_select_srcif_debug && ifa == NULL) {
3167 return (ifa);