Lines Matching defs:new
141 struct rt_spare new;
755 new.rts_gate = gate;
756 new.rts_router = FROM_NADDR;
757 new.rts_metric = n->n_metric;
758 new.rts_tag = n->n_tag;
759 new.rts_time = now.tv_sec;
760 new.rts_ifp = aifp;
761 new.rts_de_ag = i;
764 input_route(dst, mask, &new, n);
781 struct rt_spare *new,
811 if (new->rts_metric == HOPCNT_INFINITY)
820 * our memory, accept the new route.
823 rtadd(dst, mask, 0, new);
848 if (rts->rts_router == new->rts_router)
861 /* If the new route is a route broken down from an
867 if (new->rts_de_ag > rts->rts_de_ag
872 * the poison on. Use a new timestamp for good routes.
875 && new->rts_metric == HOPCNT_INFINITY)
876 new->rts_time = rts->rts_time;
882 rtchange(rt, rt->rt_state, new, 0);
885 if (new->rts_metric > rts->rts_metric)
893 if (rts->rts_gate == new->rts_gate
894 && rts->rts_metric == new->rts_metric
895 && rts->rts_tag == new->rts_tag) {
896 trace_upslot(rt, rts, new);
897 *rts = *new;
902 if (new->rts_metric == HOPCNT_INFINITY) {
925 if (new->rts_metric >= rts->rts_metric)
929 trace_upslot(rt, rts, new);
930 *rts = *new;