Searched refs:metric (Results 1 - 24 of 24) sorted by relevance

/freebsd-9.3-release/contrib/groff/src/utils/addftinfo/
H A Daddftinfo.cpp184 char_metric metric; local
185 metric.width = (int)strtol(p, &next, 10);
187 printf("%d", metric.width);
189 metric.type = (int)strtol(p, &next, 10);
192 guess(name.contents(), param, &metric);
193 if (metric.sk == 0) {
194 if (metric.left_ic == 0) {
195 if (metric.ic == 0) {
196 if (metric.depth == 0) {
197 if (metric
[all...]
H A Dguess.h44 void guess(const char *s, const font_params &param, char_metric *metric);
H A Dguess.cpp23 void guess(const char *s, const font_params &param, char_metric *metric) argument
25 int &height = metric->height;
26 int &depth = metric->depth;
28 metric->ic = 0;
29 metric->left_ic = 0;
30 metric->sk = 0;
39 if (metric->type & 01)
41 if (metric->type & 02)
/freebsd-9.3-release/usr.sbin/route6d/misc/
H A Dchkrt39 $metric = $1;
43 print "NOT FOUND: $dst $intf $gateway $metric $age\n";
48 print "WRONG GW: $dst $intf $gateway $metric $age\n";
54 print "WRONG IF: $dst $intf $gateway $metric $age\n";
/freebsd-9.3-release/usr.sbin/IPXrouted/
H A Doutput.c138 int size, metric, ticks; local
189 metric = HOPCNT_INFINITY;
191 metric = rt->rt_metric + 1;
195 if (metric >= HOPCNT_INFINITY)
210 nn->rip_metric = htons(metric);
213 (metric < ntohs(nn->rip_metric))) {
214 nn->rip_metric = htons(metric);
221 n->rip_metric = htons(metric);
H A Dtables.c119 rtadd(struct sockaddr *dst, struct sockaddr *gate, short metric, argument
142 rt->rt_metric = metric;
149 if (metric)
171 struct sockaddr *gate, short metric, short ticks, int state)
193 rt->rt_metric = metric;
202 if (metric)
212 rtchange(struct rt_entry *rt, struct sockaddr *gate, short metric, argument
231 (metric < rt->rt_clone->rt_metric))) {
245 (metric == rt->rt_clone->rt_metric)) {
270 metric
170 rtadd_clone(struct rt_entry *ort, struct sockaddr *dst, struct sockaddr *gate, short metric, short ticks, int state) argument
[all...]
H A Dsap_output.c123 int size, metric; local
184 metric = min(ntohs(sap->sap.hops) + 1, HOPCNT_INFINITY);
187 n->hops = htons(metric);
/freebsd-9.3-release/contrib/tcpdump/
H A Dprint-igrp.c48 u_int metric, mtu; local
62 metric = bandwidth + delay;
63 if (metric > 0xffffff)
64 metric = 0xffffff;
69 igr->igr_rel, igr->igr_ld, metric,
H A Dprint-dvmrp.c173 register int metric, done; local
212 metric = *bp++;
213 done = metric & 0x80;
214 metric &= 0x7f;
215 printf("\n\t %s metric %d", intoa(htonl(origin)),
216 metric);
263 register u_char metric; local
271 metric = *bp++;
279 ipaddr_string(bp), metric, thresh);
294 register u_char metric, thres local
[all...]
H A Dprint-ripng.c50 rip6_entry_print(register const struct netinfo6 *ni, int metric) argument
56 if (metric)
H A Dprint-babel.c337 u_short interval, seqno, metric; local
351 metric = EXTRACT_16BITS(message + 10);
352 printf("%s%s%s %s metric %u seqno %u interval %u",
357 metric, seqno, interval);
H A Dprint-eigrp.c145 u_int8_t metric[4]; member in struct:eigrp_tlv_ip_ext_t
186 u_int8_t metric[2]; member in struct:eigrp_tlv_at_ext_t
373 printf("\n\t origin-router %s, origin-as %u, origin-proto %s, flags [0x%02x], tag 0x%08x, metric %u",
379 EXTRACT_32BITS(tlv_ptr.eigrp_tlv_ip_ext->metric));
436 printf("\n\t origin-router %u, origin-as %u, origin-proto %s, flags [0x%02x], tag 0x%08x, metric %u",
442 EXTRACT_16BITS(tlv_ptr.eigrp_tlv_at_ext->metric));
H A Dprint-isoclns.c1581 /* print the 4-byte metric block which is common found in the old-style TLVs */
1971 u_int metric, status_byte, bit_length, byte_length, sublen, processed, subtlvtype, subtlvlen; local
1975 metric = EXTRACT_32BITS(tptr);
2032 metric);
/freebsd-9.3-release/contrib/groff/src/libs/libgroff/
H A Dfont.cpp468 void font::add_entry(int idx, const font_char_metric &metric) argument
478 ch[ch_used++] = metric;
725 font_char_metric metric; local
726 metric.height = 0;
727 metric.depth = 0;
728 metric.pre_math_space = 0;
729 metric.italic_correction = 0;
730 metric.subscript_correction = 0;
732 &metric.width, &metric
[all...]
/freebsd-9.3-release/sbin/routed/
H A Doutput.c57 char metric; /* adjust metrics by interface */ member in struct:__anon5486
407 * shutting down, admit only a bad metric.
446 char metric, pref; local
515 metric = RT->rt_metric;
582 * Notice spare routes with the same metric that we are about to
596 if (rts->rts_metric > metric
602 * toward its source with an infinite metric.
604 * better metric than we now have, then we should
615 || RT->rt_poison_metric >= metric
620 metric
[all...]
H A Dparms.c95 * Default poor-man's router discovery to a metric that will
97 * routes with metric 15.
174 int metric, n, lnum; local
217 /* {net | host} XX[/M] XX gateway XX metric DD [passive | external]\n */
221 " %64[^ / \t] metric %u %8s\n",
222 net_host, dname, gname, &metric, qual);
228 if (metric >= HOPCNT_INFINITY) {
229 msglog("bad metric in "_PATH_GATEWAYS" entry \"%s\"",
274 if (metric == 0)
275 metric
[all...]
H A Dtable.c74 * the same metric and next hop into a common route with a smaller netmask
250 * metric, it suppresses the target.
287 char metric,
312 nc_ag.ag_metric = metric;
402 ag->ag_metric = metric;
436 * same gateway and have the same metric.
472 * with the worse metric can be promoted.
504 ag->ag_metric = metric;
505 metric = x;
591 nag->ag_metric = metric;
283 ag_check(naddr dst, naddr mask, naddr gate, naddr nhop, char metric, char pref, u_int new_seqno, u_short tag, u_short state, void (*out)(struct ag_info *)) argument
676 rtioctl(int action, naddr dst, naddr gate, naddr mask, int metric, int flags) argument
1410 char metric, pref; local
[all...]
/freebsd-9.3-release/contrib/ntp/ntpd/
H A Drefclock_chu.c170 * m signal metric (0 - 100)
251 #define MINMETRIC 50 /* min channel metric (of 160) */
320 double metric; /* integrator sum */ member in struct:xmtr
344 struct xmtr xmtr[NCHAN]; /* station metric */
1350 * frame metric, it is considered valid. However, the timecode
1388 * If in sync and the signal metric is above threshold, the
1436 int metric; /* distance metric */ local
1458 metric = 0;
1471 metric
1533 double metric; local
[all...]
H A Drefclock_wwv.c492 double metric; /* signal quality metric */ member in struct:sync
1187 * When the channel metric reaches threshold and the second
1205 if (sp->metric >= TTHR && epoch == sp->mepoch % WWV_SEC)
1350 sp->metric = 0;
1352 sp->metric = wwv_metric(sp);
1357 sp->reach & 0xffff, sp->metric, sp->synmax,
1823 * the channel metric computed by the wwv_metric() routine.
1842 sp->metric = wwv_metric(sp);
1857 rp->metric
[all...]
/freebsd-9.3-release/lib/libdevstat/
H A Ddevstat.c94 devstat_metric metric; member in struct:devstat_args
1201 devstat_metric metric; local
1248 while ((metric = (devstat_metric)va_arg(ap, devstat_metric)) != 0) {
1250 if (metric == DSM_NONE)
1253 if (metric >= DSM_MAX) {
1255 "%s: metric %d is out of range", __func__,
1256 metric);
1261 switch (devstat_arg_list[metric].argtype) {
1277 if (devstat_arg_list[metric].argtype == DEVSTAT_ARG_SKIP)
1280 switch (metric) {
[all...]
/freebsd-9.3-release/contrib/openresolv/
H A Dresolvconf.in65 -m metric Give the added DNS information a metric
385 # Pad metric to 6 characters, so 5 is less than 10
/freebsd-9.3-release/sys/net/
H A Dif_mib.c124 DONTCOPY(metric);
H A Drtsock.c962 #define metric(f, e) if (which & (f)) out->e = in->e; macro
967 metric(RTV_MTU, rmx_mtu);
968 metric(RTV_WEIGHT, rmx_weight);
973 #undef metric macro
979 #define metric(e) out->e = in->e; macro
981 metric(rmx_mtu);
982 metric(rmx_weight);
986 #undef metric macro
/freebsd-9.3-release/sys/net80211/
H A Dieee80211_mesh.c1869 uint32_t metric; local
1871 metric = mesh_airtime_calc(ni);
1875 &metric);
2117 * mesh link metric request
2138 uint32_t *metric = args0; local
2143 "send LINK METRIC REPLY action: metric 0x%x", *metric);
2157 * mesh link metric reply
2160 * [tlv] mesh link metric
2164 frm = ieee80211_add_meshlmetric(frm, *metric);
2512 ieee80211_add_meshlmetric(uint8_t *frm, uint32_t metric) argument
[all...]

Completed in 144 milliseconds