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_igmp_mtrace.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_igmp_mtrace.c')
-rw-r--r-- | pimd/pim_igmp_mtrace.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pimd/pim_igmp_mtrace.c b/pimd/pim_igmp_mtrace.c index d3ae18570..673e2ca5b 100644 --- a/pimd/pim_igmp_mtrace.c +++ b/pimd/pim_igmp_mtrace.c @@ -671,6 +671,9 @@ int igmp_mtrace_recv_qry_req(struct igmp_sock *igmp, struct ip *ip_hdr, return -1; } + /* Collecting IGMP Rx stats */ + igmp->rx_stats.mtrace_req++; + if (PIM_DEBUG_MTRACE) mtrace_debug(pim_ifp, mtracep, igmp_msg_len); @@ -881,6 +884,9 @@ int igmp_mtrace_recv_response(struct igmp_sock *igmp, struct ip *ip_hdr, mtracep->checksum = checksum; + /* Collecting IGMP Rx stats */ + igmp->rx_stats.mtrace_rsp++; + if (PIM_DEBUG_MTRACE) mtrace_debug(pim_ifp, mtracep, igmp_msg_len); |