summaryrefslogtreecommitdiff
path: root/eigrpd/eigrp_interface.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2017-08-27 19:21:55 +0200
committerGitHub <noreply@github.com>2017-08-27 19:21:55 +0200
commit3df31ebb0328b4b84fa11d5fbd956dcc30c44dfe (patch)
treea51f02b5cf6613366fc92799aa9db7cfa621e2a7 /eigrpd/eigrp_interface.c
parent272e15e72323530ed94163891405d4c4578488ea (diff)
parentcd6c573c697897dd73fb4bffeb176940af4582c2 (diff)
Merge pull request #1054 from dslicenc/eigrp-connected
eigrpd: add correct interface metrics when interface comes up
Diffstat (limited to 'eigrpd/eigrp_interface.c')
-rw-r--r--eigrpd/eigrp_interface.c1
1 files changed, 1 insertions, 0 deletions
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;