blob: 830bdf345b1726344137c7d95fc69d032be6f42b [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Pavel Emelyanov852566f52008-07-18 04:01:24 -07002#ifndef __NETNS_MIB_H__
3#define __NETNS_MIB_H__
4
5#include <net/snmp.h>
6
7struct netns_mib {
Pavel Emelyanov57ef42d2008-07-18 04:02:08 -07008 DEFINE_SNMP_STAT(struct tcp_mib, tcp_statistics);
Pavel Emelyanova20f5792008-07-18 04:02:42 -07009 DEFINE_SNMP_STAT(struct ipstats_mib, ip_statistics);
Pavel Emelyanov61a7e262008-07-18 04:03:08 -070010 DEFINE_SNMP_STAT(struct linux_mib, net_statistics);
Pavel Emelyanov2f275f92008-07-18 04:03:27 -070011 DEFINE_SNMP_STAT(struct udp_mib, udp_statistics);
Pavel Emelyanov386019d2008-07-18 04:03:45 -070012 DEFINE_SNMP_STAT(struct udp_mib, udplite_statistics);
Pavel Emelyanovb60538a2008-07-18 04:04:02 -070013 DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics);
Eric Dumazetacb32ba2011-11-08 13:04:43 +000014 DEFINE_SNMP_STAT_ATOMIC(struct icmpmsg_mib, icmpmsg_statistics);
Denis V. Lunev835bcc02008-10-07 14:45:55 -070015
Eric Dumazetdfd56b82011-12-10 09:48:31 +000016#if IS_ENABLED(CONFIG_IPV6)
Denis V. Lunev835bcc02008-10-07 14:45:55 -070017 struct proc_dir_entry *proc_net_devsnmp6;
Denis V. Lunev0c7ed672008-10-07 14:49:36 -070018 DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6);
Denis V. Lunevbe713a42008-10-07 14:50:06 -070019 DEFINE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
Denis V. Lunev9261e532008-10-08 10:36:03 -070020 DEFINE_SNMP_STAT(struct ipstats_mib, ipv6_statistics);
21 DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics);
Eric Dumazet2a244442011-11-13 01:24:04 +000022 DEFINE_SNMP_STAT_ATOMIC(struct icmpv6msg_mib, icmpv6msg_statistics);
Denis V. Lunev835bcc02008-10-07 14:45:55 -070023#endif
Alexey Dobriyan59c99402008-11-25 17:59:52 -080024#ifdef CONFIG_XFRM_STATISTICS
25 DEFINE_SNMP_STAT(struct linux_xfrm_mib, xfrm_statistics);
26#endif
Pavel Emelyanov852566f52008-07-18 04:01:24 -070027};
28
29#endif