diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-06-22 08:12:04 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-06-23 13:29:19 -0400 | 
| commit | 75700af6027073a2ede58b429ec49b6beb05dcb3 (patch) | |
| tree | 18a84e3f929f681e2c2232fca177a72f49febdc6 /pimd/pim_zlookup.c | |
| parent | 8b5153aab09695f19eed74b141919487369b58c2 (diff) | |
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 'pimd/pim_zlookup.c')
| -rw-r--r-- | pimd/pim_zlookup.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c index a3978bd0d2..28777e4947 100644 --- a/pimd/pim_zlookup.c +++ b/pimd/pim_zlookup.c @@ -211,7 +211,7 @@ static int zclient_read_nexthop(struct pim_instance *pim,  	metric = stream_getl(s);  	nexthop_num = stream_getc(s); -	if (nexthop_num < 1) { +	if (nexthop_num < 1 || nexthop_num > router->multipath) {  		if (PIM_DEBUG_PIM_NHT_DETAIL)  			zlog_debug("%s: socket %d bad nexthop_num=%d", __func__,  				   zlookup->sock, nexthop_num);  | 
