summaryrefslogtreecommitdiffstats
path: root/src/plugins/igmp/input.c
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2018-06-28 12:27:52 +0200
committerDamjan Marion <dmarion@me.com>2018-06-29 10:00:17 +0000
commit91ce84374167e2b23557aae4a2472acfc6fa7c09 (patch)
tree91aca00b828464ca5e601ef6ceb62ca38f80532f /src/plugins/igmp/input.c
parente95d1a1a081e96989740eb1b46ed83ffb6fa0cc0 (diff)
igmp: bugfix and minor improvements
Change-Id: I8d284117a668dc55c06a6d68fe358a3d7e26c738 Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/plugins/igmp/input.c')
-rw-r--r--src/plugins/igmp/input.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/igmp/input.c b/src/plugins/igmp/input.c
index 4322f50b70c..829317d4543 100644
--- a/src/plugins/igmp/input.c
+++ b/src/plugins/igmp/input.c
@@ -410,7 +410,7 @@ igmp_parse_report (vlib_main_t * vm, vlib_node_runtime_t * node,
if (config)
{
config->flags |= IGMP_CONFIG_FLAG_QUERY_RESP_RECVED;
- if (config->cli_api_configured)
+ if (config->flags & IGMP_CONFIG_FLAG_CLI_API_CONFIGURED)
{
IGMP_DBG ("Interface %u has (S,G)s configured by CLI/API",
sw_if_index);
@@ -452,6 +452,10 @@ igmp_parse_report (vlib_main_t * vm, vlib_node_runtime_t * node,
src_addr++;
}
}
+ else
+ {
+ j = clib_net_to_host_u16 (igmp_group->n_src_addresses);
+ }
}
else if (igmp_group->type ==
IGMP_MEMBERSHIP_GROUP_mode_is_filter_exclude)