summaryrefslogtreecommitdiffstats
path: root/pimd/pim_igmp_stats.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-03-14 08:26:22 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-03-14 09:50:28 +0100
commit278912eabf991b593ff67202eb4f5a93b4a0b469 (patch)
tree775a8db29ee1b80ba32411ae423b62a6a297bd50 /pimd/pim_igmp_stats.c
parentpimd: Fix indentation for struct igmp_stats (diff)
downloadfrr-278912eabf991b593ff67202eb4f5a93b4a0b469.tar.xz
frr-278912eabf991b593ff67202eb4f5a93b4a0b469.zip
pimd: Add additional IGMP stats (generic/group specific queries sent)
``` exit1-debian-11# sh ip igmp statistics IGMP statistics Interface : global V1 query : 0 V2 query : 0 V3 query : 6 V2 leave : 0 V1 report : 0 V2 report : 0 V3 report : 14 mtrace response : 0 mtrace request : 0 unsupported : 0 joins failed : 0 joins sent : 16 general queries sent : 6 group queries sent : 4 total groups : 5 total source groups : 1 exit1-debian-11# sh ip igmp statistics json { "global":{ "name":"global", "queryV1":0, "queryV2":0, "queryV3":6, "leaveV2":0, "reportV1":0, "reportV2":0, "reportV3":18, "mtraceResponse":0, "mtraceRequest":0, "unsupported":0, "totalGroups":5, "totalSourceGroups":1, "joinsFailed":0, "joinsSent":16, "generalQueriesSent":6, "groupQueriesSent":4 } } ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_igmp_stats.c')
-rw-r--r--pimd/pim_igmp_stats.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_igmp_stats.c b/pimd/pim_igmp_stats.c
index e1eb166b6..b2f1d6b3c 100644
--- a/pimd/pim_igmp_stats.c
+++ b/pimd/pim_igmp_stats.c
@@ -47,4 +47,6 @@ void igmp_stats_add(struct igmp_stats *a, struct igmp_stats *b)
a->total_source_groups += b->total_source_groups;
a->joins_sent += b->joins_sent;
a->joins_failed += b->joins_failed;
+ a->general_queries_sent += b->general_queries_sent;
+ a->group_queries_sent += b->group_queries_sent;
}