]> git.puffer.fish Git - matthieu/frr.git/commitdiff
eigrpd: fix spelling of "bandwidth"
authorAndrew Lunn <andrew@lunn.ch>
Thu, 10 Aug 2017 22:24:24 +0000 (17:24 -0500)
committerAndrew Lunn <andrew@lunn.ch>
Thu, 10 Aug 2017 22:24:24 +0000 (17:24 -0500)
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>
eigrpd/eigrp_interface.c
eigrpd/eigrp_network.c
eigrpd/eigrp_packet.c
eigrpd/eigrp_structs.h

index 2312cc6eddbc0064938171630b18b4e02551c743..7f05e147038c17778d1dd79b32a51e70e2aa6a2a 100644 (file)
@@ -265,7 +265,7 @@ int eigrp_if_up(struct eigrp_interface *ei)
        thread_add_event(master, eigrp_hello_timer, ei, (1), NULL);
 
        /*Prepare metrics*/
-       metric.bandwith =
+       metric.bandwidth =
                eigrp_bandwidth_to_scaled(EIGRP_IF_PARAM(ei, bandwidth));
        metric.delay = eigrp_delay_to_scaled(EIGRP_IF_PARAM(ei, delay));
        metric.load = EIGRP_IF_PARAM(ei, load);
index 80610e04a7ae85450d8aefb9cb6b40a382ca7b4a..ec8806750b986e8439524df29d7d565f037fd8c4 100644 (file)
@@ -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)
index 3befd8a1189d16c22a1e99efff5a62b522e6c84d..dfc7463025d77a77b3a5b9a7f482b4a0f06a2bf6 100644 (file)
@@ -1141,7 +1141,7 @@ struct TLV_IPv4_Internal_type *eigrp_read_ipv4_tlv(struct stream *s)
        tlv->length = stream_getw(s);
        tlv->forward.s_addr = stream_getl(s);
        tlv->metric.delay = stream_getl(s);
-       tlv->metric.bandwith = stream_getl(s);
+       tlv->metric.bandwidth = stream_getl(s);
        tlv->metric.mtu[0] = stream_getc(s);
        tlv->metric.mtu[1] = stream_getc(s);
        tlv->metric.mtu[2] = stream_getc(s);
@@ -1210,7 +1210,7 @@ u_int16_t eigrp_add_internalTLV_to_stream(struct stream *s,
 
        /*Metric*/
        stream_putl(s, pe->reported_metric.delay);
-       stream_putl(s, pe->reported_metric.bandwith);
+       stream_putl(s, pe->reported_metric.bandwidth);
        stream_putc(s, pe->reported_metric.mtu[2]);
        stream_putc(s, pe->reported_metric.mtu[1]);
        stream_putc(s, pe->reported_metric.mtu[0]);
index 6b3a14abc5664671d8a42f3da83d347f1d9d966f..fd3e4b2014b352f8f591f7ad267091e6e693f1d6 100644 (file)
@@ -59,7 +59,7 @@ struct eigrp_master {
 
 struct eigrp_metrics {
        u_int32_t delay;
-       u_int32_t bandwith;
+       u_int32_t bandwidth;
        unsigned char mtu[3];
        u_char hop_count;
        u_char reliability;