diff options
author | Mark Stapp <mjs@voltanet.io> | 2021-03-30 17:57:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 17:57:33 +0200 |
commit | ea631ac834ce25e6cb1978df50005da59f6e0a36 (patch) | |
tree | 7b6f6139082d822435ffa0404eb2f4277b9a61c5 /ospfd/ospfd.c | |
parent | Merge pull request #8372 from FRRouting/revert-8216-add_rd_all (diff) | |
parent | ospfd: Max multipath config support (diff) | |
download | frr-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.c | 4 |
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) { |