ARL at /proc/net/snmp6
Costa Tsaousis (ktsaou) committed
Jan 21, 2017 at 00:47 UTC
8485bd6e191f5351bc47835ba47b2d6b1df69740
2 files changed
+218
-408
src/plugin_tc.c
+1
-1
@@ -160,7 +160,7 @@ static inline void tc_device_classes_cleanup(struct tc_device *d) {
160
static int cleanup_every = 999;
161
162
if(unlikely(cleanup_every > 0)) {
163
- cleanup_every = (int) config_get_number("plugin:tc", "cleanup unused classes every", 60);
163
+ cleanup_every = (int) config_get_number("plugin:tc", "cleanup unused classes every", 120);
164
if(cleanup_every < 0) cleanup_every = -cleanup_every;
165
}
166
src/proc_net_snmp6.c
+217
-407
@@ -1,4 +1,5 @@
1
#include "common.h"
2
+#include "adaptive_resortable_list.h"
3
4
#define RRD_TYPE_NET_SNMP6 "ipv6"
5
@@ -6,215 +7,126 @@ int do_proc_net_snmp6(int update_every, usec_t dt) {
7
(void)dt;
8
9
static procfile *ff = NULL;
9
- static int initialized = 0;
10
-
11
- static int do_ip_packets = -1, do_ip_fragsout = -1, do_ip_fragsin = -1, do_ip_errors = -1,
12
- do_udplite_packets = -1, do_udplite_errors = -1,
13
- do_udp_packets = -1, do_udp_errors = -1,
14
- do_bandwidth = -1, do_mcast = -1, do_bcast = -1, do_mcast_p = -1,
15
- do_icmp = -1, do_icmp_redir = -1, do_icmp_errors = -1, do_icmp_echos = -1, do_icmp_groupmemb = -1,
16
- do_icmp_router = -1, do_icmp_neighbor = -1, do_icmp_mldv2 = -1, do_icmp_types = -1, do_ect = -1;
17
-
18
- static uint32_t hash_Ip6InReceives = 0;
19
-
20
- static uint32_t hash_Ip6InHdrErrors = 0;
21
- static uint32_t hash_Ip6InTooBigErrors = 0;
22
- static uint32_t hash_Ip6InNoRoutes = 0;
23
- static uint32_t hash_Ip6InAddrErrors = 0;
24
- static uint32_t hash_Ip6InUnknownProtos = 0;
25
- static uint32_t hash_Ip6InTruncatedPkts = 0;
26
- static uint32_t hash_Ip6InDiscards = 0;
27
- static uint32_t hash_Ip6InDelivers = 0;
28
-
29
- static uint32_t hash_Ip6OutForwDatagrams = 0;
30
- static uint32_t hash_Ip6OutRequests = 0;
31
- static uint32_t hash_Ip6OutDiscards = 0;
32
- static uint32_t hash_Ip6OutNoRoutes = 0;
33
-
34
- static uint32_t hash_Ip6ReasmTimeout = 0;
35
- static uint32_t hash_Ip6ReasmReqds = 0;
36
- static uint32_t hash_Ip6ReasmOKs = 0;
37
- static uint32_t hash_Ip6ReasmFails = 0;
38
-
39
- static uint32_t hash_Ip6FragOKs = 0;
40
- static uint32_t hash_Ip6FragFails = 0;
41
- static uint32_t hash_Ip6FragCreates = 0;
42
-
43
- static uint32_t hash_Ip6InMcastPkts = 0;
44
- static uint32_t hash_Ip6OutMcastPkts = 0;
45
-
46
- static uint32_t hash_Ip6InOctets = 0;
47
- static uint32_t hash_Ip6OutOctets = 0;
48
-
49
- static uint32_t hash_Ip6InMcastOctets = 0;
50
- static uint32_t hash_Ip6OutMcastOctets = 0;
51
- static uint32_t hash_Ip6InBcastOctets = 0;
52
- static uint32_t hash_Ip6OutBcastOctets = 0;
53
-
54
- static uint32_t hash_Ip6InNoECTPkts = 0;
55
- static uint32_t hash_Ip6InECT1Pkts = 0;
56
- static uint32_t hash_Ip6InECT0Pkts = 0;
57
- static uint32_t hash_Ip6InCEPkts = 0;
58
-
59
- static uint32_t hash_Icmp6InMsgs = 0;
60
- static uint32_t hash_Icmp6InErrors = 0;
61
- static uint32_t hash_Icmp6OutMsgs = 0;
62
- static uint32_t hash_Icmp6OutErrors = 0;
63
- static uint32_t hash_Icmp6InCsumErrors = 0;
64
- static uint32_t hash_Icmp6InDestUnreachs = 0;
65
- static uint32_t hash_Icmp6InPktTooBigs = 0;
66
- static uint32_t hash_Icmp6InTimeExcds = 0;
67
- static uint32_t hash_Icmp6InParmProblems = 0;
68
- static uint32_t hash_Icmp6InEchos = 0;
69
- static uint32_t hash_Icmp6InEchoReplies = 0;
70
- static uint32_t hash_Icmp6InGroupMembQueries = 0;
71
- static uint32_t hash_Icmp6InGroupMembResponses = 0;
72
- static uint32_t hash_Icmp6InGroupMembReductions = 0;
73
- static uint32_t hash_Icmp6InRouterSolicits = 0;
74
- static uint32_t hash_Icmp6InRouterAdvertisements = 0;
75
- static uint32_t hash_Icmp6InNeighborSolicits = 0;
76
- static uint32_t hash_Icmp6InNeighborAdvertisements = 0;
77
- static uint32_t hash_Icmp6InRedirects = 0;
78
- static uint32_t hash_Icmp6InMLDv2Reports = 0;
79
- static uint32_t hash_Icmp6OutDestUnreachs = 0;
80
- static uint32_t hash_Icmp6OutPktTooBigs = 0;
81
- static uint32_t hash_Icmp6OutTimeExcds = 0;
82
- static uint32_t hash_Icmp6OutParmProblems = 0;
83
- static uint32_t hash_Icmp6OutEchos = 0;
84
- static uint32_t hash_Icmp6OutEchoReplies = 0;
85
- static uint32_t hash_Icmp6OutGroupMembQueries = 0;
86
- static uint32_t hash_Icmp6OutGroupMembResponses = 0;
87
- static uint32_t hash_Icmp6OutGroupMembReductions = 0;
88
- static uint32_t hash_Icmp6OutRouterSolicits = 0;
89
- static uint32_t hash_Icmp6OutRouterAdvertisements = 0;
90
- static uint32_t hash_Icmp6OutNeighborSolicits = 0;
91
- static uint32_t hash_Icmp6OutNeighborAdvertisements = 0;
92
- static uint32_t hash_Icmp6OutRedirects = 0;
93
- static uint32_t hash_Icmp6OutMLDv2Reports = 0;
94
- static uint32_t hash_Icmp6InType1 = 0;
95
- static uint32_t hash_Icmp6InType128 = 0;
96
- static uint32_t hash_Icmp6InType129 = 0;
97
- static uint32_t hash_Icmp6InType136 = 0;
98
- static uint32_t hash_Icmp6OutType1 = 0;
99
- static uint32_t hash_Icmp6OutType128 = 0;
100
- static uint32_t hash_Icmp6OutType129 = 0;
101
- static uint32_t hash_Icmp6OutType133 = 0;
102
- static uint32_t hash_Icmp6OutType135 = 0;
103
- static uint32_t hash_Icmp6OutType143 = 0;
104
-
105
- static uint32_t hash_Udp6InDatagrams = 0;
106
- static uint32_t hash_Udp6NoPorts = 0;
107
- static uint32_t hash_Udp6InErrors = 0;
108
- static uint32_t hash_Udp6OutDatagrams = 0;
109
- static uint32_t hash_Udp6RcvbufErrors = 0;
110
- static uint32_t hash_Udp6SndbufErrors = 0;
111
- static uint32_t hash_Udp6InCsumErrors = 0;
112
- static uint32_t hash_Udp6IgnoredMulti = 0;
113
-
114
- static uint32_t hash_UdpLite6InDatagrams = 0;
115
- static uint32_t hash_UdpLite6NoPorts = 0;
116
- static uint32_t hash_UdpLite6InErrors = 0;
117
- static uint32_t hash_UdpLite6OutDatagrams = 0;
118
- static uint32_t hash_UdpLite6RcvbufErrors = 0;
119
- static uint32_t hash_UdpLite6SndbufErrors = 0;
120
- static uint32_t hash_UdpLite6InCsumErrors = 0;
121
-
122
- if(unlikely(!initialized)) {
123
- initialized = 1;
124
-
125
- hash_Ip6InReceives = simple_hash("Ip6InReceives");
126
- hash_Ip6InHdrErrors = simple_hash("Ip6InHdrErrors");
127
- hash_Ip6InTooBigErrors = simple_hash("Ip6InTooBigErrors");
128
- hash_Ip6InNoRoutes = simple_hash("Ip6InNoRoutes");
129
- hash_Ip6InAddrErrors = simple_hash("Ip6InAddrErrors");
130
- hash_Ip6InUnknownProtos = simple_hash("Ip6InUnknownProtos");
131
- hash_Ip6InTruncatedPkts = simple_hash("Ip6InTruncatedPkts");
132
- hash_Ip6InDiscards = simple_hash("Ip6InDiscards");
133
- hash_Ip6InDelivers = simple_hash("Ip6InDelivers");
134
- hash_Ip6OutForwDatagrams = simple_hash("Ip6OutForwDatagrams");
135
- hash_Ip6OutRequests = simple_hash("Ip6OutRequests");
136
- hash_Ip6OutDiscards = simple_hash("Ip6OutDiscards");
137
- hash_Ip6OutNoRoutes = simple_hash("Ip6OutNoRoutes");
138
- hash_Ip6ReasmTimeout = simple_hash("Ip6ReasmTimeout");
139
- hash_Ip6ReasmReqds = simple_hash("Ip6ReasmReqds");
140
- hash_Ip6ReasmOKs = simple_hash("Ip6ReasmOKs");
141
- hash_Ip6ReasmFails = simple_hash("Ip6ReasmFails");
142
- hash_Ip6FragOKs = simple_hash("Ip6FragOKs");
143
- hash_Ip6FragFails = simple_hash("Ip6FragFails");
144
- hash_Ip6FragCreates = simple_hash("Ip6FragCreates");
145
- hash_Ip6InMcastPkts = simple_hash("Ip6InMcastPkts");
146
- hash_Ip6OutMcastPkts = simple_hash("Ip6OutMcastPkts");
147
- hash_Ip6InOctets = simple_hash("Ip6InOctets");
148
- hash_Ip6OutOctets = simple_hash("Ip6OutOctets");
149
- hash_Ip6InMcastOctets = simple_hash("Ip6InMcastOctets");
150
- hash_Ip6OutMcastOctets = simple_hash("Ip6OutMcastOctets");
151
- hash_Ip6InBcastOctets = simple_hash("Ip6InBcastOctets");
152
- hash_Ip6OutBcastOctets = simple_hash("Ip6OutBcastOctets");
153
- hash_Ip6InNoECTPkts = simple_hash("Ip6InNoECTPkts");
154
- hash_Ip6InECT1Pkts = simple_hash("Ip6InECT1Pkts");
155
- hash_Ip6InECT0Pkts = simple_hash("Ip6InECT0Pkts");
156
- hash_Ip6InCEPkts = simple_hash("Ip6InCEPkts");
157
- hash_Icmp6InMsgs = simple_hash("Icmp6InMsgs");
158
- hash_Icmp6InErrors = simple_hash("Icmp6InErrors");
159
- hash_Icmp6OutMsgs = simple_hash("Icmp6OutMsgs");
160
- hash_Icmp6OutErrors = simple_hash("Icmp6OutErrors");
161
- hash_Icmp6InCsumErrors = simple_hash("Icmp6InCsumErrors");
162
- hash_Icmp6InDestUnreachs = simple_hash("Icmp6InDestUnreachs");
163
- hash_Icmp6InPktTooBigs = simple_hash("Icmp6InPktTooBigs");
164
- hash_Icmp6InTimeExcds = simple_hash("Icmp6InTimeExcds");
165
- hash_Icmp6InParmProblems = simple_hash("Icmp6InParmProblems");
166
- hash_Icmp6InEchos = simple_hash("Icmp6InEchos");
167
- hash_Icmp6InEchoReplies = simple_hash("Icmp6InEchoReplies");
168
- hash_Icmp6InGroupMembQueries = simple_hash("Icmp6InGroupMembQueries");
169
- hash_Icmp6InGroupMembResponses = simple_hash("Icmp6InGroupMembResponses");
170
- hash_Icmp6InGroupMembReductions = simple_hash("Icmp6InGroupMembReductions");
171
- hash_Icmp6InRouterSolicits = simple_hash("Icmp6InRouterSolicits");
172
- hash_Icmp6InRouterAdvertisements = simple_hash("Icmp6InRouterAdvertisements");
173
- hash_Icmp6InNeighborSolicits = simple_hash("Icmp6InNeighborSolicits");
174
- hash_Icmp6InNeighborAdvertisements = simple_hash("Icmp6InNeighborAdvertisements");
175
- hash_Icmp6InRedirects = simple_hash("Icmp6InRedirects");
176
- hash_Icmp6InMLDv2Reports = simple_hash("Icmp6InMLDv2Reports");
177
- hash_Icmp6OutDestUnreachs = simple_hash("Icmp6OutDestUnreachs");
178
- hash_Icmp6OutPktTooBigs = simple_hash("Icmp6OutPktTooBigs");
179
- hash_Icmp6OutTimeExcds = simple_hash("Icmp6OutTimeExcds");
180
- hash_Icmp6OutParmProblems = simple_hash("Icmp6OutParmProblems");
181
- hash_Icmp6OutEchos = simple_hash("Icmp6OutEchos");
182
- hash_Icmp6OutEchoReplies = simple_hash("Icmp6OutEchoReplies");
183
- hash_Icmp6OutGroupMembQueries = simple_hash("Icmp6OutGroupMembQueries");
184
- hash_Icmp6OutGroupMembResponses = simple_hash("Icmp6OutGroupMembResponses");
185
- hash_Icmp6OutGroupMembReductions = simple_hash("Icmp6OutGroupMembReductions");
186
- hash_Icmp6OutRouterSolicits = simple_hash("Icmp6OutRouterSolicits");
187
- hash_Icmp6OutRouterAdvertisements = simple_hash("Icmp6OutRouterAdvertisements");
188
- hash_Icmp6OutNeighborSolicits = simple_hash("Icmp6OutNeighborSolicits");
189
- hash_Icmp6OutNeighborAdvertisements = simple_hash("Icmp6OutNeighborAdvertisements");
190
- hash_Icmp6OutRedirects = simple_hash("Icmp6OutRedirects");
191
- hash_Icmp6OutMLDv2Reports = simple_hash("Icmp6OutMLDv2Reports");
192
- hash_Icmp6InType1 = simple_hash("Icmp6InType1");
193
- hash_Icmp6InType128 = simple_hash("Icmp6InType128");
194
- hash_Icmp6InType129 = simple_hash("Icmp6InType129");
195
- hash_Icmp6InType136 = simple_hash("Icmp6InType136");
196
- hash_Icmp6OutType1 = simple_hash("Icmp6OutType1");
197
- hash_Icmp6OutType128 = simple_hash("Icmp6OutType128");
198
- hash_Icmp6OutType129 = simple_hash("Icmp6OutType129");
199
- hash_Icmp6OutType133 = simple_hash("Icmp6OutType133");
200
- hash_Icmp6OutType135 = simple_hash("Icmp6OutType135");
201
- hash_Icmp6OutType143 = simple_hash("Icmp6OutType143");
202
- hash_Udp6InDatagrams = simple_hash("Udp6InDatagrams");
203
- hash_Udp6NoPorts = simple_hash("Udp6NoPorts");
204
- hash_Udp6InErrors = simple_hash("Udp6InErrors");
205
- hash_Udp6OutDatagrams = simple_hash("Udp6OutDatagrams");
206
- hash_Udp6RcvbufErrors = simple_hash("Udp6RcvbufErrors");
207
- hash_Udp6SndbufErrors = simple_hash("Udp6SndbufErrors");
208
- hash_Udp6InCsumErrors = simple_hash("Udp6InCsumErrors");
209
- hash_Udp6IgnoredMulti = simple_hash("Udp6IgnoredMulti");
210
- hash_UdpLite6InDatagrams = simple_hash("UdpLite6InDatagrams");
211
- hash_UdpLite6NoPorts = simple_hash("UdpLite6NoPorts");
212
- hash_UdpLite6InErrors = simple_hash("UdpLite6InErrors");
213
- hash_UdpLite6OutDatagrams = simple_hash("UdpLite6OutDatagrams");
214
- hash_UdpLite6RcvbufErrors = simple_hash("UdpLite6RcvbufErrors");
215
- hash_UdpLite6SndbufErrors = simple_hash("UdpLite6SndbufErrors");
216
- hash_UdpLite6InCsumErrors = simple_hash("UdpLite6InCsumErrors");
10
11
+ static int do_ip_packets = -1,
12
+ do_ip_fragsout = -1,
13
+ do_ip_fragsin = -1,
14
+ do_ip_errors = -1,
15
+ do_udplite_packets = -1,
16
+ do_udplite_errors = -1,
17
+ do_udp_packets = -1,
18
+ do_udp_errors = -1,
19
+ do_bandwidth = -1,
20
+ do_mcast = -1,
21
+ do_bcast = -1,
22
+ do_mcast_p = -1,
23
+ do_icmp = -1,
24
+ do_icmp_redir = -1,
25
+ do_icmp_errors = -1,
26
+ do_icmp_echos = -1,
27
+ do_icmp_groupmemb = -1,
28
+ do_icmp_router = -1,
29
+ do_icmp_neighbor = -1,
30
+ do_icmp_mldv2 = -1,
31
+ do_icmp_types = -1,
32
+ do_ect = -1;
33
+
34
+ static ARL_BASE *arl_base = NULL;
35
+
36
+ static unsigned long long Ip6InReceives = 0ULL;
37
+ static unsigned long long Ip6InHdrErrors = 0ULL;
38
+ static unsigned long long Ip6InTooBigErrors = 0ULL;
39
+ static unsigned long long Ip6InNoRoutes = 0ULL;
40
+ static unsigned long long Ip6InAddrErrors = 0ULL;
41
+ static unsigned long long Ip6InUnknownProtos = 0ULL;
42
+ static unsigned long long Ip6InTruncatedPkts = 0ULL;
43
+ static unsigned long long Ip6InDiscards = 0ULL;
44
+ static unsigned long long Ip6InDelivers = 0ULL;
45
+ static unsigned long long Ip6OutForwDatagrams = 0ULL;
46
+ static unsigned long long Ip6OutRequests = 0ULL;
47
+ static unsigned long long Ip6OutDiscards = 0ULL;
48
+ static unsigned long long Ip6OutNoRoutes = 0ULL;
49
+ static unsigned long long Ip6ReasmTimeout = 0ULL;
50
+ static unsigned long long Ip6ReasmReqds = 0ULL;
51
+ static unsigned long long Ip6ReasmOKs = 0ULL;
52
+ static unsigned long long Ip6ReasmFails = 0ULL;
53
+ static unsigned long long Ip6FragOKs = 0ULL;
54
+ static unsigned long long Ip6FragFails = 0ULL;
55
+ static unsigned long long Ip6FragCreates = 0ULL;
56
+ static unsigned long long Ip6InMcastPkts = 0ULL;
57
+ static unsigned long long Ip6OutMcastPkts = 0ULL;
58
+ static unsigned long long Ip6InOctets = 0ULL;
59
+ static unsigned long long Ip6OutOctets = 0ULL;
60
+ static unsigned long long Ip6InMcastOctets = 0ULL;
61
+ static unsigned long long Ip6OutMcastOctets = 0ULL;
62
+ static unsigned long long Ip6InBcastOctets = 0ULL;
63
+ static unsigned long long Ip6OutBcastOctets = 0ULL;
64
+ static unsigned long long Ip6InNoECTPkts = 0ULL;
65
+ static unsigned long long Ip6InECT1Pkts = 0ULL;
66
+ static unsigned long long Ip6InECT0Pkts = 0ULL;
67
+ static unsigned long long Ip6InCEPkts = 0ULL;
68
+ static unsigned long long Icmp6InMsgs = 0ULL;
69
+ static unsigned long long Icmp6InErrors = 0ULL;
70
+ static unsigned long long Icmp6OutMsgs = 0ULL;
71
+ static unsigned long long Icmp6OutErrors = 0ULL;
72
+ static unsigned long long Icmp6InCsumErrors = 0ULL;
73
+ static unsigned long long Icmp6InDestUnreachs = 0ULL;
74
+ static unsigned long long Icmp6InPktTooBigs = 0ULL;
75
+ static unsigned long long Icmp6InTimeExcds = 0ULL;
76
+ static unsigned long long Icmp6InParmProblems = 0ULL;
77
+ static unsigned long long Icmp6InEchos = 0ULL;
78
+ static unsigned long long Icmp6InEchoReplies = 0ULL;
79
+ static unsigned long long Icmp6InGroupMembQueries = 0ULL;
80
+ static unsigned long long Icmp6InGroupMembResponses = 0ULL;
81
+ static unsigned long long Icmp6InGroupMembReductions = 0ULL;
82
+ static unsigned long long Icmp6InRouterSolicits = 0ULL;
83
+ static unsigned long long Icmp6InRouterAdvertisements = 0ULL;
84
+ static unsigned long long Icmp6InNeighborSolicits = 0ULL;
85
+ static unsigned long long Icmp6InNeighborAdvertisements = 0ULL;
86
+ static unsigned long long Icmp6InRedirects = 0ULL;
87
+ static unsigned long long Icmp6InMLDv2Reports = 0ULL;
88
+ static unsigned long long Icmp6OutDestUnreachs = 0ULL;
89
+ static unsigned long long Icmp6OutPktTooBigs = 0ULL;
90
+ static unsigned long long Icmp6OutTimeExcds = 0ULL;
91
+ static unsigned long long Icmp6OutParmProblems = 0ULL;
92
+ static unsigned long long Icmp6OutEchos = 0ULL;
93
+ static unsigned long long Icmp6OutEchoReplies = 0ULL;
94
+ static unsigned long long Icmp6OutGroupMembQueries = 0ULL;
95
+ static unsigned long long Icmp6OutGroupMembResponses = 0ULL;
96
+ static unsigned long long Icmp6OutGroupMembReductions = 0ULL;
97
+ static unsigned long long Icmp6OutRouterSolicits = 0ULL;
98
+ static unsigned long long Icmp6OutRouterAdvertisements = 0ULL;
99
+ static unsigned long long Icmp6OutNeighborSolicits = 0ULL;
100
+ static unsigned long long Icmp6OutNeighborAdvertisements = 0ULL;
101
+ static unsigned long long Icmp6OutRedirects = 0ULL;
102
+ static unsigned long long Icmp6OutMLDv2Reports = 0ULL;
103
+ static unsigned long long Icmp6InType1 = 0ULL;
104
+ static unsigned long long Icmp6InType128 = 0ULL;
105
+ static unsigned long long Icmp6InType129 = 0ULL;
106
+ static unsigned long long Icmp6InType136 = 0ULL;
107
+ static unsigned long long Icmp6OutType1 = 0ULL;
108
+ static unsigned long long Icmp6OutType128 = 0ULL;
109
+ static unsigned long long Icmp6OutType129 = 0ULL;
110
+ static unsigned long long Icmp6OutType133 = 0ULL;
111
+ static unsigned long long Icmp6OutType135 = 0ULL;
112
+ static unsigned long long Icmp6OutType143 = 0ULL;
113
+ static unsigned long long Udp6InDatagrams = 0ULL;
114
+ static unsigned long long Udp6NoPorts = 0ULL;
115
+ static unsigned long long Udp6InErrors = 0ULL;
116
+ static unsigned long long Udp6OutDatagrams = 0ULL;
117
+ static unsigned long long Udp6RcvbufErrors = 0ULL;
118
+ static unsigned long long Udp6SndbufErrors = 0ULL;
119
+ static unsigned long long Udp6InCsumErrors = 0ULL;
120
+ static unsigned long long Udp6IgnoredMulti = 0ULL;
121
+ static unsigned long long UdpLite6InDatagrams = 0ULL;
122
+ static unsigned long long UdpLite6NoPorts = 0ULL;
123
+ static unsigned long long UdpLite6InErrors = 0ULL;
124
+ static unsigned long long UdpLite6OutDatagrams = 0ULL;
125
+ static unsigned long long UdpLite6RcvbufErrors = 0ULL;
126
+ static unsigned long long UdpLite6SndbufErrors = 0ULL;
127
+ static unsigned long long UdpLite6InCsumErrors = 0ULL;
128
+
129
+ if(unlikely(!arl_base)) {
130
do_ip_packets = config_get_boolean_ondemand("plugin:proc:/proc/net/snmp6", "ipv6 packets", CONFIG_ONDEMAND_ONDEMAND);
131
do_ip_fragsout = config_get_boolean_ondemand("plugin:proc:/proc/net/snmp6", "ipv6 fragments sent", CONFIG_ONDEMAND_ONDEMAND);
132
do_ip_fragsin = config_get_boolean_ondemand("plugin:proc:/proc/net/snmp6", "ipv6 fragments assembly", CONFIG_ONDEMAND_ONDEMAND);
@@ -237,6 +149,100 @@ int do_proc_net_snmp6(int update_every, usec_t dt) {
149
do_icmp_mldv2 = config_get_boolean_ondemand("plugin:proc:/proc/net/snmp6", "icmp mldv2", CONFIG_ONDEMAND_ONDEMAND);
150
do_icmp_types = config_get_boolean_ondemand("plugin:proc:/proc/net/snmp6", "icmp types", CONFIG_ONDEMAND_ONDEMAND);
151
do_ect = config_get_boolean_ondemand("plugin:proc:/proc/net/snmp6", "ect", CONFIG_ONDEMAND_ONDEMAND);
152
+
153
+ arl_base = arl_create(NULL, 60);
154
+ arl_expect(arl_base, "Ip6InReceives", &Ip6InReceives);
155
+ arl_expect(arl_base, "Ip6InHdrErrors", &Ip6InHdrErrors);
156
+ arl_expect(arl_base, "Ip6InTooBigErrors", &Ip6InTooBigErrors);
157
+ arl_expect(arl_base, "Ip6InNoRoutes", &Ip6InNoRoutes);
158
+ arl_expect(arl_base, "Ip6InAddrErrors", &Ip6InAddrErrors);
159
+ arl_expect(arl_base, "Ip6InUnknownProtos", &Ip6InUnknownProtos);
160
+ arl_expect(arl_base, "Ip6InTruncatedPkts", &Ip6InTruncatedPkts);
161
+ arl_expect(arl_base, "Ip6InDiscards", &Ip6InDiscards);
162
+ arl_expect(arl_base, "Ip6InDelivers", &Ip6InDelivers);
163
+ arl_expect(arl_base, "Ip6OutForwDatagrams", &Ip6OutForwDatagrams);
164
+ arl_expect(arl_base, "Ip6OutRequests", &Ip6OutRequests);
165
+ arl_expect(arl_base, "Ip6OutDiscards", &Ip6OutDiscards);
166
+ arl_expect(arl_base, "Ip6OutNoRoutes", &Ip6OutNoRoutes);
167
+ arl_expect(arl_base, "Ip6ReasmTimeout", &Ip6ReasmTimeout);
168
+ arl_expect(arl_base, "Ip6ReasmReqds", &Ip6ReasmReqds);
169
+ arl_expect(arl_base, "Ip6ReasmOKs", &Ip6ReasmOKs);
170
+ arl_expect(arl_base, "Ip6ReasmFails", &Ip6ReasmFails);
171
+ arl_expect(arl_base, "Ip6FragOKs", &Ip6FragOKs);
172
+ arl_expect(arl_base, "Ip6FragFails", &Ip6FragFails);
173
+ arl_expect(arl_base, "Ip6FragCreates", &Ip6FragCreates);
174
+ arl_expect(arl_base, "Ip6InMcastPkts", &Ip6InMcastPkts);
175
+ arl_expect(arl_base, "Ip6OutMcastPkts", &Ip6OutMcastPkts);
176
+ arl_expect(arl_base, "Ip6InOctets", &Ip6InOctets);
177
+ arl_expect(arl_base, "Ip6OutOctets", &Ip6OutOctets);
178
+ arl_expect(arl_base, "Ip6InMcastOctets", &Ip6InMcastOctets);
179
+ arl_expect(arl_base, "Ip6OutMcastOctets", &Ip6OutMcastOctets);
180
+ arl_expect(arl_base, "Ip6InBcastOctets", &Ip6InBcastOctets);
181
+ arl_expect(arl_base, "Ip6OutBcastOctets", &Ip6OutBcastOctets);
182
+ arl_expect(arl_base, "Ip6InNoECTPkts", &Ip6InNoECTPkts);
183
+ arl_expect(arl_base, "Ip6InECT1Pkts", &Ip6InECT1Pkts);
184
+ arl_expect(arl_base, "Ip6InECT0Pkts", &Ip6InECT0Pkts);
185
+ arl_expect(arl_base, "Ip6InCEPkts", &Ip6InCEPkts);
186
+ arl_expect(arl_base, "Icmp6InMsgs", &Icmp6InMsgs);
187
+ arl_expect(arl_base, "Icmp6InErrors", &Icmp6InErrors);
188
+ arl_expect(arl_base, "Icmp6OutMsgs", &Icmp6OutMsgs);
189
+ arl_expect(arl_base, "Icmp6OutErrors", &Icmp6OutErrors);
190
+ arl_expect(arl_base, "Icmp6InCsumErrors", &Icmp6InCsumErrors);
191
+ arl_expect(arl_base, "Icmp6InDestUnreachs", &Icmp6InDestUnreachs);
192
+ arl_expect(arl_base, "Icmp6InPktTooBigs", &Icmp6InPktTooBigs);
193
+ arl_expect(arl_base, "Icmp6InTimeExcds", &Icmp6InTimeExcds);
194
+ arl_expect(arl_base, "Icmp6InParmProblems", &Icmp6InParmProblems);
195
+ arl_expect(arl_base, "Icmp6InEchos", &Icmp6InEchos);
196
+ arl_expect(arl_base, "Icmp6InEchoReplies", &Icmp6InEchoReplies);
197
+ arl_expect(arl_base, "Icmp6InGroupMembQueries", &Icmp6InGroupMembQueries);
198
+ arl_expect(arl_base, "Icmp6InGroupMembResponses", &Icmp6InGroupMembResponses);
199
+ arl_expect(arl_base, "Icmp6InGroupMembReductions", &Icmp6InGroupMembReductions);
200
+ arl_expect(arl_base, "Icmp6InRouterSolicits", &Icmp6InRouterSolicits);
201
+ arl_expect(arl_base, "Icmp6InRouterAdvertisements", &Icmp6InRouterAdvertisements);
202
+ arl_expect(arl_base, "Icmp6InNeighborSolicits", &Icmp6InNeighborSolicits);
203
+ arl_expect(arl_base, "Icmp6InNeighborAdvertisements", &Icmp6InNeighborAdvertisements);
204
+ arl_expect(arl_base, "Icmp6InRedirects", &Icmp6InRedirects);
205
+ arl_expect(arl_base, "Icmp6InMLDv2Reports", &Icmp6InMLDv2Reports);
206
+ arl_expect(arl_base, "Icmp6OutDestUnreachs", &Icmp6OutDestUnreachs);
207
+ arl_expect(arl_base, "Icmp6OutPktTooBigs", &Icmp6OutPktTooBigs);
208
+ arl_expect(arl_base, "Icmp6OutTimeExcds", &Icmp6OutTimeExcds);
209
+ arl_expect(arl_base, "Icmp6OutParmProblems", &Icmp6OutParmProblems);
210
+ arl_expect(arl_base, "Icmp6OutEchos", &Icmp6OutEchos);
211
+ arl_expect(arl_base, "Icmp6OutEchoReplies", &Icmp6OutEchoReplies);
212
+ arl_expect(arl_base, "Icmp6OutGroupMembQueries", &Icmp6OutGroupMembQueries);
213
+ arl_expect(arl_base, "Icmp6OutGroupMembResponses", &Icmp6OutGroupMembResponses);
214
+ arl_expect(arl_base, "Icmp6OutGroupMembReductions", &Icmp6OutGroupMembReductions);
215
+ arl_expect(arl_base, "Icmp6OutRouterSolicits", &Icmp6OutRouterSolicits);
216
+ arl_expect(arl_base, "Icmp6OutRouterAdvertisements", &Icmp6OutRouterAdvertisements);
217
+ arl_expect(arl_base, "Icmp6OutNeighborSolicits", &Icmp6OutNeighborSolicits);
218
+ arl_expect(arl_base, "Icmp6OutNeighborAdvertisements", &Icmp6OutNeighborAdvertisements);
219
+ arl_expect(arl_base, "Icmp6OutRedirects", &Icmp6OutRedirects);
220
+ arl_expect(arl_base, "Icmp6OutMLDv2Reports", &Icmp6OutMLDv2Reports);
221
+ arl_expect(arl_base, "Icmp6InType1", &Icmp6InType1);
222
+ arl_expect(arl_base, "Icmp6InType128", &Icmp6InType128);
223
+ arl_expect(arl_base, "Icmp6InType129", &Icmp6InType129);
224
+ arl_expect(arl_base, "Icmp6InType136", &Icmp6InType136);
225
+ arl_expect(arl_base, "Icmp6OutType1", &Icmp6OutType1);
226
+ arl_expect(arl_base, "Icmp6OutType128", &Icmp6OutType128);
227
+ arl_expect(arl_base, "Icmp6OutType129", &Icmp6OutType129);
228
+ arl_expect(arl_base, "Icmp6OutType133", &Icmp6OutType133);
229
+ arl_expect(arl_base, "Icmp6OutType135", &Icmp6OutType135);
230
+ arl_expect(arl_base, "Icmp6OutType143", &Icmp6OutType143);
231
+ arl_expect(arl_base, "Udp6InDatagrams", &Udp6InDatagrams);
232
+ arl_expect(arl_base, "Udp6NoPorts", &Udp6NoPorts);
233
+ arl_expect(arl_base, "Udp6InErrors", &Udp6InErrors);
234
+ arl_expect(arl_base, "Udp6OutDatagrams", &Udp6OutDatagrams);
235
+ arl_expect(arl_base, "Udp6RcvbufErrors", &Udp6RcvbufErrors);
236
+ arl_expect(arl_base, "Udp6SndbufErrors", &Udp6SndbufErrors);
237
+ arl_expect(arl_base, "Udp6InCsumErrors", &Udp6InCsumErrors);
238
+ arl_expect(arl_base, "Udp6IgnoredMulti", &Udp6IgnoredMulti);
239
+ arl_expect(arl_base, "UdpLite6InDatagrams", &UdpLite6InDatagrams);
240
+ arl_expect(arl_base, "UdpLite6NoPorts", &UdpLite6NoPorts);
241
+ arl_expect(arl_base, "UdpLite6InErrors", &UdpLite6InErrors);
242
+ arl_expect(arl_base, "UdpLite6OutDatagrams", &UdpLite6OutDatagrams);
243
+ arl_expect(arl_base, "UdpLite6RcvbufErrors", &UdpLite6RcvbufErrors);
244
+ arl_expect(arl_base, "UdpLite6SndbufErrors", &UdpLite6SndbufErrors);
245
+ arl_expect(arl_base, "UdpLite6InCsumErrors", &UdpLite6InCsumErrors);
246
}
247
248
if(unlikely(!ff)) {
@@ -253,101 +259,6 @@ int do_proc_net_snmp6(int update_every, usec_t dt) {
259
260
size_t lines = procfile_lines(ff), l;
261
256
- unsigned long long Ip6InReceives = 0ULL;
257
- unsigned long long Ip6InHdrErrors = 0ULL;
258
- unsigned long long Ip6InTooBigErrors = 0ULL;
259
- unsigned long long Ip6InNoRoutes = 0ULL;
260
- unsigned long long Ip6InAddrErrors = 0ULL;
261
- unsigned long long Ip6InUnknownProtos = 0ULL;
262
- unsigned long long Ip6InTruncatedPkts = 0ULL;
263
- unsigned long long Ip6InDiscards = 0ULL;
264
- unsigned long long Ip6InDelivers = 0ULL;
265
- unsigned long long Ip6OutForwDatagrams = 0ULL;
266
- unsigned long long Ip6OutRequests = 0ULL;
267
- unsigned long long Ip6OutDiscards = 0ULL;
268
- unsigned long long Ip6OutNoRoutes = 0ULL;
269
- unsigned long long Ip6ReasmTimeout = 0ULL;
270
- unsigned long long Ip6ReasmReqds = 0ULL;
271
- unsigned long long Ip6ReasmOKs = 0ULL;
272
- unsigned long long Ip6ReasmFails = 0ULL;
273
- unsigned long long Ip6FragOKs = 0ULL;
274
- unsigned long long Ip6FragFails = 0ULL;
275
- unsigned long long Ip6FragCreates = 0ULL;
276
- unsigned long long Ip6InMcastPkts = 0ULL;
277
- unsigned long long Ip6OutMcastPkts = 0ULL;
278
- unsigned long long Ip6InOctets = 0ULL;
279
- unsigned long long Ip6OutOctets = 0ULL;
280
- unsigned long long Ip6InMcastOctets = 0ULL;
281
- unsigned long long Ip6OutMcastOctets = 0ULL;
282
- unsigned long long Ip6InBcastOctets = 0ULL;
283
- unsigned long long Ip6OutBcastOctets = 0ULL;
284
- unsigned long long Ip6InNoECTPkts = 0ULL;
285
- unsigned long long Ip6InECT1Pkts = 0ULL;
286
- unsigned long long Ip6InECT0Pkts = 0ULL;
287
- unsigned long long Ip6InCEPkts = 0ULL;
288
- unsigned long long Icmp6InMsgs = 0ULL;
289
- unsigned long long Icmp6InErrors = 0ULL;
290
- unsigned long long Icmp6OutMsgs = 0ULL;
291
- unsigned long long Icmp6OutErrors = 0ULL;
292
- unsigned long long Icmp6InCsumErrors = 0ULL;
293
- unsigned long long Icmp6InDestUnreachs = 0ULL;
294
- unsigned long long Icmp6InPktTooBigs = 0ULL;
295
- unsigned long long Icmp6InTimeExcds = 0ULL;
296
- unsigned long long Icmp6InParmProblems = 0ULL;
297
- unsigned long long Icmp6InEchos = 0ULL;
298
- unsigned long long Icmp6InEchoReplies = 0ULL;
299
- unsigned long long Icmp6InGroupMembQueries = 0ULL;
300
- unsigned long long Icmp6InGroupMembResponses = 0ULL;
301
- unsigned long long Icmp6InGroupMembReductions = 0ULL;
302
- unsigned long long Icmp6InRouterSolicits = 0ULL;
303
- unsigned long long Icmp6InRouterAdvertisements = 0ULL;
304
- unsigned long long Icmp6InNeighborSolicits = 0ULL;
305
- unsigned long long Icmp6InNeighborAdvertisements = 0ULL;
306
- unsigned long long Icmp6InRedirects = 0ULL;
307
- unsigned long long Icmp6InMLDv2Reports = 0ULL;
308
- unsigned long long Icmp6OutDestUnreachs = 0ULL;
309
- unsigned long long Icmp6OutPktTooBigs = 0ULL;
310
- unsigned long long Icmp6OutTimeExcds = 0ULL;
311
- unsigned long long Icmp6OutParmProblems = 0ULL;
312
- unsigned long long Icmp6OutEchos = 0ULL;
313
- unsigned long long Icmp6OutEchoReplies = 0ULL;
314
- unsigned long long Icmp6OutGroupMembQueries = 0ULL;
315
- unsigned long long Icmp6OutGroupMembResponses = 0ULL;
316
- unsigned long long Icmp6OutGroupMembReductions = 0ULL;
317
- unsigned long long Icmp6OutRouterSolicits = 0ULL;
318
- unsigned long long Icmp6OutRouterAdvertisements = 0ULL;
319
- unsigned long long Icmp6OutNeighborSolicits = 0ULL;
320
- unsigned long long Icmp6OutNeighborAdvertisements = 0ULL;
321
- unsigned long long Icmp6OutRedirects = 0ULL;
322
- unsigned long long Icmp6OutMLDv2Reports = 0ULL;
323
- unsigned long long Icmp6InType1 = 0ULL;
324
- unsigned long long Icmp6InType128 = 0ULL;
325
- unsigned long long Icmp6InType129 = 0ULL;
326
- unsigned long long Icmp6InType136 = 0ULL;
327
- unsigned long long Icmp6OutType1 = 0ULL;
328
- unsigned long long Icmp6OutType128 = 0ULL;
329
- unsigned long long Icmp6OutType129 = 0ULL;
330
- unsigned long long Icmp6OutType133 = 0ULL;
331
- unsigned long long Icmp6OutType135 = 0ULL;
332
- unsigned long long Icmp6OutType143 = 0ULL;
333
- unsigned long long Udp6InDatagrams = 0ULL;
334
- unsigned long long Udp6NoPorts = 0ULL;
335
- unsigned long long Udp6InErrors = 0ULL;
336
- unsigned long long Udp6OutDatagrams = 0ULL;
337
- unsigned long long Udp6RcvbufErrors = 0ULL;
338
- unsigned long long Udp6SndbufErrors = 0ULL;
339
- unsigned long long Udp6InCsumErrors = 0ULL;
340
- unsigned long long Udp6IgnoredMulti = 0ULL;
341
- unsigned long long UdpLite6InDatagrams = 0ULL;
342
- unsigned long long UdpLite6NoPorts = 0ULL;
343
- unsigned long long UdpLite6InErrors = 0ULL;
344
- unsigned long long UdpLite6OutDatagrams = 0ULL;
345
- unsigned long long UdpLite6RcvbufErrors = 0ULL;
346
- unsigned long long UdpLite6SndbufErrors = 0ULL;
347
- unsigned long long UdpLite6InCsumErrors = 0ULL;
348
-
349
- unsigned long long *ptr = NULL;
350
-
262
for(l = 0; l < lines ;l++) {
263
size_t words = procfile_linewords(ff, l);
264
if(unlikely(words < 2)) {
@@ -355,110 +266,9 @@ int do_proc_net_snmp6(int update_every, usec_t dt) {
266
continue;
267
}
268
358
- char *name = procfile_lineword(ff, l, 0);
359
- char * value = procfile_lineword(ff, l, 1);
360
- if(unlikely(!name || !*name || !value || !*value))
361
- continue;
362
-
363
- uint32_t hash = simple_hash(name);
364
-
365
- if(unlikely(hash == hash_Ip6InReceives && strsame(name, "Ip6InReceives") == 0)) ptr = &Ip6InReceives;
366
- else if(unlikely(hash == hash_Ip6InHdrErrors && strsame(name, "Ip6InHdrErrors") == 0)) ptr = &Ip6InHdrErrors;
367
- else if(unlikely(hash == hash_Ip6InTooBigErrors && strsame(name, "Ip6InTooBigErrors") == 0)) ptr = &Ip6InTooBigErrors;
368
- else if(unlikely(hash == hash_Ip6InNoRoutes && strsame(name, "Ip6InNoRoutes") == 0)) ptr = &Ip6InNoRoutes;
369
- else if(unlikely(hash == hash_Ip6InAddrErrors && strsame(name, "Ip6InAddrErrors") == 0)) ptr = &Ip6InAddrErrors;
370
- else if(unlikely(hash == hash_Ip6InUnknownProtos && strsame(name, "Ip6InUnknownProtos") == 0)) ptr = &Ip6InUnknownProtos;
371
- else if(unlikely(hash == hash_Ip6InTruncatedPkts && strsame(name, "Ip6InTruncatedPkts") == 0)) ptr = &Ip6InTruncatedPkts;
372
- else if(unlikely(hash == hash_Ip6InDiscards && strsame(name, "Ip6InDiscards") == 0)) ptr = &Ip6InDiscards;
373
- else if(unlikely(hash == hash_Ip6InDelivers && strsame(name, "Ip6InDelivers") == 0)) ptr = &Ip6InDelivers;
374
- else if(unlikely(hash == hash_Ip6OutForwDatagrams && strsame(name, "Ip6OutForwDatagrams") == 0)) ptr = &Ip6OutForwDatagrams;
375
- else if(unlikely(hash == hash_Ip6OutRequests && strsame(name, "Ip6OutRequests") == 0)) ptr = &Ip6OutRequests;
376
- else if(unlikely(hash == hash_Ip6OutDiscards && strsame(name, "Ip6OutDiscards") == 0)) ptr = &Ip6OutDiscards;
377
- else if(unlikely(hash == hash_Ip6OutNoRoutes && strsame(name, "Ip6OutNoRoutes") == 0)) ptr = &Ip6OutNoRoutes;
378
- else if(unlikely(hash == hash_Ip6ReasmTimeout && strsame(name, "Ip6ReasmTimeout") == 0)) ptr = &Ip6ReasmTimeout;
379
- else if(unlikely(hash == hash_Ip6ReasmReqds && strsame(name, "Ip6ReasmReqds") == 0)) ptr = &Ip6ReasmReqds;
380
- else if(unlikely(hash == hash_Ip6ReasmOKs && strsame(name, "Ip6ReasmOKs") == 0)) ptr = &Ip6ReasmOKs;
381
- else if(unlikely(hash == hash_Ip6ReasmFails && strsame(name, "Ip6ReasmFails") == 0)) ptr = &Ip6ReasmFails;
382
- else if(unlikely(hash == hash_Ip6FragOKs && strsame(name, "Ip6FragOKs") == 0)) ptr = &Ip6FragOKs;
383
- else if(unlikely(hash == hash_Ip6FragFails && strsame(name, "Ip6FragFails") == 0)) ptr = &Ip6FragFails;
384
- else if(unlikely(hash == hash_Ip6FragCreates && strsame(name, "Ip6FragCreates") == 0)) ptr = &Ip6FragCreates;
385
- else if(unlikely(hash == hash_Ip6InMcastPkts && strsame(name, "Ip6InMcastPkts") == 0)) ptr = &Ip6InMcastPkts;
386
- else if(unlikely(hash == hash_Ip6OutMcastPkts && strsame(name, "Ip6OutMcastPkts") == 0)) ptr = &Ip6OutMcastPkts;
387
- else if(unlikely(hash == hash_Ip6InOctets && strsame(name, "Ip6InOctets") == 0)) ptr = &Ip6InOctets;
388
- else if(unlikely(hash == hash_Ip6OutOctets && strsame(name, "Ip6OutOctets") == 0)) ptr = &Ip6OutOctets;
389
- else if(unlikely(hash == hash_Ip6InMcastOctets && strsame(name, "Ip6InMcastOctets") == 0)) ptr = &Ip6InMcastOctets;
390
- else if(unlikely(hash == hash_Ip6OutMcastOctets && strsame(name, "Ip6OutMcastOctets") == 0)) ptr = &Ip6OutMcastOctets;
391
- else if(unlikely(hash == hash_Ip6InBcastOctets && strsame(name, "Ip6InBcastOctets") == 0)) ptr = &Ip6InBcastOctets;
392
- else if(unlikely(hash == hash_Ip6OutBcastOctets && strsame(name, "Ip6OutBcastOctets") == 0)) ptr = &Ip6OutBcastOctets;
393
- else if(unlikely(hash == hash_Ip6InNoECTPkts && strsame(name, "Ip6InNoECTPkts") == 0)) ptr = &Ip6InNoECTPkts;
394
- else if(unlikely(hash == hash_Ip6InECT1Pkts && strsame(name, "Ip6InECT1Pkts") == 0)) ptr = &Ip6InECT1Pkts;
395
- else if(unlikely(hash == hash_Ip6InECT0Pkts && strsame(name, "Ip6InECT0Pkts") == 0)) ptr = &Ip6InECT0Pkts;
396
- else if(unlikely(hash == hash_Ip6InCEPkts && strsame(name, "Ip6InCEPkts") == 0)) ptr = &Ip6InCEPkts;
397
- else if(unlikely(hash == hash_Icmp6InMsgs && strsame(name, "Icmp6InMsgs") == 0)) ptr = &Icmp6InMsgs;
398
- else if(unlikely(hash == hash_Icmp6InErrors && strsame(name, "Icmp6InErrors") == 0)) ptr = &Icmp6InErrors;
399
- else if(unlikely(hash == hash_Icmp6OutMsgs && strsame(name, "Icmp6OutMsgs") == 0)) ptr = &Icmp6OutMsgs;
400
- else if(unlikely(hash == hash_Icmp6OutErrors && strsame(name, "Icmp6OutErrors") == 0)) ptr = &Icmp6OutErrors;
401
- else if(unlikely(hash == hash_Icmp6InCsumErrors && strsame(name, "Icmp6InCsumErrors") == 0)) ptr = &Icmp6InCsumErrors;
402
- else if(unlikely(hash == hash_Icmp6InDestUnreachs && strsame(name, "Icmp6InDestUnreachs") == 0)) ptr = &Icmp6InDestUnreachs;
403
- else if(unlikely(hash == hash_Icmp6InPktTooBigs && strsame(name, "Icmp6InPktTooBigs") == 0)) ptr = &Icmp6InPktTooBigs;
404
- else if(unlikely(hash == hash_Icmp6InTimeExcds && strsame(name, "Icmp6InTimeExcds") == 0)) ptr = &Icmp6InTimeExcds;
405
- else if(unlikely(hash == hash_Icmp6InParmProblems && strsame(name, "Icmp6InParmProblems") == 0)) ptr = &Icmp6InParmProblems;
406
- else if(unlikely(hash == hash_Icmp6InEchos && strsame(name, "Icmp6InEchos") == 0)) ptr = &Icmp6InEchos;
407
- else if(unlikely(hash == hash_Icmp6InEchoReplies && strsame(name, "Icmp6InEchoReplies") == 0)) ptr = &Icmp6InEchoReplies;
408
- else if(unlikely(hash == hash_Icmp6InGroupMembQueries && strsame(name, "Icmp6InGroupMembQueries") == 0)) ptr = &Icmp6InGroupMembQueries;
409
- else if(unlikely(hash == hash_Icmp6InGroupMembResponses && strsame(name, "Icmp6InGroupMembResponses") == 0)) ptr = &Icmp6InGroupMembResponses;
410
- else if(unlikely(hash == hash_Icmp6InGroupMembReductions && strsame(name, "Icmp6InGroupMembReductions") == 0)) ptr = &Icmp6InGroupMembReductions;
411
- else if(unlikely(hash == hash_Icmp6InRouterSolicits && strsame(name, "Icmp6InRouterSolicits") == 0)) ptr = &Icmp6InRouterSolicits;
412
- else if(unlikely(hash == hash_Icmp6InRouterAdvertisements && strsame(name, "Icmp6InRouterAdvertisements") == 0)) ptr = &Icmp6InRouterAdvertisements;
413
- else if(unlikely(hash == hash_Icmp6InNeighborSolicits && strsame(name, "Icmp6InNeighborSolicits") == 0)) ptr = &Icmp6InNeighborSolicits;
414
- else if(unlikely(hash == hash_Icmp6InNeighborAdvertisements && strsame(name, "Icmp6InNeighborAdvertisements") == 0)) ptr = &Icmp6InNeighborAdvertisements;
415
- else if(unlikely(hash == hash_Icmp6InRedirects && strsame(name, "Icmp6InRedirects") == 0)) ptr = &Icmp6InRedirects;
416
- else if(unlikely(hash == hash_Icmp6InMLDv2Reports && strsame(name, "Icmp6InMLDv2Reports") == 0)) ptr = &Icmp6InMLDv2Reports;
417
- else if(unlikely(hash == hash_Icmp6OutDestUnreachs && strsame(name, "Icmp6OutDestUnreachs") == 0)) ptr = &Icmp6OutDestUnreachs;
418
- else if(unlikely(hash == hash_Icmp6OutPktTooBigs && strsame(name, "Icmp6OutPktTooBigs") == 0)) ptr = &Icmp6OutPktTooBigs;
419
- else if(unlikely(hash == hash_Icmp6OutTimeExcds && strsame(name, "Icmp6OutTimeExcds") == 0)) ptr = &Icmp6OutTimeExcds;
420
- else if(unlikely(hash == hash_Icmp6OutParmProblems && strsame(name, "Icmp6OutParmProblems") == 0)) ptr = &Icmp6OutParmProblems;
421
- else if(unlikely(hash == hash_Icmp6OutEchos && strsame(name, "Icmp6OutEchos") == 0)) ptr = &Icmp6OutEchos;
422
- else if(unlikely(hash == hash_Icmp6OutEchoReplies && strsame(name, "Icmp6OutEchoReplies") == 0)) ptr = &Icmp6OutEchoReplies;
423
- else if(unlikely(hash == hash_Icmp6OutGroupMembQueries && strsame(name, "Icmp6OutGroupMembQueries") == 0)) ptr = &Icmp6OutGroupMembQueries;
424
- else if(unlikely(hash == hash_Icmp6OutGroupMembResponses && strsame(name, "Icmp6OutGroupMembResponses") == 0)) ptr = &Icmp6OutGroupMembResponses;
425
- else if(unlikely(hash == hash_Icmp6OutGroupMembReductions && strsame(name, "Icmp6OutGroupMembReductions") == 0)) ptr = &Icmp6OutGroupMembReductions;
426
- else if(unlikely(hash == hash_Icmp6OutRouterSolicits && strsame(name, "Icmp6OutRouterSolicits") == 0)) ptr = &Icmp6OutRouterSolicits;
427
- else if(unlikely(hash == hash_Icmp6OutRouterAdvertisements && strsame(name, "Icmp6OutRouterAdvertisements") == 0)) ptr = &Icmp6OutRouterAdvertisements;
428
- else if(unlikely(hash == hash_Icmp6OutNeighborSolicits && strsame(name, "Icmp6OutNeighborSolicits") == 0)) ptr = &Icmp6OutNeighborSolicits;
429
- else if(unlikely(hash == hash_Icmp6OutNeighborAdvertisements && strsame(name, "Icmp6OutNeighborAdvertisements") == 0)) ptr = &Icmp6OutNeighborAdvertisements;
430
- else if(unlikely(hash == hash_Icmp6OutRedirects && strsame(name, "Icmp6OutRedirects") == 0)) ptr = &Icmp6OutRedirects;
431
- else if(unlikely(hash == hash_Icmp6OutMLDv2Reports && strsame(name, "Icmp6OutMLDv2Reports") == 0)) ptr = &Icmp6OutMLDv2Reports;
432
- else if(unlikely(hash == hash_Icmp6InType1 && strsame(name, "Icmp6InType1") == 0)) ptr = &Icmp6InType1;
433
- else if(unlikely(hash == hash_Icmp6InType128 && strsame(name, "Icmp6InType128") == 0)) ptr = &Icmp6InType128;
434
- else if(unlikely(hash == hash_Icmp6InType129 && strsame(name, "Icmp6InType129") == 0)) ptr = &Icmp6InType129;
435
- else if(unlikely(hash == hash_Icmp6InType136 && strsame(name, "Icmp6InType136") == 0)) ptr = &Icmp6InType136;
436
- else if(unlikely(hash == hash_Icmp6OutType1 && strsame(name, "Icmp6OutType1") == 0)) ptr = &Icmp6OutType1;
437
- else if(unlikely(hash == hash_Icmp6OutType128 && strsame(name, "Icmp6OutType128") == 0)) ptr = &Icmp6OutType128;
438
- else if(unlikely(hash == hash_Icmp6OutType129 && strsame(name, "Icmp6OutType129") == 0)) ptr = &Icmp6OutType129;
439
- else if(unlikely(hash == hash_Icmp6OutType133 && strsame(name, "Icmp6OutType133") == 0)) ptr = &Icmp6OutType133;
440
- else if(unlikely(hash == hash_Icmp6OutType135 && strsame(name, "Icmp6OutType135") == 0)) ptr = &Icmp6OutType135;
441
- else if(unlikely(hash == hash_Icmp6OutType143 && strsame(name, "Icmp6OutType143") == 0)) ptr = &Icmp6OutType143;
442
- else if(unlikely(hash == hash_Udp6InDatagrams && strsame(name, "Udp6InDatagrams") == 0)) ptr = &Udp6InDatagrams;
443
- else if(unlikely(hash == hash_Udp6NoPorts && strsame(name, "Udp6NoPorts") == 0)) ptr = &Udp6NoPorts;
444
- else if(unlikely(hash == hash_Udp6InErrors && strsame(name, "Udp6InErrors") == 0)) ptr = &Udp6InErrors;
445
- else if(unlikely(hash == hash_Udp6OutDatagrams && strsame(name, "Udp6OutDatagrams") == 0)) ptr = &Udp6OutDatagrams;
446
- else if(unlikely(hash == hash_Udp6RcvbufErrors && strsame(name, "Udp6RcvbufErrors") == 0)) ptr = &Udp6RcvbufErrors;
447
- else if(unlikely(hash == hash_Udp6SndbufErrors && strsame(name, "Udp6SndbufErrors") == 0)) ptr = &Udp6SndbufErrors;
448
- else if(unlikely(hash == hash_Udp6InCsumErrors && strsame(name, "Udp6InCsumErrors") == 0)) ptr = &Udp6InCsumErrors;
449
- else if(unlikely(hash == hash_Udp6IgnoredMulti && strsame(name, "Udp6IgnoredMulti") == 0)) ptr = &Udp6IgnoredMulti;
450
- else if(unlikely(hash == hash_UdpLite6InDatagrams && strsame(name, "UdpLite6InDatagrams") == 0)) ptr = &UdpLite6InDatagrams;
451
- else if(unlikely(hash == hash_UdpLite6NoPorts && strsame(name, "UdpLite6NoPorts") == 0)) ptr = &UdpLite6NoPorts;
452
- else if(unlikely(hash == hash_UdpLite6InErrors && strsame(name, "UdpLite6InErrors") == 0)) ptr = &UdpLite6InErrors;
453
- else if(unlikely(hash == hash_UdpLite6OutDatagrams && strsame(name, "UdpLite6OutDatagrams") == 0)) ptr = &UdpLite6OutDatagrams;
454
- else if(unlikely(hash == hash_UdpLite6RcvbufErrors && strsame(name, "UdpLite6RcvbufErrors") == 0)) ptr = &UdpLite6RcvbufErrors;
455
- else if(unlikely(hash == hash_UdpLite6SndbufErrors && strsame(name, "UdpLite6SndbufErrors") == 0)) ptr = &UdpLite6SndbufErrors;
456
- else if(unlikely(hash == hash_UdpLite6InCsumErrors && strsame(name, "UdpLite6InCsumErrors") == 0)) ptr = &UdpLite6InCsumErrors;
457
-
458
- if(unlikely(ptr)) {
459
- *ptr = str2ull(value);
460
- ptr = NULL;
461
- }
269
+ if(unlikely(arl_check(arl_base,
270
+ procfile_lineword(ff, l, 0),
271
+ procfile_lineword(ff, l, 1)))) break;
272
}
273
274
RRDSET *st;