]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_rp.c
pimd,pim6d: Set RP to true if the address matches, ignore prefix-length
authorMobashshera Rasool <mrasool@vmware.com>
Tue, 12 Jul 2022 08:11:12 +0000 (01:11 -0700)
committerMobashshera Rasool <mrasool@vmware.com>
Wed, 13 Jul 2022 05:51:27 +0000 (22:51 -0700)
commitc6c615c12b77e45eb09caf442e622dfd1b2db7c1
tree8cc33200097e0d2c582bb0a3c40d4144ce67a58e
parentb343e3a00cde36353f3b4aa5dc40c5334e0d91b8
pimd,pim6d: Set RP to true if the address matches, ignore prefix-length

The API pim_rp_check_interface_addrs checks if the RP address matches
with the primary address then it returns true.
In case of PIMv4 this condition is true, therefore the router becomes RP.
But in case of PIMv6, this condition does not pass because primary address
for PIMv6 is link-local address.

Also PIMv4 allows secondary addresses to be used as RP
if it is a host route in case primary does not match.

Fixing it by only checking the configured
RP address with the interface address and ignoring the prefix
length since it does not matter.

Fixes: #11335
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
pimd/pim_rp.c