mib.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NETNS_MIB_H__
  3. #define __NETNS_MIB_H__
  4. #include <net/snmp.h>
  5. struct netns_mib {
  6. DEFINE_SNMP_STAT(struct ipstats_mib, ip_statistics);
  7. #if IS_ENABLED(CONFIG_IPV6)
  8. DEFINE_SNMP_STAT(struct ipstats_mib, ipv6_statistics);
  9. #endif
  10. DEFINE_SNMP_STAT(struct tcp_mib, tcp_statistics);
  11. DEFINE_SNMP_STAT(struct linux_mib, net_statistics);
  12. DEFINE_SNMP_STAT(struct udp_mib, udp_statistics);
  13. #if IS_ENABLED(CONFIG_IPV6)
  14. DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6);
  15. #endif
  16. #ifdef CONFIG_XFRM_STATISTICS
  17. DEFINE_SNMP_STAT(struct linux_xfrm_mib, xfrm_statistics);
  18. #endif
  19. #if IS_ENABLED(CONFIG_TLS)
  20. DEFINE_SNMP_STAT(struct linux_tls_mib, tls_statistics);
  21. #endif
  22. #ifdef CONFIG_MPTCP
  23. DEFINE_SNMP_STAT(struct mptcp_mib, mptcp_statistics);
  24. #endif
  25. DEFINE_SNMP_STAT(struct udp_mib, udplite_statistics);
  26. #if IS_ENABLED(CONFIG_IPV6)
  27. DEFINE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
  28. #endif
  29. DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics);
  30. DEFINE_SNMP_STAT_ATOMIC(struct icmpmsg_mib, icmpmsg_statistics);
  31. #if IS_ENABLED(CONFIG_IPV6)
  32. DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics);
  33. DEFINE_SNMP_STAT_ATOMIC(struct icmpv6msg_mib, icmpv6msg_statistics);
  34. struct proc_dir_entry *proc_net_devsnmp6;
  35. #endif
  36. };
  37. #endif