summaryrefslogtreecommitdiffstats
path: root/pimd/pim_rp.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-09-15 16:18:28 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:09 +0100
commit63b8f7a35e2a374081d563235cd617690339b425 (patch)
treecd8eef5bc551192eaa3c1cf6019a371152a95bf9 /pimd/pim_rp.c
parentpimd: Allow loopbacks to resolve (diff)
downloadfrr-63b8f7a35e2a374081d563235cd617690339b425.tar.xz
frr-63b8f7a35e2a374081d563235cd617690339b425.zip
pimd: Rework approach for needing nbrs
Pim sometimes needs the upstream rpf lookup to only take into account if we have a nbr out the selected interface or not. Move the code for this to a better spot so we can make a more intelligent decision here. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_rp.c')
-rw-r--r--pimd/pim_rp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c
index ae2ce6e47..b5c5ad55b 100644
--- a/pimd/pim_rp.c
+++ b/pimd/pim_rp.c
@@ -487,7 +487,7 @@ pim_rp_setup (void)
for (ALL_LIST_ELEMENTS_RO (qpim_rp_list, node, rp_info))
{
- if (pim_nexthop_lookup (&rp_info->rp.source_nexthop, rp_info->rp.rpf_addr.u.prefix4) != 0)
+ if (pim_nexthop_lookup (&rp_info->rp.source_nexthop, rp_info->rp.rpf_addr.u.prefix4, 1) != 0)
{
zlog_err ("Unable to lookup nexthop for rp specified");
ret++;
@@ -583,7 +583,7 @@ pim_rp_g (struct in_addr group)
if (rp_info)
{
- pim_nexthop_lookup(&rp_info->rp.source_nexthop, rp_info->rp.rpf_addr.u.prefix4);
+ pim_nexthop_lookup(&rp_info->rp.source_nexthop, rp_info->rp.rpf_addr.u.prefix4, 1);
return (&rp_info->rp);
}