summaryrefslogtreecommitdiffstats
path: root/ripd/rip_main.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-05-17 21:47:56 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-05-18 20:32:32 +0200
commit1b839d486a8a392f9122bb5483b26540603e7550 (patch)
treedc4023e0886cbc721c03226280c9e2464ac27964 /ripd/rip_main.c
parentMerge pull request #13529 from pguibert6WIND/bgp_vpnv6_per_nexthop_fix (diff)
downloadfrr-1b839d486a8a392f9122bb5483b26540603e7550.tar.xz
frr-1b839d486a8a392f9122bb5483b26540603e7550.zip
ripd: Make sure we do not overuse higher values for ECMP count
Use a minimum value of a CLI version and a value of Zebra capabilities. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'ripd/rip_main.c')
-rw-r--r--ripd/rip_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ripd/rip_main.c b/ripd/rip_main.c
index 0e26662cd..ac358ebba 100644
--- a/ripd/rip_main.c
+++ b/ripd/rip_main.c
@@ -34,6 +34,8 @@ static struct option longopts[] = {{0}};
/* ripd privileges */
zebra_capabilities_t _caps_p[] = {ZCAP_NET_RAW, ZCAP_BIND, ZCAP_SYS_ADMIN};
+uint32_t zebra_ecmp_count = MULTIPATH_NUM;
+
struct zebra_privs_t ripd_privs = {
#if defined(FRR_USER)
.user = FRR_USER,