1
2
3
4
5
6
7
8 #ifndef _LINUX_SNMP_H
9 #define _LINUX_SNMP_H
10
11
12
13
14
15
16
17
18
19 enum
20 {
21 IPSTATS_MIB_NUM = 0,
22
23 IPSTATS_MIB_INPKTS,
24 IPSTATS_MIB_INOCTETS,
25 IPSTATS_MIB_INDELIVERS,
26 IPSTATS_MIB_OUTFORWDATAGRAMS,
27 IPSTATS_MIB_OUTPKTS,
28 IPSTATS_MIB_OUTOCTETS,
29
30 IPSTATS_MIB_INHDRERRORS,
31 IPSTATS_MIB_INTOOBIGERRORS,
32 IPSTATS_MIB_INNOROUTES,
33 IPSTATS_MIB_INADDRERRORS,
34 IPSTATS_MIB_INUNKNOWNPROTOS,
35 IPSTATS_MIB_INTRUNCATEDPKTS,
36 IPSTATS_MIB_INDISCARDS,
37 IPSTATS_MIB_OUTDISCARDS,
38 IPSTATS_MIB_OUTNOROUTES,
39 IPSTATS_MIB_REASMTIMEOUT,
40 IPSTATS_MIB_REASMREQDS,
41 IPSTATS_MIB_REASMOKS,
42 IPSTATS_MIB_REASMFAILS,
43 IPSTATS_MIB_FRAGOKS,
44 IPSTATS_MIB_FRAGFAILS,
45 IPSTATS_MIB_FRAGCREATES,
46 IPSTATS_MIB_INMCASTPKTS,
47 IPSTATS_MIB_OUTMCASTPKTS,
48 IPSTATS_MIB_INBCASTPKTS,
49 IPSTATS_MIB_OUTBCASTPKTS,
50 IPSTATS_MIB_INMCASTOCTETS,
51 IPSTATS_MIB_OUTMCASTOCTETS,
52 IPSTATS_MIB_INBCASTOCTETS,
53 IPSTATS_MIB_OUTBCASTOCTETS,
54 IPSTATS_MIB_CSUMERRORS,
55 IPSTATS_MIB_NOECTPKTS,
56 IPSTATS_MIB_ECT1PKTS,
57 IPSTATS_MIB_ECT0PKTS,
58 IPSTATS_MIB_CEPKTS,
59 IPSTATS_MIB_REASM_OVERLAPS,
60 __IPSTATS_MIB_MAX
61 };
62
63
64
65
66
67
68 enum
69 {
70 ICMP_MIB_NUM = 0,
71 ICMP_MIB_INMSGS,
72 ICMP_MIB_INERRORS,
73 ICMP_MIB_INDESTUNREACHS,
74 ICMP_MIB_INTIMEEXCDS,
75 ICMP_MIB_INPARMPROBS,
76 ICMP_MIB_INSRCQUENCHS,
77 ICMP_MIB_INREDIRECTS,
78 ICMP_MIB_INECHOS,
79 ICMP_MIB_INECHOREPS,
80 ICMP_MIB_INTIMESTAMPS,
81 ICMP_MIB_INTIMESTAMPREPS,
82 ICMP_MIB_INADDRMASKS,
83 ICMP_MIB_INADDRMASKREPS,
84 ICMP_MIB_OUTMSGS,
85 ICMP_MIB_OUTERRORS,
86 ICMP_MIB_OUTDESTUNREACHS,
87 ICMP_MIB_OUTTIMEEXCDS,
88 ICMP_MIB_OUTPARMPROBS,
89 ICMP_MIB_OUTSRCQUENCHS,
90 ICMP_MIB_OUTREDIRECTS,
91 ICMP_MIB_OUTECHOS,
92 ICMP_MIB_OUTECHOREPS,
93 ICMP_MIB_OUTTIMESTAMPS,
94 ICMP_MIB_OUTTIMESTAMPREPS,
95 ICMP_MIB_OUTADDRMASKS,
96 ICMP_MIB_OUTADDRMASKREPS,
97 ICMP_MIB_CSUMERRORS,
98 __ICMP_MIB_MAX
99 };
100
101 #define __ICMPMSG_MIB_MAX 512
102
103
104
105
106
107 enum
108 {
109 ICMP6_MIB_NUM = 0,
110 ICMP6_MIB_INMSGS,
111 ICMP6_MIB_INERRORS,
112 ICMP6_MIB_OUTMSGS,
113 ICMP6_MIB_OUTERRORS,
114 ICMP6_MIB_CSUMERRORS,
115 __ICMP6_MIB_MAX
116 };
117
118 #define __ICMP6MSG_MIB_MAX 512
119
120
121
122
123
124
125 enum
126 {
127 TCP_MIB_NUM = 0,
128 TCP_MIB_RTOALGORITHM,
129 TCP_MIB_RTOMIN,
130 TCP_MIB_RTOMAX,
131 TCP_MIB_MAXCONN,
132 TCP_MIB_ACTIVEOPENS,
133 TCP_MIB_PASSIVEOPENS,
134 TCP_MIB_ATTEMPTFAILS,
135 TCP_MIB_ESTABRESETS,
136 TCP_MIB_CURRESTAB,
137 TCP_MIB_INSEGS,
138 TCP_MIB_OUTSEGS,
139 TCP_MIB_RETRANSSEGS,
140 TCP_MIB_INERRS,
141 TCP_MIB_OUTRSTS,
142 TCP_MIB_CSUMERRORS,
143 __TCP_MIB_MAX
144 };
145
146
147
148
149
150
151 enum
152 {
153 UDP_MIB_NUM = 0,
154 UDP_MIB_INDATAGRAMS,
155 UDP_MIB_NOPORTS,
156 UDP_MIB_INERRORS,
157 UDP_MIB_OUTDATAGRAMS,
158 UDP_MIB_RCVBUFERRORS,
159 UDP_MIB_SNDBUFERRORS,
160 UDP_MIB_CSUMERRORS,
161 UDP_MIB_IGNOREDMULTI,
162 __UDP_MIB_MAX
163 };
164
165
166 enum
167 {
168 LINUX_MIB_NUM = 0,
169 LINUX_MIB_SYNCOOKIESSENT,
170 LINUX_MIB_SYNCOOKIESRECV,
171 LINUX_MIB_SYNCOOKIESFAILED,
172 LINUX_MIB_EMBRYONICRSTS,
173 LINUX_MIB_PRUNECALLED,
174 LINUX_MIB_RCVPRUNED,
175 LINUX_MIB_OFOPRUNED,
176 LINUX_MIB_OUTOFWINDOWICMPS,
177 LINUX_MIB_LOCKDROPPEDICMPS,
178 LINUX_MIB_ARPFILTER,
179 LINUX_MIB_TIMEWAITED,
180 LINUX_MIB_TIMEWAITRECYCLED,
181 LINUX_MIB_TIMEWAITKILLED,
182 LINUX_MIB_PAWSACTIVEREJECTED,
183 LINUX_MIB_PAWSESTABREJECTED,
184 LINUX_MIB_DELAYEDACKS,
185 LINUX_MIB_DELAYEDACKLOCKED,
186 LINUX_MIB_DELAYEDACKLOST,
187 LINUX_MIB_LISTENOVERFLOWS,
188 LINUX_MIB_LISTENDROPS,
189 LINUX_MIB_TCPHPHITS,
190 LINUX_MIB_TCPPUREACKS,
191 LINUX_MIB_TCPHPACKS,
192 LINUX_MIB_TCPRENORECOVERY,
193 LINUX_MIB_TCPSACKRECOVERY,
194 LINUX_MIB_TCPSACKRENEGING,
195 LINUX_MIB_TCPSACKREORDER,
196 LINUX_MIB_TCPRENOREORDER,
197 LINUX_MIB_TCPTSREORDER,
198 LINUX_MIB_TCPFULLUNDO,
199 LINUX_MIB_TCPPARTIALUNDO,
200 LINUX_MIB_TCPDSACKUNDO,
201 LINUX_MIB_TCPLOSSUNDO,
202 LINUX_MIB_TCPLOSTRETRANSMIT,
203 LINUX_MIB_TCPRENOFAILURES,
204 LINUX_MIB_TCPSACKFAILURES,
205 LINUX_MIB_TCPLOSSFAILURES,
206 LINUX_MIB_TCPFASTRETRANS,
207 LINUX_MIB_TCPSLOWSTARTRETRANS,
208 LINUX_MIB_TCPTIMEOUTS,
209 LINUX_MIB_TCPLOSSPROBES,
210 LINUX_MIB_TCPLOSSPROBERECOVERY,
211 LINUX_MIB_TCPRENORECOVERYFAIL,
212 LINUX_MIB_TCPSACKRECOVERYFAIL,
213 LINUX_MIB_TCPRCVCOLLAPSED,
214 LINUX_MIB_TCPDSACKOLDSENT,
215 LINUX_MIB_TCPDSACKOFOSENT,
216 LINUX_MIB_TCPDSACKRECV,
217 LINUX_MIB_TCPDSACKOFORECV,
218 LINUX_MIB_TCPABORTONDATA,
219 LINUX_MIB_TCPABORTONCLOSE,
220 LINUX_MIB_TCPABORTONMEMORY,
221 LINUX_MIB_TCPABORTONTIMEOUT,
222 LINUX_MIB_TCPABORTONLINGER,
223 LINUX_MIB_TCPABORTFAILED,
224 LINUX_MIB_TCPMEMORYPRESSURES,
225 LINUX_MIB_TCPMEMORYPRESSURESCHRONO,
226 LINUX_MIB_TCPSACKDISCARD,
227 LINUX_MIB_TCPDSACKIGNOREDOLD,
228 LINUX_MIB_TCPDSACKIGNOREDNOUNDO,
229 LINUX_MIB_TCPSPURIOUSRTOS,
230 LINUX_MIB_TCPMD5NOTFOUND,
231 LINUX_MIB_TCPMD5UNEXPECTED,
232 LINUX_MIB_TCPMD5FAILURE,
233 LINUX_MIB_SACKSHIFTED,
234 LINUX_MIB_SACKMERGED,
235 LINUX_MIB_SACKSHIFTFALLBACK,
236 LINUX_MIB_TCPBACKLOGDROP,
237 LINUX_MIB_PFMEMALLOCDROP,
238 LINUX_MIB_TCPMINTTLDROP,
239 LINUX_MIB_TCPDEFERACCEPTDROP,
240 LINUX_MIB_IPRPFILTER,
241 LINUX_MIB_TCPTIMEWAITOVERFLOW,
242 LINUX_MIB_TCPREQQFULLDOCOOKIES,
243 LINUX_MIB_TCPREQQFULLDROP,
244 LINUX_MIB_TCPRETRANSFAIL,
245 LINUX_MIB_TCPRCVCOALESCE,
246 LINUX_MIB_TCPBACKLOGCOALESCE,
247 LINUX_MIB_TCPOFOQUEUE,
248 LINUX_MIB_TCPOFODROP,
249 LINUX_MIB_TCPOFOMERGE,
250 LINUX_MIB_TCPCHALLENGEACK,
251 LINUX_MIB_TCPSYNCHALLENGE,
252 LINUX_MIB_TCPFASTOPENACTIVE,
253 LINUX_MIB_TCPFASTOPENACTIVEFAIL,
254 LINUX_MIB_TCPFASTOPENPASSIVE,
255 LINUX_MIB_TCPFASTOPENPASSIVEFAIL,
256 LINUX_MIB_TCPFASTOPENLISTENOVERFLOW,
257 LINUX_MIB_TCPFASTOPENCOOKIEREQD,
258 LINUX_MIB_TCPFASTOPENBLACKHOLE,
259 LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES,
260 LINUX_MIB_BUSYPOLLRXPACKETS,
261 LINUX_MIB_TCPAUTOCORKING,
262 LINUX_MIB_TCPFROMZEROWINDOWADV,
263 LINUX_MIB_TCPTOZEROWINDOWADV,
264 LINUX_MIB_TCPWANTZEROWINDOWADV,
265 LINUX_MIB_TCPSYNRETRANS,
266 LINUX_MIB_TCPORIGDATASENT,
267 LINUX_MIB_TCPHYSTARTTRAINDETECT,
268 LINUX_MIB_TCPHYSTARTTRAINCWND,
269 LINUX_MIB_TCPHYSTARTDELAYDETECT,
270 LINUX_MIB_TCPHYSTARTDELAYCWND,
271 LINUX_MIB_TCPACKSKIPPEDSYNRECV,
272 LINUX_MIB_TCPACKSKIPPEDPAWS,
273 LINUX_MIB_TCPACKSKIPPEDSEQ,
274 LINUX_MIB_TCPACKSKIPPEDFINWAIT2,
275 LINUX_MIB_TCPACKSKIPPEDTIMEWAIT,
276 LINUX_MIB_TCPACKSKIPPEDCHALLENGE,
277 LINUX_MIB_TCPWINPROBE,
278 LINUX_MIB_TCPKEEPALIVE,
279 LINUX_MIB_TCPMTUPFAIL,
280 LINUX_MIB_TCPMTUPSUCCESS,
281 LINUX_MIB_TCPDELIVERED,
282 LINUX_MIB_TCPDELIVEREDCE,
283 LINUX_MIB_TCPACKCOMPRESSED,
284 LINUX_MIB_TCPZEROWINDOWDROP,
285 LINUX_MIB_TCPRCVQDROP,
286 LINUX_MIB_TCPWQUEUETOOBIG,
287 LINUX_MIB_TCPFASTOPENPASSIVEALTKEY,
288 __LINUX_MIB_MAX
289 };
290
291
292 enum
293 {
294 LINUX_MIB_XFRMNUM = 0,
295 LINUX_MIB_XFRMINERROR,
296 LINUX_MIB_XFRMINBUFFERERROR,
297 LINUX_MIB_XFRMINHDRERROR,
298 LINUX_MIB_XFRMINNOSTATES,
299 LINUX_MIB_XFRMINSTATEPROTOERROR,
300 LINUX_MIB_XFRMINSTATEMODEERROR,
301 LINUX_MIB_XFRMINSTATESEQERROR,
302 LINUX_MIB_XFRMINSTATEEXPIRED,
303 LINUX_MIB_XFRMINSTATEMISMATCH,
304 LINUX_MIB_XFRMINSTATEINVALID,
305 LINUX_MIB_XFRMINTMPLMISMATCH,
306 LINUX_MIB_XFRMINNOPOLS,
307 LINUX_MIB_XFRMINPOLBLOCK,
308 LINUX_MIB_XFRMINPOLERROR,
309 LINUX_MIB_XFRMOUTERROR,
310 LINUX_MIB_XFRMOUTBUNDLEGENERROR,
311 LINUX_MIB_XFRMOUTBUNDLECHECKERROR,
312 LINUX_MIB_XFRMOUTNOSTATES,
313 LINUX_MIB_XFRMOUTSTATEPROTOERROR,
314 LINUX_MIB_XFRMOUTSTATEMODEERROR,
315 LINUX_MIB_XFRMOUTSTATESEQERROR,
316 LINUX_MIB_XFRMOUTSTATEEXPIRED,
317 LINUX_MIB_XFRMOUTPOLBLOCK,
318 LINUX_MIB_XFRMOUTPOLDEAD,
319 LINUX_MIB_XFRMOUTPOLERROR,
320 LINUX_MIB_XFRMFWDHDRERROR,
321 LINUX_MIB_XFRMOUTSTATEINVALID,
322 LINUX_MIB_XFRMACQUIREERROR,
323 __LINUX_MIB_XFRMMAX
324 };
325
326 #endif