Lines Matching defs:metric
55 get_metric (u_char *metric)
58 m = metric[0];
59 m = (m << 8) + metric[1];
60 m = (m << 8) + metric[2];
1079 u_int32_t metric;
1082 /* Put 0 metric. TOS metric is not supported. */
1083 metric = htonl (metric_value);
1084 mp = (char *) &metric;
1092 u_int32_t metric)
1104 /* Set metric. */
1105 stream_put_ospf_metric (s, metric);
1110 u_int32_t metric, struct in_addr id)
1127 ospf_summary_lsa_body_set (s, p, metric);
1148 ospf_summary_lsa_originate (struct prefix_ipv4 *p, u_int32_t metric,
1157 new = ospf_summary_lsa_new (area, (struct prefix *) p, metric, id);
1190 new = ospf_summary_lsa_new (lsa->area, &p, GET_METRIC (sl->metric),
1219 u_int32_t metric)
1231 /* Set metric. */
1232 stream_put_ospf_metric (s, metric);
1237 u_int32_t metric, struct in_addr id)
1254 ospf_summary_asbr_lsa_body_set (s, p, metric);
1275 ospf_summary_asbr_lsa_originate (struct prefix_ipv4 *p, u_int32_t metric,
1284 new = ospf_summary_asbr_lsa_new (area, (struct prefix *) p, metric, id);
1317 new = ospf_summary_asbr_lsa_new (lsa->area, &p, GET_METRIC (sl->metric),
1475 /* Put type of external metric. */
1478 /* Put 0 metric. TOS metric is not supported. */
1580 /* Put type of external metric. */
1583 /* Put 0 metric. TOS metric is not supported. */