0001
0002 #ifndef __NETNS_MIB_H__
0003 #define __NETNS_MIB_H__
0004
0005 #include <net/snmp.h>
0006
0007 struct netns_mib {
0008 DEFINE_SNMP_STAT(struct ipstats_mib, ip_statistics);
0009 #if IS_ENABLED(CONFIG_IPV6)
0010 DEFINE_SNMP_STAT(struct ipstats_mib, ipv6_statistics);
0011 #endif
0012
0013 DEFINE_SNMP_STAT(struct tcp_mib, tcp_statistics);
0014 DEFINE_SNMP_STAT(struct linux_mib, net_statistics);
0015
0016 DEFINE_SNMP_STAT(struct udp_mib, udp_statistics);
0017 #if IS_ENABLED(CONFIG_IPV6)
0018 DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6);
0019 #endif
0020
0021 #ifdef CONFIG_XFRM_STATISTICS
0022 DEFINE_SNMP_STAT(struct linux_xfrm_mib, xfrm_statistics);
0023 #endif
0024 #if IS_ENABLED(CONFIG_TLS)
0025 DEFINE_SNMP_STAT(struct linux_tls_mib, tls_statistics);
0026 #endif
0027 #ifdef CONFIG_MPTCP
0028 DEFINE_SNMP_STAT(struct mptcp_mib, mptcp_statistics);
0029 #endif
0030
0031 DEFINE_SNMP_STAT(struct udp_mib, udplite_statistics);
0032 #if IS_ENABLED(CONFIG_IPV6)
0033 DEFINE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
0034 #endif
0035
0036 DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics);
0037 DEFINE_SNMP_STAT_ATOMIC(struct icmpmsg_mib, icmpmsg_statistics);
0038 #if IS_ENABLED(CONFIG_IPV6)
0039 DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics);
0040 DEFINE_SNMP_STAT_ATOMIC(struct icmpv6msg_mib, icmpv6msg_statistics);
0041 struct proc_dir_entry *proc_net_devsnmp6;
0042 #endif
0043 };
0044
0045 #endif