Lines Matching defs:RT
462 #define RT ((struct rt_entry *)rn)
472 if ((RT->rt_state & RS_IF)
473 && RT->rt_ifp != 0
474 && (RT->rt_ifp->int_state & IS_PASSIVE)
475 && !(RT->rt_state & RS_MHOME))
483 && !(RT->rt_state & RS_MHOME))
486 dst = RT->rt_dst;
493 if (RT->rt_state & RS_NET_SYN) {
494 if (RT->rt_state & RS_NET_INT) {
499 ntohl(dst), RT->rt_mask))
514 ntohl(dst), RT->rt_mask))
525 if (!(RT->rt_state & RS_IF)
526 && RT->rt_gate != myaddr
527 && RT->rt_gate != loopaddr)
528 nhop = RT->rt_gate;
533 metric = RT->rt_metric;
536 if (RT->rt_state & RS_MHOME) {
540 } else if (RT_ISHOST(RT)) {
548 if ((RT->rt_state & RS_LOCAL)
573 && ((RT->rt_state & RS_SUBNET)
581 if ((RT->rt_state & RS_SUBNET)
611 && (!(RT->rt_state & RS_IF)
613 for (rts = RT->rt_spares, i = NUM_SPARES; i != 0; i--, rts++) {
632 if (RT->rt_poison_time < now_expire
633 || RT->rt_poison_metric >= metric
634 || RT->rt_spares[1].rts_gate == 0) {
646 if (RT->rt_poison_metric >= metric
647 || RT->rt_poison_time < now_expire) {
648 RT->rt_poison_time = now.tv_sec;
649 RT->rt_poison_metric = metric;
655 pref = RT->rt_poison_metric + ws.metric;
667 || RT->rt_poison_time < now_garbage))
673 ag_check(dst, RT->rt_mask, 0, nhop, metric, pref,
674 RT->rt_seqno, RT->rt_tag, ags, supply_out);
676 #undef RT
691 struct rt_entry *rt;
711 rt = rtfind(dst->sin_addr.s_addr);
712 if (rt)
713 ifp = rt->rt_ifp;
780 if (0 == (rt = rtget(RIP_DEFAULT, 0))
781 || rt->rt_metric+ws.metric >= def_metric) {
786 def_metric = rt->rt_metric+ws.metric;