162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __NETNS_MIB_H__
362306a36Sopenharmony_ci#define __NETNS_MIB_H__
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <net/snmp.h>
662306a36Sopenharmony_ci
762306a36Sopenharmony_cistruct netns_mib {
862306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct ipstats_mib, ip_statistics);
962306a36Sopenharmony_ci#if IS_ENABLED(CONFIG_IPV6)
1062306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct ipstats_mib, ipv6_statistics);
1162306a36Sopenharmony_ci#endif
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct tcp_mib, tcp_statistics);
1462306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct linux_mib, net_statistics);
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct udp_mib, udp_statistics);
1762306a36Sopenharmony_ci#if IS_ENABLED(CONFIG_IPV6)
1862306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6);
1962306a36Sopenharmony_ci#endif
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#ifdef CONFIG_XFRM_STATISTICS
2262306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct linux_xfrm_mib, xfrm_statistics);
2362306a36Sopenharmony_ci#endif
2462306a36Sopenharmony_ci#if IS_ENABLED(CONFIG_TLS)
2562306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct linux_tls_mib, tls_statistics);
2662306a36Sopenharmony_ci#endif
2762306a36Sopenharmony_ci#ifdef CONFIG_MPTCP
2862306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct mptcp_mib, mptcp_statistics);
2962306a36Sopenharmony_ci#endif
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct udp_mib, udplite_statistics);
3262306a36Sopenharmony_ci#if IS_ENABLED(CONFIG_IPV6)
3362306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
3462306a36Sopenharmony_ci#endif
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics);
3762306a36Sopenharmony_ci	DEFINE_SNMP_STAT_ATOMIC(struct icmpmsg_mib, icmpmsg_statistics);
3862306a36Sopenharmony_ci#if IS_ENABLED(CONFIG_IPV6)
3962306a36Sopenharmony_ci	DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics);
4062306a36Sopenharmony_ci	DEFINE_SNMP_STAT_ATOMIC(struct icmpv6msg_mib, icmpv6msg_statistics);
4162306a36Sopenharmony_ci	struct proc_dir_entry *proc_net_devsnmp6;
4262306a36Sopenharmony_ci#endif
4362306a36Sopenharmony_ci};
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci#endif
46