1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 #ifndef __NETNS_MIB_H__ 1 #ifndef __NETNS_MIB_H__ 3 #define __NETNS_MIB_H__ 2 #define __NETNS_MIB_H__ 4 3 5 #include <net/snmp.h> 4 #include <net/snmp.h> 6 5 7 struct netns_mib { 6 struct netns_mib { 8 DEFINE_SNMP_STAT(struct ipstats_mib, i << 9 #if IS_ENABLED(CONFIG_IPV6) << 10 DEFINE_SNMP_STAT(struct ipstats_mib, i << 11 #endif << 12 << 13 DEFINE_SNMP_STAT(struct tcp_mib, tcp_s 7 DEFINE_SNMP_STAT(struct tcp_mib, tcp_statistics); >> 8 DEFINE_SNMP_STAT(struct ipstats_mib, ip_statistics); 14 DEFINE_SNMP_STAT(struct linux_mib, net 9 DEFINE_SNMP_STAT(struct linux_mib, net_statistics); 15 << 16 DEFINE_SNMP_STAT(struct udp_mib, udp_s 10 DEFINE_SNMP_STAT(struct udp_mib, udp_statistics); 17 #if IS_ENABLED(CONFIG_IPV6) !! 11 DEFINE_SNMP_STAT(struct udp_mib, udplite_statistics); >> 12 DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics); >> 13 DEFINE_SNMP_STAT(struct icmpmsg_mib, icmpmsg_statistics); >> 14 >> 15 #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) >> 16 struct proc_dir_entry *proc_net_devsnmp6; 18 DEFINE_SNMP_STAT(struct udp_mib, udp_s 17 DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6); >> 18 DEFINE_SNMP_STAT(struct udp_mib, udplite_stats_in6); >> 19 DEFINE_SNMP_STAT(struct ipstats_mib, ipv6_statistics); >> 20 DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics); >> 21 DEFINE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics); 19 #endif 22 #endif 20 << 21 #ifdef CONFIG_XFRM_STATISTICS 23 #ifdef CONFIG_XFRM_STATISTICS 22 DEFINE_SNMP_STAT(struct linux_xfrm_mib 24 DEFINE_SNMP_STAT(struct linux_xfrm_mib, xfrm_statistics); 23 #endif << 24 #if IS_ENABLED(CONFIG_TLS) << 25 DEFINE_SNMP_STAT(struct linux_tls_mib, << 26 #endif << 27 #ifdef CONFIG_MPTCP << 28 DEFINE_SNMP_STAT(struct mptcp_mib, mpt << 29 #endif << 30 << 31 DEFINE_SNMP_STAT(struct udp_mib, udpli << 32 #if IS_ENABLED(CONFIG_IPV6) << 33 DEFINE_SNMP_STAT(struct udp_mib, udpli << 34 #endif << 35 << 36 DEFINE_SNMP_STAT(struct icmp_mib, icmp << 37 DEFINE_SNMP_STAT_ATOMIC(struct icmpmsg << 38 #if IS_ENABLED(CONFIG_IPV6) << 39 DEFINE_SNMP_STAT(struct icmpv6_mib, ic << 40 DEFINE_SNMP_STAT_ATOMIC(struct icmpv6m << 41 struct proc_dir_entry *proc_net_devsnm << 42 #endif 25 #endif 43 }; 26 }; 44 27 45 #endif 28 #endif 46 29
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.