Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
acl-plugin: tuplemerge: avoid batch-resize of the applied entries vector - VPP-1352
[vpp.git]
/
src
/
plugins
/
igmp
/
igmp_query.c
diff --git
a/src/plugins/igmp/igmp_query.c
b/src/plugins/igmp/igmp_query.c
index
1513023
..
4b3da09
100644
(file)
--- 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;
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)
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)
{
/*
if (NULL == srcs)
{
/*
- * there were no sources specified, so this is a group-s
ep
cific query.
+ * there were no sources specified, so this is a group-s
pe
cific query.
* We should respond with all our sources
*/
igmp_pkt_report_v3_add_group (&br, group,
* 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
{
/*
* 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
re
quired. We need to respond only to those queried, not our full set.
*/
ip46_address_t *intersect;
*/
ip46_address_t *intersect;