summaryrefslogtreecommitdiffstats
path: root/ospfd/ospfd.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2021-03-30 17:57:33 +0200
committerGitHub <noreply@github.com>2021-03-30 17:57:33 +0200
commitea631ac834ce25e6cb1978df50005da59f6e0a36 (patch)
tree7b6f6139082d822435ffa0404eb2f4277b9a61c5 /ospfd/ospfd.c
parentMerge pull request #8372 from FRRouting/revert-8216-add_rd_all (diff)
parentospfd: Max multipath config support (diff)
downloadfrr-ea631ac834ce25e6cb1978df50005da59f6e0a36.tar.xz
frr-ea631ac834ce25e6cb1978df50005da59f6e0a36.zip
Merge pull request #8058 from rgirada/ospf-ecmp
ospfd: Max multipath config support
Diffstat (limited to 'ospfd/ospfd.c')
-rw-r--r--ospfd/ospfd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c
index b1b832407..259209a73 100644
--- a/ospfd/ospfd.c
+++ b/ospfd/ospfd.c
@@ -367,6 +367,9 @@ struct ospf *ospf_new_alloc(unsigned short instance, const char *name)
new->maxage_lsa = route_table_init();
new->t_maxage_walker = NULL;
+ /* Max paths initialization */
+ new->max_multipath = MULTIPATH_NUM;
+
/* Distance table init. */
new->distance_table = route_table_init();
@@ -887,6 +890,7 @@ static void ospf_finish_final(struct ospf *ospf)
close(ospf->fd);
stream_free(ospf->ibuf);
ospf->fd = -1;
+ ospf->max_multipath = MULTIPATH_NUM;
ospf_delete(ospf);
if (ospf->name) {