u_int32_t
eigrp_bandwidth_to_scaled (u_int32_t bandwidth)
{
- u_int64_t temp_bandwidth = (256ull * 10000000) / bandwidth;
+ uint64_t temp_bandwidth = (256ull * 10000000) / bandwidth;
temp_bandwidth =
temp_bandwidth < EIGRP_MAX_METRIC ? temp_bandwidth : EIGRP_MAX_METRIC;
u_int32_t
eigrp_scaled_to_bandwidth (u_int32_t scaled)
{
- u_int64_t temp_scaled = scaled * (256ull * 10000000);
+ uint64_t temp_scaled = scaled * (256ull * 10000000);
temp_scaled =
temp_scaled < EIGRP_MAX_METRIC ? temp_scaled : EIGRP_MAX_METRIC;
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)
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;
struct list *topology_table;
- u_int64_t serno; /* Global serial number counter for topology entry changes*/
- u_int64_t serno_last_update; /* Highest serial number of information send by last update*/
+ uint64_t serno; /* Global serial number counter for topology entry changes*/
+ uint64_t serno_last_update; /* Highest serial number of information send by last update*/
struct list *topology_changes_internalIPV4;
struct list *topology_changes_externalIPV4;
//If network type is REMOTE_EXTERNAL, pointer will have reference to its external TLV
struct TLV_IPv4_External_type *extTLV;
- u_int64_t serno; /*Serial number for this entry. Increased with each change of entry*/
+ uint64_t serno; /*Serial number for this entry. Increased with each change of entry*/
};
/* EIGRP Topology table record structure */
for (ALL_LIST_ELEMENTS_RO(dest->entries, node, entry))
{
- if ((entry->distance <= (u_int64_t)(dest->distance*eigrp->variance)) &&
+ if ((entry->distance <= (uint64_t)(dest->distance*eigrp->variance)) &&
entry->distance != EIGRP_MAX_METRIC) // is successor
{
entry->flags |= EIGRP_NEIGHBOR_ENTRY_SUCCESSOR_FLAG;