Searched defs:metric (Results 1 - 12 of 12) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ospf.c336 int tos, metric; local
416 get_line_remain(), "TOS 0 metric = %d",
427 "TOS %d metric = %d",
482 metric = tm & SLA_MASK_METRIC;
485 " tos %d metric %d", tos, metric);
503 metric = tm & ASLA_MASK_METRIC;
506 " type %d tos %d metric %d",
508 tos, metric);
H A Dsnoop_pppoe.c359 uint32_t metric; local
368 metric = ntohl(*(uint32_t *)&tag_value[12]);
372 "%s\t%s\t%s\t%d", dest, mask, gateway, metric);
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_ngz.c73 uint8_t metric,
100 if (metric != 0 || action == RTM_CHANGE) {
101 w.w_rtm.rtm_rmx.rmx_hopcount = metric;
67 i_ipadm_rtioctl4(int rtsock, int action, in_addr_t dst, in_addr_t gate, uint_t masklen, char *ifname, uint8_t metric, int flags) argument
H A Dipadm_prop.c53 #define DEF_METRIC_VAL 0 /* default metric value */
100 { "metric", NULL, IPADMPROP_CLASS_IF, MOD_PROTO_IPV4, 0,
123 { "metric", NULL, IPADMPROP_CLASS_IF, MOD_PROTO_IPV6, 0,
417 int metric; local
423 metric = DEF_METRIC_VAL;
426 metric = (uint_t)strtol(pval, &endp, 10);
433 lifr.lifr_metric = metric;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtables.c96 syslog(level, "\tdst %s from gw %s if %s to gw %s if %s metric %d",
114 syslog(level, "\tdst %s gw %s if %s metric %d",
235 int metric, int tag, boolean_t ifroute, struct interface *ifp)
243 if (metric >= HOPCNT_INFINITY)
275 rt->rt_metric = metric;
318 * Handle the case when the metric changes but the gateway is the same (or the
320 * and metric changes, or when only the gateway changes but the existing route
321 * is more than one-half of EXPIRE_TIME in age. Note that routes with metric >=
325 rtchange(struct rt_entry *rt, struct in6_addr *gate, short metric, argument
335 if (metric >
234 rtadd(struct in6_addr *dst, struct in6_addr *gate, int prefix_length, int metric, int tag, boolean_t ifroute, struct interface *ifp) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dinput.c174 uint8_t metric; local
340 * metric HOPCNT_INFINITY means "all routes".
392 metric = ifp->int_d_metric;
395 metric = MIN(metric,
397 v12buf.n->n_metric = htonl(metric);
466 * we have the answer, so compute the right metric
787 "bad metric %d from %s"
843 * Adjust metric according to incoming interface cost.
845 * metric 1
[all...]
H A Doutput.c59 uint8_t metric; /* adjust metrics by interface */ member in struct:__anon260
454 * admit only a bad metric.
495 uint8_t metric, pref; local
581 metric = RT->rt_metric;
646 * Notice spare routes with the same metric that we are about to
654 if (rts->rts_metric > metric || rts->rts_ifp != ws.ifp)
660 * toward its source with an infinite metric.
662 * better metric than we now have, then we should
673 RT->rt_poison_metric >= metric ||
678 metric
[all...]
H A Dparms.c99 * Default poor-man's router discovery to a metric that will
101 * routes with metric 15.
227 uint32_t state, metric; local
280 * net|host <name>[/mask] gateway <Gname> metric <value>
285 "[^ \t] gateway %"STR(GNAME_LEN)"[^ / \t] metric %u %"
286 STR(QUAL_LEN)"s\n", net_host, dname, gname, &metric, qual);
292 if (metric >= HOPCNT_INFINITY) {
293 msglog("bad metric in "PATH_GATEWAYS" entry \"%s\"",
334 if (metric == 0)
335 metric
1015 addroutefordefault(in_addr_t dst, in_addr_t gate, in_addr_t mask, uint32_t metric, uint16_t rts_flags) argument
[all...]
H A Dtable.c78 * the same metric and next hop into a common route with a smaller netmask
211 * only if it has a good enough metric and it
319 uint8_t metric,
348 nc_ag.ag_metric = metric;
445 ag->ag_metric = metric;
491 * same gateway and have the same metric.
529 * with the worse metric can be promoted.
566 ag->ag_metric = metric;
567 metric = tmp;
652 nag->ag_metric = metric;
314 ag_check(in_addr_t dst, in_addr_t mask, in_addr_t gate, struct interface *ifp, in_addr_t nhop, uint8_t metric, uint8_t pref, uint32_t seqno, uint16_t tag, uint16_t state, void (*out)(struct ag_info *)) argument
794 rtioctl(int action, in_addr_t dst, in_addr_t gate, in_addr_t mask, struct interface *ifp, uint8_t metric, int flags) argument
1979 uint8_t metric, pref; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Droute.c1430 ulong_t metric; local
1432 * Assume that a regular number is a metric.
1437 metric = strtoul(tok, &err, 10);
1439 metric < 0x80000000ul) {
1440 iflag = (metric == 0);
2626 (void) printf("metric %d, flags:", ifam->ifam_metric);
/illumos-gate/usr/src/uts/common/inet/
H A Dkstatcom.h126 kstat_named_t metric; member in struct:ipAddrEntry_named_kstat
147 kstat_named_t metric; member in struct:ipv6AddrEntry_named_kstat
197 kstat_named_t metric; member in struct:ipv6RouteEntry_named_kstat
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNS.c3107 mDNSu32 metric = SPSMetric(cr->resrec.rdata->u.name.c); local
3108 if (bestmetric > metric) { bestmetric = metric; bestcr = cr; }
3152 // SPS is already sorted by metric. We want to move the entries to the beginning of the array
3153 // only if they have equally good metric and support features.
5663 mDNSu32 metric = SPSMetric(cr->resrec.rdata->u.name.c); local
5664 if (metric >= mymetric)
5667 mDNS_snprintf(reason, sizeof(reason), "No sleep proxy server with better metric on %s", intf->ifname);
5668 LogInfo("mDNS_UpdateAllowSleep: Sleep disabled because %s has no sleep proxy server with a better metric", intf->ifname);

Completed in 115 milliseconds