summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_network.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-04-27 04:10:33 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-04-27 04:10:33 +0200
commit838cf8aba548d8fae9ddfb4313dd361f1047865a (patch)
treea0a6410a6073014c9b45a95ff8b4563e767eb639 /eigrpd/eigrp_network.c
parenteigrpd: Add missing eigrp_fsm.h to 'make dist' (diff)
downloadfrr-838cf8aba548d8fae9ddfb4313dd361f1047865a.tar.xz
frr-838cf8aba548d8fae9ddfb4313dd361f1047865a.zip
eigrpd: Switch u_int64_t -> uint64_t
Apparently u_int64_t is not available (or we don't pull the right headers in for solaris based systems ). Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_network.c')
-rw-r--r--eigrpd/eigrp_network.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eigrpd/eigrp_network.c b/eigrpd/eigrp_network.c
index 9898d1692..dff7f2727 100644
--- a/eigrpd/eigrp_network.c
+++ b/eigrpd/eigrp_network.c
@@ -390,7 +390,7 @@ eigrp_network_unset(struct eigrp *eigrp, struct prefix_ipv4 *p)
u_int32_t
eigrp_calculate_metrics(struct eigrp *eigrp, struct eigrp_metrics *metric)
{
- u_int64_t temp_metric;
+ uint64_t temp_metric;
temp_metric = 0;
if(metric->delay == EIGRP_MAX_METRIC)
@@ -424,8 +424,8 @@ eigrp_calculate_total_metrics(struct eigrp *eigrp,
struct eigrp_neighbor_entry *entry)
{
entry->total_metric = entry->reported_metric;
- u_int64_t temp_delay = (u_int64_t) entry->total_metric.delay
- + (u_int64_t) EIGRP_IF_PARAM (entry->ei, delay);
+ uint64_t temp_delay = (uint64_t) entry->total_metric.delay
+ + (uint64_t) EIGRP_IF_PARAM (entry->ei, delay);
entry->total_metric.delay =
temp_delay > EIGRP_MAX_METRIC ? EIGRP_MAX_METRIC : (u_int32_t) temp_delay;