From cd6c573c697897dd73fb4bffeb176940af4582c2 Mon Sep 17 00:00:00 2001 From: Don Slice Date: Sat, 26 Aug 2017 15:51:43 -0400 Subject: [PATCH] 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 --- eigrpd/eigrp_interface.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5