]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
852566f5 PE |
2 | #ifndef __NETNS_MIB_H__ |
3 | #define __NETNS_MIB_H__ | |
4 | ||
5 | #include <net/snmp.h> | |
6 | ||
7 | struct netns_mib { | |
57ef42d5 | 8 | DEFINE_SNMP_STAT(struct tcp_mib, tcp_statistics); |
a20f5799 | 9 | DEFINE_SNMP_STAT(struct ipstats_mib, ip_statistics); |
61a7e260 | 10 | DEFINE_SNMP_STAT(struct linux_mib, net_statistics); |
2f275f91 | 11 | DEFINE_SNMP_STAT(struct udp_mib, udp_statistics); |
386019d3 | 12 | DEFINE_SNMP_STAT(struct udp_mib, udplite_statistics); |
b60538a0 | 13 | DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics); |
acb32ba3 | 14 | DEFINE_SNMP_STAT_ATOMIC(struct icmpmsg_mib, icmpmsg_statistics); |
835bcc04 | 15 | |
dfd56b8b | 16 | #if IS_ENABLED(CONFIG_IPV6) |
835bcc04 | 17 | struct proc_dir_entry *proc_net_devsnmp6; |
0c7ed677 | 18 | DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6); |
be713a44 | 19 | DEFINE_SNMP_STAT(struct udp_mib, udplite_stats_in6); |
9261e537 DL |
20 | DEFINE_SNMP_STAT(struct ipstats_mib, ipv6_statistics); |
21 | DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics); | |
2a24444f | 22 | DEFINE_SNMP_STAT_ATOMIC(struct icmpv6msg_mib, icmpv6msg_statistics); |
835bcc04 | 23 | #endif |
59c9940e AD |
24 | #ifdef CONFIG_XFRM_STATISTICS |
25 | DEFINE_SNMP_STAT(struct linux_xfrm_mib, xfrm_statistics); | |
26 | #endif | |
852566f5 PE |
27 | }; |
28 | ||
29 | #endif |