diff options
| author | Andrew Lunn <andrew@lunn.ch> | 2017-08-10 17:24:24 -0500 | 
|---|---|---|
| committer | Andrew Lunn <andrew@lunn.ch> | 2017-08-10 17:24:24 -0500 | 
| commit | b1968f83da6e5a6d865d09dcb59a0ec7b89c0f43 (patch) | |
| tree | ae67e8381598ede603100dedd68de3c60616b0a9 /eigrpd/eigrp_network.c | |
| parent | c93d2f48451401121d4f647aae3fe61e44fc085c (diff) | |
eigrpd: fix spelling of "bandwidth"
There are a number of spelling errors in eigrp. But this one is
particular annoying because it is a variable name, not in a comment.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'eigrpd/eigrp_network.c')
| -rw-r--r-- | eigrpd/eigrp_network.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/eigrpd/eigrp_network.c b/eigrpd/eigrp_network.c index 80610e04a7..ec8806750b 100644 --- a/eigrpd/eigrp_network.c +++ b/eigrpd/eigrp_network.c @@ -392,9 +392,9 @@ u_int32_t eigrp_calculate_metrics(struct eigrp *eigrp,  	// {K1*BW+[(K2*BW)/(256-load)]+(K3*delay)}*{K5/(reliability+K4)}  	if (eigrp->k_values[0]) -		temp_metric += (eigrp->k_values[0] * metric.bandwith); +		temp_metric += (eigrp->k_values[0] * metric.bandwidth);  	if (eigrp->k_values[1]) -		temp_metric += ((eigrp->k_values[1] * metric.bandwith) +		temp_metric += ((eigrp->k_values[1] * metric.bandwidth)  				/ (256 - metric.load));  	if (eigrp->k_values[2])  		temp_metric += (eigrp->k_values[2] * metric.delay); @@ -425,9 +425,9 @@ u_int32_t eigrp_calculate_total_metrics(struct eigrp *eigrp,  	u_int32_t bw =  		eigrp_bandwidth_to_scaled(EIGRP_IF_PARAM(entry->ei, bandwidth)); -	entry->total_metric.bandwith = entry->total_metric.bandwith > bw +	entry->total_metric.bandwidth = entry->total_metric.bandwidth > bw  					       ? bw -					       : entry->total_metric.bandwith; +					       : entry->total_metric.bandwidth;  	return eigrp_calculate_metrics(eigrp, entry->total_metric);  } @@ -435,7 +435,7 @@ u_int32_t eigrp_calculate_total_metrics(struct eigrp *eigrp,  u_char eigrp_metrics_is_same(struct eigrp_metrics metric1,  			     struct eigrp_metrics metric2)  { -	if ((metric1.bandwith == metric2.bandwith) +	if ((metric1.bandwidth == metric2.bandwidth)  	    && (metric1.delay == metric2.delay)  	    && (metric1.hop_count == metric2.hop_count)  	    && (metric1.load == metric2.load)  | 
