summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-03-02 08:54:18 +0100
committerGitHub <noreply@github.com>2023-03-02 08:54:18 +0100
commit521af5ffeeb37c9ed9e36b6a6bf9bd9ec56420ac (patch)
treeac601e9cdd5514fd9dffd2d8107f0af8f4c7a365 /pimd
parentMerge pull request #12921 from donaldsharp/pim_regiface_crash (diff)
parentpimd, pim6d: Don't track nexthop for RP 0.0.0.0 & 0::0 (diff)
downloadfrr-521af5ffeeb37c9ed9e36b6a6bf9bd9ec56420ac.tar.xz
frr-521af5ffeeb37c9ed9e36b6a6bf9bd9ec56420ac.zip
Merge pull request #12903 from patrasar/pim_rp_nexthop_fix
pimd, pim6d: Don't track nexthop for RP 0.0.0.0 & 0::0
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim_rp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c
index d59124ceb..e2ee6656d 100644
--- a/pimd/pim_rp.c
+++ b/pimd/pim_rp.c
@@ -1066,6 +1066,14 @@ struct pim_rpf *pim_rp_g(struct pim_instance *pim, pim_addr group)
if (rp_info) {
pim_addr nht_p;
+ if (pim_addr_is_any(rp_info->rp.rpf_addr)) {
+ if (PIM_DEBUG_PIM_NHT_RP)
+ zlog_debug(
+ "%s: Skipping NHT Register since RP is not configured for the group %pPA",
+ __func__, &group);
+ return &rp_info->rp;
+ }
+
/* Register addr with Zebra NHT */
nht_p = rp_info->rp.rpf_addr;
if (PIM_DEBUG_PIM_NHT_RP)