diff options
author | Mladen Sablic <mladen.sablic@gmail.com> | 2018-05-04 13:25:38 +0200 |
---|---|---|
committer | Mladen Sablic <mladen.sablic@gmail.com> | 2018-05-04 17:05:19 +0200 |
commit | 21313cbfda7740bec3d1b599de1599c36477270f (patch) | |
tree | 4cb88c4285b04de9741f69a04b7ff49f7fe47da0 /pimd/pim_igmpv2.c | |
parent | Merge pull request #2169 from piotrjurkiewicz/eigrp_feasibility (diff) | |
download | frr-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.c | 6 |
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) { |