summaryrefslogtreecommitdiffstats
path: root/pimd/pim_nht.c
diff options
context:
space:
mode:
authorsarita patra <saritap@vmware.com>2022-02-25 14:17:08 +0100
committersarita patra <saritap@vmware.com>2022-03-01 18:45:56 +0100
commitcc144e8b6b11e7e44f34871dd24b1ab21107b4b8 (patch)
treecc3c985c57a6ff7393d38c422e5ebc6e556f1ac6 /pimd/pim_nht.c
parentMerge pull request #10615 from mobash-rasool/fixes (diff)
downloadfrr-cc144e8b6b11e7e44f34871dd24b1ab21107b4b8.tar.xz
frr-cc144e8b6b11e7e44f34871dd24b1ab21107b4b8.zip
pimd: replace inaddr_none with PIMADDR_ANY
We can use PIMADDR_ANY instead of INADDR_NONE to initalize rp->rpf_addr when there is no rp configured for group_all. Signed-off-by: sarita patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_nht.c')
-rw-r--r--pimd/pim_nht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_nht.c b/pimd/pim_nht.c
index beaa5c802..263deb106 100644
--- a/pimd/pim_nht.c
+++ b/pimd/pim_nht.c
@@ -426,7 +426,7 @@ static void pim_update_rp_nh(struct pim_instance *pim,
/*Traverse RP list and update each RP Nexthop info */
for (ALL_LIST_ELEMENTS_RO(pnc->rp_list, node, rp_info)) {
- if (rp_info->rp.rpf_addr.u.prefix4.s_addr == INADDR_NONE)
+ if (pim_rpf_addr_is_inaddr_any(&rp_info->rp))
continue;
// Compute PIM RPF using cached nexthop