Lines Matching refs:RT

493 #define	RT ((struct rt_entry *)rn)  in walk_supply()  macro
504 if ((RT->rt_state & RS_IF) && RT->rt_ifp != NULL && in walk_supply()
505 (RT->rt_ifp->int_state & IS_PASSIVE) && in walk_supply()
506 !(RT->rt_state & RS_MHOME)) in walk_supply()
511 if (RT->rt_spares[0].rts_origin == RO_FILE) in walk_supply()
518 if (RT->rt_state & RS_NOPROPAGATE) in walk_supply()
527 !(RT->rt_state & RS_MHOME)) in walk_supply()
530 dst = RT->rt_dst; in walk_supply()
538 if (RT->rt_state & RS_NET_SYN) { in walk_supply()
539 if (RT->rt_state & RS_NET_INT) { in walk_supply()
545 ntohl(dst), RT->rt_mask)) in walk_supply()
562 ntohl(dst), RT->rt_mask)) in walk_supply()
574 if (!(RT->rt_state & RS_IF) && !(RT->rt_state & RS_MHOME) && in walk_supply()
575 RT->rt_gate != loopaddr) in walk_supply()
576 nhop = RT->rt_gate; in walk_supply()
581 metric = RT->rt_metric; in walk_supply()
584 if (!RT_ISHOST(RT)) { in walk_supply()
597 if ((ws.state & WS_ST_AG) && ((RT->rt_state & RS_SUBNET) || in walk_supply()
600 } else if (!(RT->rt_state & RS_MHOME)) { in walk_supply()
609 if ((RT->rt_state & RS_LOCAL) || ridhosts || in walk_supply()
627 if ((RT->rt_state & RS_SUBNET) && !(ws.state & WS_ST_RIP2_ALL) && in walk_supply()
650 (ws.state & WS_ST_TO_ON_NET) && (!(RT->rt_state & RS_IF) || in walk_supply()
652 for (rts = RT->rt_spares, sparecount = 0; in walk_supply()
653 sparecount < RT->rt_num_spares; sparecount++, rts++) { in walk_supply()
672 if (RT->rt_poison_time < now_expire || in walk_supply()
673 RT->rt_poison_metric >= metric || in walk_supply()
674 RT->rt_spares[1].rts_gate == 0) { in walk_supply()
687 if (RT->rt_poison_metric >= metric || in walk_supply()
688 RT->rt_poison_time < now_expire) { in walk_supply()
689 RT->rt_poison_time = now.tv_sec; in walk_supply()
690 RT->rt_poison_metric = metric; in walk_supply()
697 pref = RT->rt_poison_metric + ws.metric; in walk_supply()
707 if ((RT->rt_state & RS_STATIC) && (ws.ifp == RT->rt_ifp)) in walk_supply()
719 RT->rt_poison_time < now_garbage)) in walk_supply()
729 ag_check(dst, RT->rt_mask, 0, RT->rt_ifp, nhop, metric, pref, in walk_supply()
730 RT->rt_seqno, RT->rt_tag, ags, supply_out); in walk_supply()
732 #undef RT in walk_supply()