Home
last modified time | relevance | path

Searched refs:rt_spares (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dtrace.c887 (int)(rts - rt->rt_spares), in trace_upslot()
890 (rts != rt->rt_spares || in trace_upslot()
895 (int)(rts - rt->rt_spares), in trace_upslot()
900 rts != rt->rt_spares || in trace_upslot()
912 (rts != rt->rt_spares || in trace_upslot()
917 (int)(rts - rt->rt_spares), in trace_upslot()
920 (rts != rt->rt_spares || in trace_upslot()
999 print_rts(rt->rt_spares, in trace_change()
1000 0, 0, 0, 0, AGE_RT(rt->rt_state, rt->rt_spares->rts_origin, in trace_change()
1002 print_rtsorigin(origin_bits, rt->rt_spares->rts_origin); in trace_change()
[all …]
H A Drdisc.c525 if ((rt->rt_spares[i].rts_gate == drp->dr_gate) && in del_rdisc()
526 (rt->rt_spares[i].rts_origin == RO_RDISC)) { in del_rdisc()
527 rts = &rt->rt_spares[i]; in del_rdisc()
600 rts = &rt->rt_spares[j]; in rdisc_sort()
610 ptr = realloc(rt->rt_spares, ptrsize); in rdisc_sort()
614 rt->rt_spares = ptr; in rdisc_sort()
615 rts = &rt->rt_spares[rt->rt_num_spares]; in rdisc_sort()
684 rts = &rt->rt_spares[i]; in rdisc_sort()
737 rt->rt_spares[first_rdisc_slot] = new; in rdisc_sort()
790 if (rt->rt_spares[i].rts_gate == 0) { in rdisc_sort()
[all …]
H A Ddefs.h235 struct rt_spare *rt_spares; member
238 #define rt_ifp rt_spares[0].rts_ifp
239 #define rt_gate rt_spares[0].rts_gate
240 #define rt_router rt_spares[0].rts_router
241 #define rt_metric rt_spares[0].rts_metric
242 #define rt_tag rt_spares[0].rts_tag
243 #define rt_time rt_spares[0].rts_time
244 #define rt_de_ag rt_spares[0].rts_de_ag
H A Dtable.c1261 rts = &rt->rt_spares[i]; in rtm_lose()
1992 (RT->rt_spares[0].rts_origin != RO_FILE)) in walk_kern()
2066 rts = &RT->rt_spares[i]; in walk_kern()
2319 rt->rt_spares = rtmalloc(SPARE_INC * sizeof (struct rt_spare), in rtadd()
2322 (void) memset(rt->rt_spares, 0, SPARE_INC * sizeof (struct rt_spare)); in rtadd()
2323 for (rts = rt->rt_spares, i = rt->rt_num_spares; i != 0; i--, rts++) in rtadd()
2336 rt->rt_spares[0] = *new; in rtadd()
2390 if (!AGE_RT(state, rt->rt_spares[0].rts_origin, new->rts_ifp)) in rtchange()
2407 rt->rt_spares[0] = *new; in rtchange()
2419 rts = rt->rt_spares+1; in rts_better()
[all …]
H A Dinput.c1124 rts0 = rt->rt_spares; in input_route()
1213 ptr = realloc(rt->rt_spares, ptrsize); in input_route()
1216 rt->rt_spares = ptr; in input_route()
1217 rts0 = &rt->rt_spares[rt->rt_num_spares]; in input_route()
H A Doutput.c509 if (RT->rt_spares[0].rts_origin == RO_FILE) in walk_supply()
650 for (rts = RT->rt_spares, sparecount = 0; in walk_supply()
672 RT->rt_spares[1].rts_gate == 0) { in walk_supply()