From: Donald Sharp Date: Mon, 6 Jun 2016 16:27:11 +0000 (-0400) Subject: pimd: Allow (*,G) igmp joins to work. X-Git-Tag: frr-2.0-rc1~614^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cab8707e0a209dcc20c8c650a6eccc09700eb402;p=matthieu%2Ffrr.git pimd: Allow (*,G) igmp joins to work. Start the implementation of accepting (*,G) igmpv3 joins. Ticket: CM-7894 Signed-off-by: Donald Sharp --- diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c index eaf1b08078..989054636a 100644 --- a/pimd/pim_zebra.c +++ b/pimd/pim_zebra.c @@ -702,14 +702,20 @@ void pim_zebra_init(char *zebra_sock_path) void igmp_anysource_forward_start(struct igmp_group *group) { + struct igmp_source *source; + struct in_addr src_addr = { .s_addr = 0 }; /* Any source (*,G) is forwarded only if mode is EXCLUDE {empty} */ zassert(group->group_filtermode_isexcl); zassert(listcount(group->group_source_list) < 1); - if (PIM_DEBUG_IGMP_TRACE) { - zlog_debug("%s %s: UNIMPLEMENTED", - __FILE__, __PRETTY_FUNCTION__); - } + source = source_new (group, src_addr); + if (!source) + { + zlog_warn ("%s: Failure to create * source", __PRETTY_FUNCTION__); + return; + } + + igmp_source_forward_start (source); } void igmp_anysource_forward_stop(struct igmp_group *group)