Lines Matching defs:new

326 		 * aggregation table for the new route.
363 /* If we find the even/odd twin of the new route, and if the
368 * the new route must be odd. However, the second or later
385 * already present. So we know that the new route is
470 * in the table to the new, odd twin.
516 /* Promote the new, odd twin by shaving its
546 * the new route.
577 /* Save the new route on the end of the table.
823 struct rt_spare new;
828 memset(&new, 0, sizeof(new));
829 new.rts_ifp = ifp;
830 new.rts_gate = k->k_gate;
831 new.rts_router = (ifp != NULL) ? ifp->int_addr : loopaddr;
832 new.rts_metric = k->k_metric;
833 new.rts_time = now.tv_sec;
838 rtchange(rt, rt->rt_state | RS_STATIC, &new, 0);
840 rtadd(k->k_dst, k->k_mask, RS_STATIC, &new);
1352 /* will need to add new entry to the kernel table */
1706 struct rt_spare *new)
1733 rt->rt_spares[0] = *new;
1759 u_int state, /* new state bits */
1760 struct rt_spare *new,
1763 if (rt->rt_metric != new->rts_metric) {
1768 if (new->rts_metric == HOPCNT_INFINITY) {
1770 if (new->rts_time >= now.tv_sec - EXPIRE_TIME)
1771 new->rts_time = now.tv_sec - EXPIRE_TIME;
1777 if (rt->rt_gate != new->rts_gate) {
1787 if (!AGE_RT(state, new->rts_ifp))
1788 new->rts_time = now.tv_sec;
1791 trace_change(rt, state, new,
1795 rt->rt_spares[0] = *new;
1895 struct rt_spare new;
1898 new = rt->rt_spares[0];
1899 new.rts_metric = HOPCNT_INFINITY;
1900 rtchange(rt, rt->rt_state & ~(RS_IF | RS_LOCAL | RS_STATIC), &new, 0);
1965 struct rt_spare new = rt->rt_spares[0];
1966 new.rts_ifp = ifp1;
1968 &new, 0);
2086 struct rt_spare new = RT->rt_spares[0];
2087 new.rts_metric = HOPCNT_INFINITY;
2088 rtchange(RT, RT->rt_state, &new, 0);