summaryrefslogtreecommitdiffstats
path: root/pimd/pimd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-06-22 14:12:04 +0200
committerDonald Sharp <sharpd@nvidia.com>2022-06-23 19:29:19 +0200
commit75700af6027073a2ede58b429ec49b6beb05dcb3 (patch)
tree18a84e3f929f681e2c2232fca177a72f49febdc6 /pimd/pimd.c
parentbgpd: Cleanup pointer assignment so compiler doesn't get confused (diff)
downloadfrr-75700af6027073a2ede58b429ec49b6beb05dcb3.tar.xz
frr-75700af6027073a2ede58b429ec49b6beb05dcb3.zip
pimd: Limit pim's ecmp to what zebra tells us is the multipath
Zebra can be setup to use a value that is less than MULTIPATH_NUM. When pimd connects to zebra, zebra will inform pim about the MULTIPATH_NUM used. Let's use that value for figuring out our multipath value. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to '')
-rw-r--r--pimd/pimd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pimd.c b/pimd/pimd.c
index 58e874fd1..a3be3f66e 100644
--- a/pimd/pimd.c
+++ b/pimd/pimd.c
@@ -100,6 +100,7 @@ void pim_router_init(void)
router->debugs = 0;
router->master = frr_init();
router->t_periodic = PIM_DEFAULT_T_PERIODIC;
+ router->multipath = MULTIPATH_NUM;
/*
RFC 4601: 4.6.3. Assert Metrics