Home
last modified time | relevance | path

Searched refs:metric (Results 1 – 14 of 14) sorted by relevance

/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Doutput.c59 uint8_t metric; /* adjust metrics by interface */ member
495 uint8_t metric, pref; in walk_supply() local
581 metric = RT->rt_metric; in walk_supply()
654 if (rts->rts_metric > metric || rts->rts_ifp != ws.ifp) in walk_supply()
673 RT->rt_poison_metric >= metric || in walk_supply()
678 metric = HOPCNT_INFINITY; in walk_supply()
687 if (RT->rt_poison_metric >= metric || in walk_supply()
690 RT->rt_poison_metric = metric; in walk_supply()
697 pref = RT->rt_poison_metric + ws.metric; in walk_supply()
698 metric += ws.metric; in walk_supply()
[all …]
H A Dparms.c227 uint32_t state, metric; in gwkludge() local
286 STR(QUAL_LEN)"s\n", net_host, dname, gname, &metric, qual); in gwkludge()
292 if (metric >= HOPCNT_INFINITY) { in gwkludge()
334 if (metric == 0) in gwkludge()
335 metric = 1; in gwkludge()
346 if (metric == 0) in gwkludge()
347 metric = 1; in gwkludge()
359 if (metric != 0) { in gwkludge()
388 addroutefordefault(dst, gate, netmask, metric, in gwkludge()
416 ifp->int_metric = metric; in gwkludge()
[all …]
H A Dtable.c319 uint8_t metric, in ag_check() argument
348 nc_ag.ag_metric = metric; in ag_check()
445 ag->ag_metric = metric; in ag_check()
566 ag->ag_metric = metric; in ag_check()
567 metric = tmp; in ag_check()
652 nag->ag_metric = metric; in ag_check()
799 uint8_t metric, in rtioctl() argument
814 #define ARGS rtm_type_name(action), rtname(dst, mask, gate), metric, flags in rtioctl()
828 if (metric != 0 || action == RTM_CHANGE) { in rtioctl()
829 w.w_rtm.rtm_rmx.rmx_hopcount = metric; in rtioctl()
[all …]
H A Dinput.c174 uint8_t metric; in input() local
392 metric = ifp->int_d_metric; in input()
395 metric = MIN(metric, in input()
397 v12buf.n->n_metric = htonl(metric); in input()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtables.c235 int metric, int tag, boolean_t ifroute, struct interface *ifp) in rtadd() argument
243 if (metric >= HOPCNT_INFINITY) in rtadd()
275 rt->rt_metric = metric; in rtadd()
325 rtchange(struct rt_entry *rt, struct in6_addr *gate, short metric, in rtchange() argument
335 if (metric >= HOPCNT_INFINITY) { in rtchange()
347 if (metric != rt->rt_metric) in rtchange()
352 if ((rt->rt_state & RTS_INTERFACE) && metric != 0) { in rtchange()
371 rt->rt_metric = metric; in rtchange()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_pppoe.c359 uint32_t metric; in interpret_rteadd() local
368 metric = ntohl(*(uint32_t *)&tag_value[12]); in interpret_rteadd()
372 "%s\t%s\t%s\t%d", dest, mask, gateway, metric); in interpret_rteadd()
H A Dsnoop_ospf.c336 int tos, metric; in interpret_ospf_lsa() local
482 metric = tm & SLA_MASK_METRIC; in interpret_ospf_lsa()
485 " tos %d metric %d", tos, metric); in interpret_ospf_lsa()
503 metric = tm & ASLA_MASK_METRIC; in interpret_ospf_lsa()
508 tos, metric); in interpret_ospf_lsa()
/titanic_41/usr/src/uts/common/inet/
H A Dkstatcom.h126 kstat_named_t metric; member
147 kstat_named_t metric; member
197 kstat_named_t metric; member
/titanic_41/usr/src/lib/libipadm/common/
H A Dipadm_ngz.c73 uint8_t metric, in i_ipadm_rtioctl4() argument
100 if (metric != 0 || action == RTM_CHANGE) { in i_ipadm_rtioctl4()
101 w.w_rtm.rtm_rmx.rmx_hopcount = metric; in i_ipadm_rtioctl4()
H A Dipadm_prop.c417 int metric; in i_ipadm_set_metric() local
423 metric = DEF_METRIC_VAL; in i_ipadm_set_metric()
426 metric = (uint_t)strtol(pval, &endp, 10); in i_ipadm_set_metric()
433 lifr.lifr_metric = metric; in i_ipadm_set_metric()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/
H A Droute.c1430 ulong_t metric; in args_to_rtcmd() local
1437 metric = strtoul(tok, &err, 10); in args_to_rtcmd()
1439 metric < 0x80000000ul) { in args_to_rtcmd()
1440 iflag = (metric == 0); in args_to_rtcmd()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dasppp2pppd88 metric => 1,
/titanic_41/usr/src/cmd/look/
H A Dwords14713 metric
/titanic_41/usr/src/cmd/spell/
H A Dlist14711 metric