From: Don Slice Date: Sat, 26 Aug 2017 19:51:43 +0000 (-0400) Subject: eigrpd: add correct interface metrics when interface comes up X-Git-Tag: frr-4.0-dev~370^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cd6c573c697897dd73fb4bffeb176940af4582c2;p=mirror%2Ffrr.git eigrpd: add correct interface metrics when interface comes up Problem noticed where we were not sending the correct metric values to our peers for connected interfaces. Found that we were not storing these values on the structure used to send the update packets. Signed-off-by: Don Slice --- diff --git a/eigrpd/eigrp_interface.c b/eigrpd/eigrp_interface.c index ae9ec293ce..aa59516002 100644 --- a/eigrpd/eigrp_interface.c +++ b/eigrpd/eigrp_interface.c @@ -307,6 +307,7 @@ int eigrp_if_up(struct eigrp_interface *ei) pe->nt = EIGRP_TOPOLOGY_TYPE_CONNECTED; ne->prefix = pe; + pe->reported_metric = metric; pe->state = EIGRP_FSM_STATE_PASSIVE; pe->fdistance = eigrp_calculate_metrics(eigrp, metric); pe->req_action |= EIGRP_FSM_NEED_UPDATE;