Lines Matching defs:ifscope
305 unsigned int ifscope = IFSCOPE_NONE;
392 * In the forwarding case, only the ifscope value is used,
402 ifscope = ipoa->ipoa_boundif;
404 (IPPOF_BOUND_IF | (ifscope << IPPOF_SHIFT_IFSCOPE));
412 ifscope = IFSCOPE_NONE;
630 ifa = in_selectsrcif(ip, ro, ifscope);
653 srcbound) && ifscope != lo_ifp->if_index) {
673 if (ifscope == IFSCOPE_NONE)
674 ifscope = ifa->ifa_ifp->if_index;
714 * Loosen the route lookup criteria if the ifscope
722 if (ifscope == lo_ifp->if_index)
725 rtalloc_scoped_ign(ro, ign, ifscope);
2396 unsigned int ifscope;
2420 ifscope = IFSCOPE_NONE;
2437 ifscope = ifp->if_index;
2445 error = inp_bindif(inp, ifscope);
3101 in_selectsrcif(struct ip *ip, struct route *ro, unsigned int ifscope)
3126 if (ifscope != IFSCOPE_NONE || ro->ro_rt != NULL) {
3127 unsigned int scope = ifscope;
3159 ifscope = IFSCOPE_NONE;
3165 printf("%s->%s ifscope %d->%d ifa_if %s "
3166 "ro_if %s\n", s_src, s_dst, ifscope,
3170 printf("%s->%s ifscope %d->%d ifa_if %s\n",
3171 s_src, s_dst, ifscope, scope,
3187 if (ifa == NULL && ifscope == IFSCOPE_NONE) {
3288 printf("%s->%s ifscope %d ifa_if %s\n",
3289 s_src, s_dst, ifscope, if_name(ifa->ifa_ifp));
3306 printf("%s->%s ifscope %d ro_if %s != "
3308 s_src, s_dst, ifscope, if_name(rt_ifp),
3311 printf("%s->%s ifscope %d ro_if %s "
3313 s_src, s_dst, ifscope, if_name(rt_ifp));
3340 printf("%s->%s ifscope %d (neither ro_if/ifa_if found)\n",
3341 s_src, s_dst, ifscope);