mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 14:40:47 +00:00
Merge pull request #10793 from opensourcerouting/feature/igmp_stats_total_received_messages
pimd: Show total received messages IGMP stats
This commit is contained in:
commit
cde5655bf4
@ -1348,6 +1348,8 @@ static void igmp_show_statistics(struct pim_instance *pim, struct vty *vty,
|
||||
igmp_stats.mtrace_req);
|
||||
json_object_int_add(json_row, "unsupported",
|
||||
igmp_stats.unsupported);
|
||||
json_object_int_add(json_row, "totalReceivedMessages",
|
||||
igmp_stats.total_recv_messages);
|
||||
json_object_int_add(json_row, "totalGroups",
|
||||
igmp_stats.total_groups);
|
||||
json_object_int_add(json_row, "totalSourceGroups",
|
||||
@ -1387,6 +1389,8 @@ static void igmp_show_statistics(struct pim_instance *pim, struct vty *vty,
|
||||
igmp_stats.mtrace_req);
|
||||
vty_out(vty, "unsupported : %u\n",
|
||||
igmp_stats.unsupported);
|
||||
vty_out(vty, "total received messages : %u\n",
|
||||
igmp_stats.total_recv_messages);
|
||||
vty_out(vty, "joins failed : %u\n",
|
||||
igmp_stats.joins_failed);
|
||||
vty_out(vty, "joins sent : %u\n",
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ struct igmp_stats {
|
||||
uint32_t joins_failed;
|
||||
uint32_t general_queries_sent;
|
||||
uint32_t group_queries_sent;
|
||||
uint32_t total_recv_messages;
|
||||
};
|
||||
|
||||
#if PIM_IPV == 4
|
||||
|
Loading…
Reference in New Issue
Block a user