diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2022-03-15 07:56:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-15 07:56:00 -0400 |
| commit | cde5655bf4636c6bdf97460579898a53f69e83ff (patch) | |
| tree | 1554566eb365424f83ec3e045028ca0ad03f0946 /pimd/pim_igmp_stats.c | |
| parent | 6ec6186af9987b3e2b698943b6e77f2e07e31067 (diff) | |
| parent | ca3e7807f6640c0b08042088e069e206b148e1e7 (diff) | |
Merge pull request #10793 from opensourcerouting/feature/igmp_stats_total_received_messages
pimd: Show total received messages IGMP stats
Diffstat (limited to 'pimd/pim_igmp_stats.c')
| -rw-r--r-- | pimd/pim_igmp_stats.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_igmp_stats.c b/pimd/pim_igmp_stats.c index b2f1d6b3cc..6a5ce4dc8d 100644 --- a/pimd/pim_igmp_stats.c +++ b/pimd/pim_igmp_stats.c @@ -49,4 +49,7 @@ void igmp_stats_add(struct igmp_stats *a, struct igmp_stats *b) a->joins_failed += b->joins_failed; a->general_queries_sent += b->general_queries_sent; a->group_queries_sent += b->group_queries_sent; + a->total_recv_messages += b->query_v1 + b->query_v2 + b->query_v3 + + b->report_v1 + b->report_v2 + b->report_v3 + + b->leave_v2 + b->mtrace_rsp + b->mtrace_req; } |
