mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-24 16:33:40 +00:00
Merge pull request #10631 from FRRouting/mergify/bp/dev/8.2/pr-10615
pimd: Do not allow 224.0.0.0/24 range in igmp join (backport #10615)
This commit is contained in:
commit
fa2713e7b5
@ -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 New Issue
Block a user