diff options
author | Don Slice <dslice@cumulusnetworks.com> | 2017-08-26 21:51:43 +0200 |
---|---|---|
committer | Don Slice <dslice@cumulusnetworks.com> | 2017-08-26 21:55:29 +0200 |
commit | cd6c573c697897dd73fb4bffeb176940af4582c2 (patch) | |
tree | a7bc58b305210dc601ae6a54341413f28708cce6 /eigrpd/eigrp_interface.c | |
parent | Merge pull request #1049 from opensourcerouting/openbsd-warnings (diff) | |
download | frr-cd6c573c697897dd73fb4bffeb176940af4582c2.tar.xz frr-cd6c573c697897dd73fb4bffeb176940af4582c2.zip |
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 <dslice@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_interface.c')
-rw-r--r-- | eigrpd/eigrp_interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/eigrpd/eigrp_interface.c b/eigrpd/eigrp_interface.c index ae9ec293c..aa5951600 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; |