diff options
author | Sai Gomathi <nsaigomathi@vmware.com> | 2021-10-26 14:55:23 +0200 |
---|---|---|
committer | Sai Gomathi <nsaigomathi@vmware.com> | 2021-10-26 16:35:55 +0200 |
commit | 34abbcc4b16438c076262e9b4571e5a27efd540b (patch) | |
tree | b5734d3c46e495954aa5e65d809ad5de4c3213d4 /pimd/pim_join.c | |
parent | Merge pull request #9873 from bhinin/dynamic_peer_count_reset (diff) | |
download | frr-34abbcc4b16438c076262e9b4571e5a27efd540b.tar.xz frr-34abbcc4b16438c076262e9b4571e5a27efd540b.zip |
pimd: modifications in PIM joins
Problem :
=======
(*,G) created on transit node where same groups are defined as SSM
At present FRR has SSM checks for IGMP report, but SSM check is missing for PIM join.
Fix :
===
When an interface receives the PIM (*,G)join with G as SSM group, then PIMd supposed to discard that join.
There is no need to maintain PIM state for this group.
Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd/pim_join.c')
-rw-r--r-- | pimd/pim_join.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pimd/pim_join.c b/pimd/pim_join.c index c7a80ca8e..652b27476 100644 --- a/pimd/pim_join.c +++ b/pimd/pim_join.c @@ -39,6 +39,7 @@ #include "pim_rp.h" #include "pim_jp_agg.h" #include "pim_util.h" +#include "pim_ssm.h" static void on_trace(const char *label, struct interface *ifp, struct in_addr src) @@ -55,6 +56,7 @@ static void recv_join(struct interface *ifp, struct pim_neighbor *neigh, struct prefix_sg *sg, uint8_t source_flags) { struct pim_interface *pim_ifp = NULL; + char buf[PREFIX_STRLEN]; if (PIM_DEBUG_PIM_TRACE) { char up_str[INET_ADDRSTRLEN]; @@ -105,6 +107,14 @@ static void recv_join(struct interface *ifp, struct pim_neighbor *neigh, return; } + if (pim_is_grp_ssm(pim_ifp->pim, sg->grp)) { + zlog_warn( + "%s: Specified Group(%s) in join is now in SSM, not allowed to create PIM state", + __func__, + inet_ntop(AF_INET, &sg->grp, buf, sizeof(buf))); + return; + } + sg->src.s_addr = INADDR_ANY; } |