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_igmpv3.c | |
| parent | 1c96f2fb9631415ec44046c915520f489a93ebc4 (diff) | |
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_igmpv3.c')
| -rw-r--r-- | pimd/pim_igmpv3.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_igmpv3.c b/pimd/pim_igmpv3.c index 3360e36b4a..5ccad39b33 100644 --- a/pimd/pim_igmpv3.c +++ b/pimd/pim_igmpv3.c @@ -1900,6 +1900,9 @@ int igmp_v3_recv_report(struct igmp_sock *igmp, struct in_addr from,  		return -1;  	} +	/* Collecting IGMP Rx stats */ +	igmp->rx_stats.report_v3++; +  	num_groups = ntohs(  		*(uint16_t *)(igmp_msg + IGMP_V3_REPORT_NUMGROUPS_OFFSET));  	if (num_groups < 1) {  | 
