Lines Matching refs:RT

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