net: stats: Add IGMP statistics support
Collect IPv4 IGMP sent/received/dropped statistics. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
e5043f5a7f
commit
d28e64c602
4 changed files with 53 additions and 1 deletions
|
@ -205,6 +205,20 @@ struct net_stats_ipv6_mld {
|
|||
net_stats_t drop;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief IPv4 IGMP daemon statistics
|
||||
*/
|
||||
struct net_stats_ipv4_igmp {
|
||||
/** Number of received IPv4 IGMP queries */
|
||||
net_stats_t recv;
|
||||
|
||||
/** Number of sent IPv4 IGMP reports */
|
||||
net_stats_t sent;
|
||||
|
||||
/** Number of dropped IPv4 IGMP packets */
|
||||
net_stats_t drop;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Network packet transfer times for calculating average TX time
|
||||
*/
|
||||
|
@ -323,6 +337,11 @@ struct net_stats {
|
|||
struct net_stats_ipv6_mld ipv6_mld;
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NET_STATISTICS_IGMP)
|
||||
/** IPv4 IGMP statistics */
|
||||
struct net_stats_ipv4_igmp ipv4_igmp;
|
||||
#endif
|
||||
|
||||
#if NET_TC_COUNT > 1
|
||||
/** Traffic class statistics */
|
||||
struct net_stats_tc tc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue