mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 06:14:35 +00:00
pimd: Allow secondary address comparisons to work
The secondary address comparison done to determine if we are an RP for a specified address was comparing A.B.C.D/32 to A.B.C.D/0 because when we created the rp_info we were not setting the prefixlen Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
db64fac494
commit
ad5233c886
@ -98,6 +98,7 @@ pim_rp_init (void)
|
||||
str2prefix ("224.0.0.0/4", &rp_info->group);
|
||||
rp_info->group.family = AF_INET;
|
||||
rp_info->rp.rpf_addr.family = AF_INET;
|
||||
rp_info->rp.rpf_addr.prefixlen = IPV4_MAX_PREFIXLEN;
|
||||
rp_info->rp.rpf_addr.u.prefix4.s_addr = INADDR_NONE;
|
||||
tail = rp_info;
|
||||
|
||||
@ -306,6 +307,7 @@ pim_rp_new (const char *rp, const char *group_range, const char *plist)
|
||||
}
|
||||
|
||||
rp_info->rp.rpf_addr.family = AF_INET;
|
||||
rp_info->rp.rpf_addr.prefixlen = IPV4_MAX_PREFIXLEN;
|
||||
result = inet_pton (rp_info->rp.rpf_addr.family, rp, &rp_info->rp.rpf_addr.u.prefix4);
|
||||
|
||||
if (result <= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user