summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorsarita patra <saritap@vmware.com>2022-04-27 10:26:54 +0200
committerSarita Patra <saritap@vmware.com>2022-07-06 11:41:47 +0200
commit4a8336cfa8434aeca22325f5c45ea755b0378aee (patch)
treefbecefa88dc5f0efcb2e81fc2bb602ff3420bf1e /pimd
parentpim6d: Adjust rpf_addr in pim_tib code (diff)
downloadfrr-4a8336cfa8434aeca22325f5c45ea755b0378aee.tar.xz
frr-4a8336cfa8434aeca22325f5c45ea755b0378aee.zip
pim6d: Handle rpf_addr in pim_if_addr_add()
Signed-off-by: sarita patra <saritap@vmware.com>
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim_iface.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c
index ebe33f6c1..73b6ca951 100644
--- a/pimd/pim_iface.c
+++ b/pimd/pim_iface.c
@@ -635,9 +635,7 @@ void pim_if_addr_add(struct connected *ifc)
with RNH address to receive update and add the
interface as nexthop. */
memset(&rpf, 0, sizeof(struct pim_rpf));
- rpf.rpf_addr.family = AF_INET;
- rpf.rpf_addr.prefixlen = IPV4_MAX_BITLEN;
- rpf.rpf_addr.u.prefix4 = ifc->address->u.prefix4;
+ rpf.rpf_addr = pim_addr_from_prefix(ifc->address);
pnc = pim_nexthop_cache_find(pim_ifp->pim, &rpf);
if (pnc)
pim_sendmsg_zebra_rnh(pim_ifp->pim, zclient,