blob: d542a4b28ccab0bb92e391b971994b37e0b5077a [file] [log] [blame]
Pavel Emelyanov852566f52008-07-18 04:01:24 -07001#ifndef __NETNS_MIB_H__
2#define __NETNS_MIB_H__
3
4#include <net/snmp.h>
5
6struct netns_mib {
Pavel Emelyanov57ef42d2008-07-18 04:02:08 -07007 DEFINE_SNMP_STAT(struct tcp_mib, tcp_statistics);
Pavel Emelyanova20f5792008-07-18 04:02:42 -07008 DEFINE_SNMP_STAT(struct ipstats_mib, ip_statistics);
Pavel Emelyanov61a7e262008-07-18 04:03:08 -07009 DEFINE_SNMP_STAT(struct linux_mib, net_statistics);
Pavel Emelyanov2f275f92008-07-18 04:03:27 -070010 DEFINE_SNMP_STAT(struct udp_mib, udp_statistics);
Pavel Emelyanov386019d2008-07-18 04:03:45 -070011 DEFINE_SNMP_STAT(struct udp_mib, udplite_statistics);
Pavel Emelyanovb60538a2008-07-18 04:04:02 -070012 DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics);
Eric Dumazetacb32ba2011-11-08 13:04:43 +000013 DEFINE_SNMP_STAT_ATOMIC(struct icmpmsg_mib, icmpmsg_statistics);
Denis V. Lunev835bcc02008-10-07 14:45:55 -070014
Eric Dumazetdfd56b82011-12-10 09:48:31 +000015#if IS_ENABLED(CONFIG_IPV6)
Denis V. Lunev835bcc02008-10-07 14:45:55 -070016 struct proc_dir_entry *proc_net_devsnmp6;
Denis V. Lunev0c7ed672008-10-07 14:49:36 -070017 DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6);
Denis V. Lunevbe713a42008-10-07 14:50:06 -070018 DEFINE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
Denis V. Lunev9261e532008-10-08 10:36:03 -070019 DEFINE_SNMP_STAT(struct ipstats_mib, ipv6_statistics);
20 DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics);
Eric Dumazet2a244442011-11-13 01:24:04 +000021 DEFINE_SNMP_STAT_ATOMIC(struct icmpv6msg_mib, icmpv6msg_statistics);
Denis V. Lunev835bcc02008-10-07 14:45:55 -070022#endif
Alexey Dobriyan59c99402008-11-25 17:59:52 -080023#ifdef CONFIG_XFRM_STATISTICS
24 DEFINE_SNMP_STAT(struct linux_xfrm_mib, xfrm_statistics);
25#endif
Pavel Emelyanov852566f52008-07-18 04:01:24 -070026};
27
28#endif