mib.h 947 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __NETNS_MIB_H__
  2. #define __NETNS_MIB_H__
  3. #include <net/snmp.h>
  4. struct netns_mib {
  5. DEFINE_SNMP_STAT(struct tcp_mib, tcp_statistics);
  6. DEFINE_SNMP_STAT(struct ipstats_mib, ip_statistics);
  7. DEFINE_SNMP_STAT(struct linux_mib, net_statistics);
  8. DEFINE_SNMP_STAT(struct udp_mib, udp_statistics);
  9. DEFINE_SNMP_STAT(struct udp_mib, udplite_statistics);
  10. DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics);
  11. DEFINE_SNMP_STAT_ATOMIC(struct icmpmsg_mib, icmpmsg_statistics);
  12. #if IS_ENABLED(CONFIG_IPV6)
  13. struct proc_dir_entry *proc_net_devsnmp6;
  14. DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6);
  15. DEFINE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
  16. DEFINE_SNMP_STAT(struct ipstats_mib, ipv6_statistics);
  17. DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics);
  18. DEFINE_SNMP_STAT_ATOMIC(struct icmpv6msg_mib, icmpv6msg_statistics);
  19. #endif
  20. #ifdef CONFIG_XFRM_STATISTICS
  21. DEFINE_SNMP_STAT(struct linux_xfrm_mib, xfrm_statistics);
  22. #endif
  23. };
  24. #endif