summaryrefslogtreecommitdiffstats
path: root/pimd/pim_rpf.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-09-14 17:24:06 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:09 +0100
commit7b2c4d167e1b6ac3e8391f2492cfadc756126542 (patch)
treeb66fe1abd01de95e46684d84b9ff7e1425b67924 /pimd/pim_rpf.c
parentPIM: json support for "show ip pim" commands (diff)
downloadfrr-7b2c4d167e1b6ac3e8391f2492cfadc756126542.tar.xz
frr-7b2c4d167e1b6ac3e8391f2492cfadc756126542.zip
pimd: Use MULTIPATH_NUM for maxpaths
When looking up nexthops for a address, just use the MULTIPATH_NUM as the number allowed to receive instead of an arbitrary limit of 20 paths. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_rpf.c')
-rw-r--r--pimd/pim_rpf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pimd/pim_rpf.c b/pimd/pim_rpf.c
index 6b4dd111e..2e9316269 100644
--- a/pimd/pim_rpf.c
+++ b/pimd/pim_rpf.c
@@ -39,15 +39,15 @@ static struct in_addr pim_rpf_find_rpf_addr(struct pim_upstream *up);
int pim_nexthop_lookup(struct pim_nexthop *nexthop, struct in_addr addr)
{
- struct pim_zlookup_nexthop nexthop_tab[PIM_NEXTHOP_IFINDEX_TAB_SIZE];
+ struct pim_zlookup_nexthop nexthop_tab[MULTIPATH_NUM];
int num_ifindex;
struct interface *ifp;
int first_ifindex;
- memset (nexthop_tab, 0, sizeof (struct pim_zlookup_nexthop) * PIM_NEXTHOP_IFINDEX_TAB_SIZE);
+ memset (nexthop_tab, 0, sizeof (struct pim_zlookup_nexthop) * MULTIPATH_NUM);
num_ifindex = zclient_lookup_nexthop(nexthop_tab,
- PIM_NEXTHOP_IFINDEX_TAB_SIZE,
+ MULTIPATH_NUM,
addr, PIM_NEXTHOP_LOOKUP_MAX);
if (num_ifindex < 1) {
char addr_str[100];