mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
pimd: Dissallow obvious addresses from being the RP
When configuring a RP, dissallow the choice of 0.0.0.0 or 255.255.255.255 as the address as that they make no sense what so ever. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
839bdd0f45
commit
1e0d1c25e5
@ -457,6 +457,10 @@ int pim_rp_new(struct pim_instance *pim, struct in_addr rp_addr,
|
|||||||
struct pim_upstream *up;
|
struct pim_upstream *up;
|
||||||
struct listnode *upnode;
|
struct listnode *upnode;
|
||||||
|
|
||||||
|
if (rp_addr.s_addr == INADDR_ANY ||
|
||||||
|
rp_addr.s_addr == INADDR_NONE)
|
||||||
|
return PIM_RP_BAD_ADDRESS;
|
||||||
|
|
||||||
rp_info = XCALLOC(MTYPE_PIM_RP, sizeof(*rp_info));
|
rp_info = XCALLOC(MTYPE_PIM_RP, sizeof(*rp_info));
|
||||||
|
|
||||||
rp_info->rp.rpf_addr.family = AF_INET;
|
rp_info->rp.rpf_addr.family = AF_INET;
|
||||||
|
Loading…
Reference in New Issue
Block a user