diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-03-10 18:10:43 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-03-13 19:31:34 +0200 |
| commit | f2058cb425b6f2e5efb3ac8608c47bcc2da5535d (patch) | |
| tree | fd6568d21b7d67043c2bfb19a24767949a2de6ac /pimd/pim_igmp_stats.c | |
| parent | 7547d5288e91d7bdc09aff4cd902d6cedbabfafc (diff) | |
pimd: Add IGMP join sent/failed statistics
```
exit1-debian-11# sh ip igmp statistics
IGMP statistics
Interface : global
V1 query : 0
V2 query : 0
V3 query : 0
V2 leave : 0
V1 report : 0
V2 report : 0
V3 report : 16
mtrace response : 0
mtrace request : 0
unsupported : 0
joins failed : 0
joins sent : 11
total groups : 4
total source groups : 0
exit1-debian-11# sh ip igmp statistics json
{
"global":{
"name":"global",
"queryV1":0,
"queryV2":0,
"queryV3":0,
"leaveV3":0,
"reportV1":0,
"reportV2":0,
"reportV3":16,
"mtraceResponse":0,
"mtraceRequest":0,
"unsupported":0,
"totalGroups":4,
"totalSourceGroups":0,
"joinsFailed":0,
"joinsSent":11
}
}
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_igmp_stats.c')
| -rw-r--r-- | pimd/pim_igmp_stats.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_igmp_stats.c b/pimd/pim_igmp_stats.c index 0cf1bb1ec1..e1eb166b65 100644 --- a/pimd/pim_igmp_stats.c +++ b/pimd/pim_igmp_stats.c @@ -45,4 +45,6 @@ void igmp_stats_add(struct igmp_stats *a, struct igmp_stats *b) a->unsupported += b->unsupported; a->total_groups += b->total_groups; a->total_source_groups += b->total_source_groups; + a->joins_sent += b->joins_sent; + a->joins_failed += b->joins_failed; } |
