summaryrefslogtreecommitdiffstats
path: root/pimd/pim_igmpv2.c
diff options
context:
space:
mode:
authorMladen Sablic <mladen.sablic@gmail.com>2018-05-04 13:25:38 +0200
committerMladen Sablic <mladen.sablic@gmail.com>2018-05-04 17:05:19 +0200
commit21313cbfda7740bec3d1b599de1599c36477270f (patch)
tree4cb88c4285b04de9741f69a04b7ff49f7fe47da0 /pimd/pim_igmpv2.c
parentMerge pull request #2169 from piotrjurkiewicz/eigrp_feasibility (diff)
downloadfrr-21313cbfda7740bec3d1b599de1599c36477270f.tar.xz
frr-21313cbfda7740bec3d1b599de1599c36477270f.zip
pimd: show ip igmp statistics command
Command showing IGMP Rx statistics, useful for analyzing IGMP activity on interfaces. Signed-off-by: Mladen Sablic <mladen.sablic@gmail.com>
Diffstat (limited to 'pimd/pim_igmpv2.c')
-rw-r--r--pimd/pim_igmpv2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pimd/pim_igmpv2.c b/pimd/pim_igmpv2.c
index dbbe83a96..19c376881 100644
--- a/pimd/pim_igmpv2.c
+++ b/pimd/pim_igmpv2.c
@@ -121,6 +121,9 @@ int igmp_v2_recv_report(struct igmp_sock *igmp, struct in_addr from,
return -1;
}
+ /* Collecting IGMP Rx stats */
+ igmp->rx_stats.report_v2++;
+
memcpy(&group_addr, igmp_msg + 4, sizeof(struct in_addr));
if (PIM_DEBUG_IGMP_PACKETS) {
@@ -167,6 +170,9 @@ int igmp_v2_recv_leave(struct igmp_sock *igmp, struct in_addr from,
return -1;
}
+ /* Collecting IGMP Rx stats */
+ igmp->rx_stats.leave_v2++;
+
memcpy(&group_addr, igmp_msg + 4, sizeof(struct in_addr));
if (PIM_DEBUG_IGMP_PACKETS) {