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