HomeSort by: relevance | last modified time | path
    Searched refs:metric (Results 1 - 17 of 17) sorted by relevancy

  /src/usr.bin/rump_dhcpclient/
net.h 126 #define add_route(iface, dest, mask, gate, metric) \
127 if_route(iface, dest, mask, gate, metric, 1)
128 #define change_route(iface, dest, mask, gate, metric) \
129 if_route(iface, dest, mask, gate, metric, 0)
130 #define del_route(iface, dest, mask, gate, metric) \
131 if_route(iface, dest, mask, gate, metric, -1)
132 #define del_src_route(iface, dest, mask, gate, metric) \
133 if_route(iface, dest, mask, gate, metric, -2)
dhcpcd.h 91 int metric; member in struct:interface
if-options.h 84 int metric; member in struct:if_options
configure.c 74 rt->iface->metric == r->iface->metric)) &&
135 if (!add_route(iface, &rt->dest, &rt->net, &rt->gate, iface->metric))
160 /* We delete and add the route so that we can change metric.
164 ort->iface->metric);
166 iface->metric))
173 d_route(struct rt *rt, const struct interface *iface, int metric)
178 retval = del_route(iface, &rt->dest, &rt->net, &rt->gate, metric);
386 d_route(rt, rt->iface, rt->iface->metric);
447 /* We need to delete the subnet route to have our metric o
    [all...]
net.c 199 iface->metric = 200 + if_nametoindex(iface->name);
202 iface->metric += 100;
if-bsd.c 174 _unused int metric, int action)
  /src/usr.sbin/map-mbone/
mapper.c 56 u_char metric; /* TTL cost of forwarding */ member in struct:neighbor
310 u_char metric, threshold, ncount; local in function:accept_neighbors
323 metric = *p++;
359 if (nb_i->metric != nb_n->metric
363 "metric/threshold",
404 if (metric != nb->metric || threshold != nb->threshold)
407 "metric/threshold",
416 nb->metric = metric
445 u_char metric, threshold, ncount, flags; local in function:accept_neighbors2
    [all...]
  /src/sbin/routed/
output.c 61 char metric; /* adjust metrics by interface */ member in struct:__anon7854488c0108
425 * shutting down, admit only a bad metric.
464 char metric, pref; local in function:walk_supply
533 metric = RT->rt_metric;
600 * Notice spare routes with the same metric that we are about to
614 if (rts->rts_metric > metric
620 * toward its source with an infinite metric.
622 * better metric than we now have, then we should
633 || RT->rt_poison_metric >= metric
638 metric = HOPCNT_INFINITY
    [all...]
parms.c 99 * Default poor-man's router discovery to a metric that will
101 * routes with metric 15.
178 int metric, n, lnum; local in function:gwkludge
221 /* {net | host} XX[/M] XX gateway XX metric DD [passive | external]\n */
225 " %64[^ / \t] metric %u %8s\n",
226 net_host, dname, gname, &metric, qual);
232 if (metric >= HOPCNT_INFINITY) {
233 msglog("bad metric in "_PATH_GATEWAYS" entry \"%s\"",
277 if (metric == 0)
278 metric = 1
    [all...]
table.c 77 * the same metric and next hop into a common route with a smaller netmask
253 * metric, it suppresses the target.
290 char metric,
315 nc_ag.ag_metric = metric;
405 ag->ag_metric = metric;
439 * same gateway and have the same metric.
475 * with the worse metric can be promoted.
507 ag->ag_metric = metric;
508 metric = x;
594 nag->ag_metric = metric;
1423 char metric, pref; local in function:walk_kern
    [all...]
  /src/usr.sbin/mrouted/
route.c 342 update_route(u_int32_t origin, u_int32_t mask, u_int metric, u_int32_t src,
349 * Compute an adjusted metric, taking into account the cost of the
353 if (src != 0 && (metric < 1 || metric >= 2*UNREACHABLE)) {
355 "%s reports out-of-range metric %u for origin %s",
356 inet_fmt(src), metric,
360 adj_metric = metric + uvifs[vifi].uv_metric;
428 * the route timer and, if the reported metric has changed, update
460 * subnet and the reported metric for that origin is better than
462 * gateway and metric. We also switch gateways if the reporte
703 int metric; member in struct:newrt
740 int metric; local in function:accept_report
    [all...]
defs.h 166 u_int metric, u_int32_t src, vifi_t vifi);
  /src/usr.sbin/lockstat/
main.c 741 double pcscale, metric; local in function:display
778 metric = l->count;
780 metric = l->time;
781 metric *= pcscale;
788 metric, (int)(l->count * cscale),
796 metric = lb->lb_counts[event];
798 metric = lb->lb_times[event];
799 metric *= pcscale;
804 metric, (int)(lb->lb_counts[event] * cscale),
  /src/usr.sbin/mrinfo/
mrinfo.c 206 u_char metric; local in function:accept_neighbors
212 metric = *p++;
222 inet_name(neighbor), metric, thresh);
244 u_char metric; local in function:accept_neighbors2
251 metric = *p++;
265 inet_name(neighbor), metric, thresh);
  /src/sys/net/
rtsock_shared.c 1122 #define metric(f, e) if (which & (f)) out->rt_rmx.e = in->rtm_rmx.e; macro
1123 metric(RTV_RPIPE, rmx_recvpipe);
1124 metric(RTV_SPIPE, rmx_sendpipe);
1125 metric(RTV_SSTHRESH, rmx_ssthresh);
1126 metric(RTV_RTT, rmx_rtt);
1127 metric(RTV_RTTVAR, rmx_rttvar);
1128 metric(RTV_HOPCOUNT, rmx_hopcount);
1129 metric(RTV_MTU, rmx_mtu);
1130 #undef metric
1140 #define metric(e) out->rtm_rmx.e = in->rt_rmx.e macro
    [all...]
  /src/sbin/ifconfig/
ifconfig.c 180 struct pinteger parse_metric = PINTEGER_INITIALIZER(&parse_metric, "metric", 10,
181 setifmetric, "metric", &command_root.pb_parser);
212 , {.k_word = "metric", .k_nextparser = &parse_metric.pi_parser}
1151 int64_t metric; local in function:setifmetric
1153 rc = prop_dictionary_get_int64(env, "metric", &metric);
1156 ifr.ifr_metric = metric;
1307 printf(" metric %d", ifr.ifr_metric);
1547 "\t[ up ] [ down ] [ metric n ] [ mtu n ]\n", progname,
  /src/tests/net/if/
t_ifconfig.sh 292 # metric (external only)
293 atf_check -s exit:0 rump.ifconfig shmif0 metric 10
294 atf_check -s exit:0 rump.ifconfig shmif0 metric 0

Completed in 22 milliseconds