forked from Mirror/frr
pimd: Do not allow 224.0.0.0/24 range in igmp join
224.0.0.0/24 cannot be used by igmp since this is reserved for routing protocols and other low-level topology discovery or maintenance protocols. Fixes: #10614 Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
This commit is contained in:
parent
52ddb8d545
commit
fcfd479d99
|
@ -31,6 +31,7 @@
|
|||
#include "pim_ssm.h"
|
||||
#include "pim_ssmpingd.h"
|
||||
#include "pim_vxlan.h"
|
||||
#include "pim_util.h"
|
||||
#include "log.h"
|
||||
#include "lib_errors.h"
|
||||
|
||||
|
@ -2833,6 +2834,14 @@ int lib_interface_gmp_address_family_static_group_create(
|
|||
ifp_name);
|
||||
return NB_ERR_VALIDATION;
|
||||
}
|
||||
|
||||
yang_dnode_get_ip(&group_addr, args->dnode, "./group-addr");
|
||||
if (pim_is_group_224_0_0_0_24(group_addr.ip._v4_addr)) {
|
||||
snprintf(
|
||||
args->errmsg, args->errmsg_len,
|
||||
"Groups within 224.0.0.0/24 are reserved and cannot be joined");
|
||||
return NB_ERR_VALIDATION;
|
||||
}
|
||||
break;
|
||||
case NB_EV_PREPARE:
|
||||
case NB_EV_ABORT:
|
||||
|
|
Loading…
Reference in a new issue