X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Figmp%2Figmp_query.c;h=c75b01a295bc7023ed847e94880b8493e1493938;hb=61717cc38;hp=1513023df2e116139cb03217c7e32e6d113be017;hpb=947ea6222dad1ef04595c34273e9231395aef443;p=vpp.git diff --git a/src/plugins/igmp/igmp_query.c b/src/plugins/igmp/igmp_query.c index 1513023df2e..c75b01a295b 100644 --- a/src/plugins/igmp/igmp_query.c +++ b/src/plugins/igmp/igmp_query.c @@ -36,6 +36,10 @@ igmp_query_mk_source_list (const igmp_membership_query_v3_t * q) const ip4_address_t *s; u16 ii, n; + /* + * we validated this packet when we accepted it in the DP, so + * this number is safe to use + */ n = clib_net_to_host_u16 (q->n_src_addresses); if (0 == n) @@ -78,7 +82,7 @@ igmp_send_group_report_v3 (u32 obj, void *data) if (NULL == srcs) { /* - * there were no sources specified, so this is a group-sepcific query. + * there were no sources specified, so this is a group-specific query. * We should respond with all our sources */ igmp_pkt_report_v3_add_group (&br, group, @@ -88,7 +92,7 @@ igmp_send_group_report_v3 (u32 obj, void *data) { /* * the sources stored in the timer object are the combined set of sources - * to be quired. We need to respond only to those queried, not our full set. + * to be required. We need to respond only to those queried, not our full set. */ ip46_address_t *intersect; @@ -199,7 +203,7 @@ igmp_handle_query (const igmp_query_args_t * args) Group-Specific Queries, and Group-and-Source-Specific Queries), each of which may require its own delayed response. */ - if (igmp_membership_query_v3_is_geeral (args->query)) + if (igmp_membership_query_v3_is_general (args->query)) { IGMP_DBG ("...general-query-rx: %U", format_vnet_sw_if_index_name, vnet_get_main (), args->sw_if_index);