summaryrefslogtreecommitdiff
path: root/eigrpd/eigrp_network.c
diff options
context:
space:
mode:
authorRenato Westphal <renatowestphal@gmail.com>2017-04-27 14:55:23 -0300
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-05-13 13:08:00 -0400
commit63863c4797d0f41f5369b37285de78259b38742f (patch)
tree818d851f08e56571dc26a938a6c9f76fda46bf97 /eigrpd/eigrp_network.c
parent76220653492a3eb9eadc3d1d78a1a4bfbc1b5ece (diff)
eigrpd: Diverse Fixes
* Correct the metric calculation as well as the default metrics; * Do not show invalid routes in the "show ip eigrp topology". * Add support to VRFs; * When downloading a neighbor remove the related routes; * Fix bugs in the parser of packages they were creating Invalid default routes; * Add and remove routes in the zebra; * Add command "on router eigrp AS"; * Make "delay" and "bandwitch" commands work as well as Display them in running config; * Add "no" version of several commands; * Fix a serious momory leaks; * Fix segfault when there is no 'successor' route to a Given prefix; * Other minor corrections; Signed-off-by: Renato Westphal <renatowestphal@gmail.com> Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_network.c')
-rw-r--r--eigrpd/eigrp_network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eigrpd/eigrp_network.c b/eigrpd/eigrp_network.c
index dff7f27277..b8f21f1e86 100644
--- a/eigrpd/eigrp_network.c
+++ b/eigrpd/eigrp_network.c
@@ -425,11 +425,11 @@ eigrp_calculate_total_metrics(struct eigrp *eigrp,
{
entry->total_metric = entry->reported_metric;
uint64_t temp_delay = (uint64_t) entry->total_metric.delay
- + (uint64_t) EIGRP_IF_PARAM (entry->ei, delay);
+ + (uint64_t) eigrp_delay_to_scaled (EIGRP_IF_PARAM (entry->ei, delay));
entry->total_metric.delay =
temp_delay > EIGRP_MAX_METRIC ? EIGRP_MAX_METRIC : (u_int32_t) temp_delay;
- u_int32_t bw = EIGRP_IF_PARAM (entry->ei,bandwidth);
+ u_int32_t bw = eigrp_bandwidth_to_scaled (EIGRP_IF_PARAM (entry->ei,bandwidth));
entry->total_metric.bandwith =
entry->total_metric.bandwith > bw ? bw : entry->total_metric.bandwith;