summaryrefslogtreecommitdiff
path: root/lib/command_graph.c
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2022-07-12 01:11:12 -0700
committerMobashshera Rasool <mrasool@vmware.com>2022-07-12 22:51:27 -0700
commitc6c615c12b77e45eb09caf442e622dfd1b2db7c1 (patch)
tree8cc33200097e0d2c582bb0a3c40d4144ce67a58e /lib/command_graph.c
parentb343e3a00cde36353f3b4aa5dc40c5334e0d91b8 (diff)
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>
Diffstat (limited to 'lib/command_graph.c')
0 files changed, 0 insertions, 0 deletions