xref: /openbsd/usr.sbin/snmpd/mib.h (revision 264ca280)
1 /*	$OpenBSD: mib.h,v 1.38 2016/03/07 19:33:26 mmcc Exp $	*/
2 
3 /*
4  * Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org>
5  *
6  * Permission to use, copy, modify, and distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 #ifndef SNMPD_MIB_H
20 #define SNMPD_MIB_H
21 
22 /*
23  * Adding new MIBs:
24  * - add the OID definitions below
25  * - add the OIDs to the MIB_TREE table at the end of this file
26  * - optional: write the implementation in mib.c
27  */
28 
29 /* From the SNMPv2-SMI MIB */
30 #define MIB_iso				1
31 #define MIB_org				MIB_iso, 3
32 #define MIB_dod				MIB_org, 6
33 #define MIB_internet			MIB_dod, 1
34 #define MIB_directory			MIB_internet, 1
35 #define MIB_mgmt			MIB_internet, 2
36 #define MIB_mib_2			MIB_mgmt, 1	/* XXX mib-2 */
37 #define MIB_system			MIB_mib_2, 1
38 #define OIDIDX_system			7
39 #define MIB_sysDescr			MIB_system, 1
40 #define MIB_sysOID			MIB_system, 2
41 #define MIB_sysUpTime			MIB_system, 3
42 #define MIB_sysContact			MIB_system, 4
43 #define MIB_sysName			MIB_system, 5
44 #define MIB_sysLocation			MIB_system, 6
45 #define MIB_sysServices			MIB_system, 7
46 #define MIB_sysORLastChange		MIB_system, 8
47 #define MIB_sysORTable			MIB_system, 9
48 #define MIB_sysOREntry			MIB_sysORTable, 1
49 #define OIDIDX_sysOR			9
50 #define OIDIDX_sysOREntry		10
51 #define MIB_sysORIndex			MIB_sysOREntry, 1
52 #define MIB_sysORID			MIB_sysOREntry, 2
53 #define MIB_sysORDescr			MIB_sysOREntry, 3
54 #define MIB_sysORUpTime			MIB_sysOREntry, 4
55 #define MIB_transmission		MIB_mib_2, 10
56 #define MIB_snmp			MIB_mib_2, 11
57 #define OIDIDX_snmp			7
58 #define MIB_snmpInPkts			MIB_snmp, 1
59 #define MIB_snmpOutPkts			MIB_snmp, 2
60 #define MIB_snmpInBadVersions		MIB_snmp, 3
61 #define MIB_snmpInBadCommunityNames	MIB_snmp, 4
62 #define MIB_snmpInBadCommunityUses	MIB_snmp, 5
63 #define MIB_snmpInASNParseErrs		MIB_snmp, 6
64 #define MIB_snmpInTooBigs		MIB_snmp, 8
65 #define MIB_snmpInNoSuchNames		MIB_snmp, 9
66 #define MIB_snmpInBadValues		MIB_snmp, 10
67 #define MIB_snmpInReadOnlys		MIB_snmp, 11
68 #define MIB_snmpInGenErrs		MIB_snmp, 12
69 #define MIB_snmpInTotalReqVars		MIB_snmp, 13
70 #define MIB_snmpInTotalSetVars		MIB_snmp, 14
71 #define MIB_snmpInGetRequests		MIB_snmp, 15
72 #define MIB_snmpInGetNexts		MIB_snmp, 16
73 #define MIB_snmpInSetRequests		MIB_snmp, 17
74 #define MIB_snmpInGetResponses		MIB_snmp, 18
75 #define MIB_snmpInTraps			MIB_snmp, 19
76 #define MIB_snmpOutTooBigs		MIB_snmp, 20
77 #define MIB_snmpOutNoSuchNames		MIB_snmp, 21
78 #define MIB_snmpOutBadValues		MIB_snmp, 22
79 #define MIB_snmpOutGenErrs		MIB_snmp, 24
80 #define MIB_snmpOutGetRequests		MIB_snmp, 25
81 #define MIB_snmpOutGetNexts		MIB_snmp, 26
82 #define MIB_snmpOutSetRequests		MIB_snmp, 27
83 #define MIB_snmpOutGetResponses		MIB_snmp, 28
84 #define MIB_snmpOutTraps		MIB_snmp, 29
85 #define MIB_snmpEnableAuthenTraps	MIB_snmp, 30
86 #define MIB_snmpSilentDrops		MIB_snmp, 31
87 #define MIB_snmpProxyDrops		MIB_snmp, 32
88 #define MIB_experimental		MIB_internet, 3
89 #define MIB_private			MIB_internet, 4
90 #define MIB_enterprises			MIB_private, 1
91 #define MIB_security			MIB_internet, 5
92 #define MIB_snmpV2			MIB_internet, 6
93 #define MIB_snmpDomains			MIB_snmpV2, 1
94 #define MIB_snmpProxies			MIB_snmpV2, 2
95 #define MIB_snmpModules			MIB_snmpV2, 3
96 #define MIB_snmpMIB			MIB_snmpModules, 1
97 #define MIB_snmpMIBObjects		MIB_snmpMIB, 1
98 #define MIB_snmpTrap			MIB_snmpMIBObjects, 4
99 #define MIB_snmpTrapOID			MIB_snmpTrap, 1
100 #define MIB_snmpTrapEnterprise		MIB_snmpTrap, 3
101 #define MIB_snmpTraps			MIB_snmpMIBObjects, 5
102 #define MIB_coldStart			MIB_snmpTraps, 1
103 #define MIB_warmStart			MIB_snmpTraps, 2
104 #define MIB_linkDown			MIB_snmpTraps, 3
105 #define MIB_linkUp			MIB_snmpTraps, 4
106 #define MIB_authenticationFailure	MIB_snmpTraps, 5
107 #define MIB_egpNeighborLoss		MIB_snmpTraps, 6
108 
109 /* SNMP-USER-BASED-SM-MIB */
110 #define MIB_framework			MIB_snmpModules, 10
111 #define MIB_frameworkObjects		MIB_framework, 2
112 #define OIDIDX_snmpEngine		9
113 #define MIB_snmpEngine			MIB_frameworkObjects, 1
114 #define MIB_snmpEngineID		MIB_snmpEngine, 1
115 #define MIB_snmpEngineBoots		MIB_snmpEngine, 2
116 #define MIB_snmpEngineTime		MIB_snmpEngine, 3
117 #define MIB_snmpEngineMaxMsgSize	MIB_snmpEngine, 4
118 #define MIB_usm				MIB_snmpModules, 15
119 #define MIB_usmObjects			MIB_usm, 1
120 #define MIB_usmStats			MIB_usmObjects, 1
121 #define OIDIDX_usmStats			9
122 #define OIDVAL_usmErrSecLevel		1
123 #define OIDVAL_usmErrTimeWindow		2
124 #define OIDVAL_usmErrUserName		3
125 #define OIDVAL_usmErrEngineId		4
126 #define OIDVAL_usmErrDigest		5
127 #define OIDVAL_usmErrDecrypt		6
128 #define MIB_usmStatsUnsupportedSecLevels MIB_usmStats, OIDVAL_usmErrSecLevel
129 #define MIB_usmStatsNotInTimeWindow	MIB_usmStats, OIDVAL_usmErrTimeWindow
130 #define MIB_usmStatsUnknownUserNames	MIB_usmStats, OIDVAL_usmErrUserName
131 #define MIB_usmStatsUnknownEngineId	MIB_usmStats, OIDVAL_usmErrEngineId
132 #define MIB_usmStatsWrongDigests	MIB_usmStats, OIDVAL_usmErrDigest
133 #define MIB_usmStatsDecryptionErrors	MIB_usmStats, OIDVAL_usmErrDecrypt
134 
135 /* HOST-RESOURCES-MIB */
136 #define MIB_host			MIB_mib_2, 25
137 #define MIB_hrSystem			MIB_host, 1
138 #define OIDIDX_hrsystem			8
139 #define MIB_hrSystemUptime		MIB_hrSystem, 1
140 #define MIB_hrSystemDate		MIB_hrSystem, 2
141 #define MIB_hrSystemInitialLoadDevice	MIB_hrSystem, 3
142 #define MIB_hrSystemInitialLoadParameters MIB_hrSystem, 4
143 #define MIB_hrSystemNumUsers		MIB_hrSystem, 5
144 #define MIB_hrSystemProcesses		MIB_hrSystem, 6
145 #define MIB_hrSystemMaxProcesses	MIB_hrSystem, 7
146 #define MIB_hrStorage			MIB_host, 2
147 #define MIB_hrStorageTypes		MIB_hrStorage, 1
148 #define MIB_hrStorageOther		MIB_hrStorageTypes, 1
149 #define MIB_hrStorageRam		MIB_hrStorageTypes, 2
150 #define MIB_hrStorageVirtualMemory	MIB_hrStorageTypes, 3
151 #define MIB_hrStorageFixedDisk		MIB_hrStorageTypes, 4
152 #define MIB_hrStorageRemovableDisk	MIB_hrStorageTypes, 5
153 #define MIB_hrStorageFloppyDisk		MIB_hrStorageTypes, 6
154 #define MIB_hrStorageCompactDisc	MIB_hrStorageTypes, 7
155 #define MIB_hrStorageRamDisk		MIB_hrStorageTypes, 8
156 #define MIB_hrStorageFlashMemory	MIB_hrStorageTypes, 9
157 #define MIB_hrStorageNetworkDisk	MIB_hrStorageTypes, 10
158 #define MIB_hrMemorySize		MIB_hrStorage, 2
159 #define MIB_hrStorageTable		MIB_hrStorage, 3
160 #define MIB_hrStorageEntry		MIB_hrStorageTable, 1
161 #define OIDIDX_hrStorage		10
162 #define OIDIDX_hrStorageEntry		11
163 #define MIB_hrStorageIndex		MIB_hrStorageEntry, 1
164 #define MIB_hrStorageType		MIB_hrStorageEntry, 2
165 #define MIB_hrStorageDescr		MIB_hrStorageEntry, 3
166 #define MIB_hrStorageAllocationUnits	MIB_hrStorageEntry, 4
167 #define MIB_hrStorageSize		MIB_hrStorageEntry, 5
168 #define MIB_hrStorageUsed		MIB_hrStorageEntry, 6
169 #define MIB_hrStorageAllocationFailures	MIB_hrStorageEntry, 7
170 #define MIB_hrDevice			MIB_host, 3
171 #define MIB_hrDeviceTypes		MIB_hrDevice, 1
172 #define MIB_hrDeviceOther		MIB_hrDeviceTypes, 1
173 #define MIB_hrDeviceUnknown		MIB_hrDeviceTypes, 2
174 #define MIB_hrDeviceProcessor		MIB_hrDeviceTypes, 3
175 #define MIB_hrDeviceNetwork		MIB_hrDeviceTypes, 4
176 #define MIB_hrDevicePrinter		MIB_hrDeviceTypes, 5
177 #define MIB_hrDeviceDiskStorage		MIB_hrDeviceTypes, 6
178 #define MIB_hrDeviceVideo		MIB_hrDeviceTypes, 10
179 #define MIB_hrDeviceAudio		MIB_hrDeviceTypes, 11
180 #define MIB_hrDeviceCoprocessor		MIB_hrDeviceTypes, 12
181 #define MIB_hrDeviceKeyboard		MIB_hrDeviceTypes, 13
182 #define MIB_hrDeviceModem		MIB_hrDeviceTypes, 14
183 #define MIB_hrDeviceParallelPort	MIB_hrDeviceTypes, 15
184 #define MIB_hrDevicePointing		MIB_hrDeviceTypes, 16
185 #define MIB_hrDeviceSerialPort		MIB_hrDeviceTypes, 17
186 #define MIB_hrDeviceTape		MIB_hrDeviceTypes, 18
187 #define MIB_hrDeviceClock		MIB_hrDeviceTypes, 19
188 #define MIB_hrDeviceVolatileMemory	MIB_hrDeviceTypes, 20
189 #define MIB_hrDeviceNonVolatileMemory	MIB_hrDeviceTypes, 21
190 #define MIB_hrDeviceTable		MIB_hrDevice, 2
191 #define MIB_hrDeviceEntry		MIB_hrDeviceTable, 1
192 #define OIDIDX_hrDevice			10
193 #define OIDIDX_hrDeviceEntry		11
194 #define MIB_hrDeviceIndex		MIB_hrDeviceEntry, 1
195 #define MIB_hrDeviceType		MIB_hrDeviceEntry, 2
196 #define MIB_hrDeviceDescr		MIB_hrDeviceEntry, 3
197 #define MIB_hrDeviceID			MIB_hrDeviceEntry, 4
198 #define MIB_hrDeviceStatus		MIB_hrDeviceEntry, 5
199 #define MIB_hrDeviceErrors		MIB_hrDeviceEntry, 6
200 #define MIB_hrProcessorTable		MIB_hrDevice, 3
201 #define MIB_hrProcessorEntry		MIB_hrProcessorTable, 1
202 #define OIDIDX_hrProcessor		10
203 #define OIDIDX_hrProcessorEntry		11
204 #define MIB_hrProcessorFrwID		MIB_hrProcessorEntry, 1
205 #define MIB_hrProcessorLoad		MIB_hrProcessorEntry, 2
206 #define MIB_hrSWRun			MIB_host, 4
207 #define MIB_hrSWOSIndex			MIB_hrSWRun, 1
208 #define MIB_hrSWRunTable		MIB_hrSWRun, 2
209 #define MIB_hrSWRunEntry		MIB_hrSWRunTable, 1
210 #define OIDIDX_hrSWRun			10
211 #define OIDIDX_hrSWRunEntry		11
212 #define MIB_hrSWRunIndex		MIB_hrSWRunEntry, 1
213 #define MIB_hrSWRunName			MIB_hrSWRunEntry, 2
214 #define MIB_hrSWRunID			MIB_hrSWRunEntry, 3
215 #define MIB_hrSWRunPath			MIB_hrSWRunEntry, 4
216 #define MIB_hrSWRunParameters		MIB_hrSWRunEntry, 5
217 #define MIB_hrSWRunType			MIB_hrSWRunEntry, 6
218 #define MIB_hrSWRunStatus		MIB_hrSWRunEntry, 7
219 #define MIB_hrSWRunPerf			MIB_host, 5
220 #define MIB_hrSWRunPerfTable		MIB_hrSWRunPerf, 1
221 #define OIDIDX_hrSWRunPerf		10
222 #define OIDIDX_hrSWRunPerfEntry		11
223 #define MIB_hrSWRunPerfEntry		MIB_hrSWRunPerfTable, 1
224 #define MIB_hrSWRunPerfCPU		MIB_hrSWRunPerfEntry, 1
225 #define MIB_hrSWRunPerfMem		MIB_hrSWRunPerfEntry, 2
226 #define MIB_hrSWInstalled		MIB_host, 6
227 #define MIB_hrMIBAdminInfo		MIB_host, 7
228 
229 /* IF-MIB */
230 #define MIB_ifMIB			MIB_mib_2, 31
231 #define MIB_ifMIBObjects		MIB_ifMIB, 1
232 #define MIB_ifXTable			MIB_ifMIBObjects, 1
233 #define MIB_ifXEntry			MIB_ifXTable, 1
234 #define OIDIDX_ifX			10
235 #define OIDIDX_ifXEntry			11
236 #define MIB_ifName			MIB_ifXEntry, 1
237 #define MIB_ifInMulticastPkts		MIB_ifXEntry, 2
238 #define MIB_ifInBroadcastPkts		MIB_ifXEntry, 3
239 #define MIB_ifOutMulticastPkts		MIB_ifXEntry, 4
240 #define MIB_ifOutBroadcastPkts		MIB_ifXEntry, 5
241 #define MIB_ifHCInOctets		MIB_ifXEntry, 6
242 #define MIB_ifHCInUcastPkts		MIB_ifXEntry, 7
243 #define MIB_ifHCInMulticastPkts		MIB_ifXEntry, 8
244 #define MIB_ifHCInBroadcastPkts		MIB_ifXEntry, 9
245 #define MIB_ifHCOutOctets		MIB_ifXEntry, 10
246 #define MIB_ifHCOutUcastPkts		MIB_ifXEntry, 11
247 #define MIB_ifHCOutMulticastPkts	MIB_ifXEntry, 12
248 #define MIB_ifHCOutBroadcastPkts	MIB_ifXEntry, 13
249 #define MIB_ifLinkUpDownTrapEnable	MIB_ifXEntry, 14
250 #define MIB_ifHighSpeed			MIB_ifXEntry, 15
251 #define MIB_ifPromiscuousMode		MIB_ifXEntry, 16
252 #define MIB_ifConnectorPresent		MIB_ifXEntry, 17
253 #define MIB_ifAlias			MIB_ifXEntry, 18
254 #define MIB_ifCounterDiscontinuityTime	MIB_ifXEntry, 19
255 #define MIB_ifStackTable		MIB_ifMIBObjects, 2
256 #define MIB_ifStackEntry		MIB_ifStackTable, 1
257 #define OIDIDX_ifStack			10
258 #define OIDIDX_ifStackEntry		11
259 #define MIB_ifStackStatus		MIB_ifStackEntry, 3
260 #define MIB_ifRcvAddressTable		MIB_ifMIBObjects, 4
261 #define MIB_ifRcvAddressEntry		MIB_ifRcvAddressTable, 1
262 #define OIDIDX_ifRcvAddress		10
263 #define OIDIDX_ifRcvAddressEntry	11
264 #define MIB_ifRcvAddressStatus		MIB_ifRcvAddressEntry, 2
265 #define MIB_ifRcvAddressType		MIB_ifRcvAddressEntry, 3
266 #define MIB_ifStackLastChange		MIB_ifMIBObjects, 6
267 #define MIB_interfaces			MIB_mib_2, 2
268 #define MIB_ifNumber			MIB_interfaces, 1
269 #define MIB_ifTable			MIB_interfaces, 2
270 #define MIB_ifEntry			MIB_ifTable, 1
271 #define OIDIDX_if			9
272 #define OIDIDX_ifEntry			10
273 #define MIB_ifIndex			MIB_ifEntry, 1
274 #define MIB_ifDescr			MIB_ifEntry, 2
275 #define MIB_ifType			MIB_ifEntry, 3
276 #define MIB_ifMtu			MIB_ifEntry, 4
277 #define MIB_ifSpeed			MIB_ifEntry, 5
278 #define MIB_ifPhysAddress		MIB_ifEntry, 6
279 #define MIB_ifAdminStatus		MIB_ifEntry, 7
280 #define MIB_ifOperStatus		MIB_ifEntry, 8
281 #define MIB_ifLastChange		MIB_ifEntry, 9
282 #define MIB_ifInOctets			MIB_ifEntry, 10
283 #define MIB_ifInUcastPkts		MIB_ifEntry, 11
284 #define MIB_ifInNUcastPkts		MIB_ifEntry, 12
285 #define MIB_ifInDiscards		MIB_ifEntry, 13
286 #define MIB_ifInErrors			MIB_ifEntry, 14
287 #define MIB_ifInUnknownProtos		MIB_ifEntry, 15
288 #define MIB_ifOutOctets			MIB_ifEntry, 16
289 #define MIB_ifOutUcastPkts		MIB_ifEntry, 17
290 #define MIB_ifOutNUcastPkts		MIB_ifEntry, 18
291 #define MIB_ifOutDiscards		MIB_ifEntry, 19
292 #define MIB_ifOutErrors			MIB_ifEntry, 20
293 #define MIB_ifOutQLen			MIB_ifEntry, 21
294 #define MIB_ifSpecific			MIB_ifEntry, 22
295 
296 /* IP-MIB */
297 #define MIB_ipMIB			MIB_mib_2, 4
298 #define OIDIDX_ip			7
299 #define MIB_ipForwarding		MIB_ipMIB, 1
300 #define MIB_ipDefaultTTL		MIB_ipMIB, 2
301 #define MIB_ipInReceives		MIB_ipMIB, 3
302 #define MIB_ipInHdrErrors		MIB_ipMIB, 4
303 #define MIB_ipInAddrErrors		MIB_ipMIB, 5
304 #define MIB_ipForwDatagrams		MIB_ipMIB, 6
305 #define MIB_ipInUnknownProtos		MIB_ipMIB, 7
306 #define MIB_ipInDiscards		MIB_ipMIB, 8
307 #define MIB_ipInDelivers		MIB_ipMIB, 9
308 #define MIB_ipOutRequests		MIB_ipMIB, 10
309 #define MIB_ipOutDiscards		MIB_ipMIB, 11
310 #define MIB_ipOutNoRoutes		MIB_ipMIB, 12
311 #define MIB_ipReasmTimeout		MIB_ipMIB, 13
312 #define MIB_ipReasmReqds		MIB_ipMIB, 14
313 #define MIB_ipReasmOKs			MIB_ipMIB, 15
314 #define MIB_ipReasmFails		MIB_ipMIB, 16
315 #define MIB_ipFragOKs			MIB_ipMIB, 17
316 #define MIB_ipFragFails			MIB_ipMIB, 18
317 #define MIB_ipFragCreates		MIB_ipMIB, 19
318 #define MIB_ipAddrTable			MIB_ipMIB, 20
319 #define MIB_ipAddrEntry			MIB_ipAddrTable, 1
320 #define OIDIDX_ipAddr			9
321 #define OIDIDX_ipAddrEntry		10
322 #define MIB_ipAdEntAddr			MIB_ipAddrEntry, 1
323 #define MIB_ipAdEntIfIndex		MIB_ipAddrEntry, 2
324 #define MIB_ipAdEntNetMask		MIB_ipAddrEntry, 3
325 #define MIB_ipAdEntBcastAddr		MIB_ipAddrEntry, 4
326 #define MIB_ipAdEntReasmMaxSize		MIB_ipAddrEntry, 5
327 #define MIB_ipNetToMediaTable		MIB_ipMIB, 22
328 #define MIB_ipNetToMediaEntry		MIB_ipNetToMediaTable, 1
329 #define OIDIDX_ipNetToMedia		9
330 #define MIB_ipNetToMediaIfIndex		MIB_ipNetToMediaEntry, 1
331 #define MIB_ipNetToMediaPhysAddress	MIB_ipNetToMediaEntry, 2
332 #define MIB_ipNetToMediaNetAddress	MIB_ipNetToMediaEntry, 3
333 #define MIB_ipNetToMediaType		MIB_ipNetToMediaEntry, 4
334 #define MIB_ipRoutingDiscards		MIB_ipMIB, 23
335 
336 /* IP-FORWARD-MIB */
337 #define MIB_ipfMIB			MIB_ipMIB, 24
338 #define MIB_ipfInetCidrRouteNumber	MIB_ipfMIB, 6
339 #define MIB_ipfInetCidrRouteTable	MIB_ipfMIB, 7
340 #define MIB_ipfInetCidrRouteEntry	MIB_ipfInetCidrRouteTable, 1
341 #define OIDIDX_ipfInetCidrRoute		10
342 #define MIB_ipfRouteEntDestType		MIB_ipfInetCidrRouteEntry, 1
343 #define MIB_ipfRouteEntDest		MIB_ipfInetCidrRouteEntry, 2
344 #define MIB_ipfRouteEntPfxLen		MIB_ipfInetCidrRouteEntry, 3
345 #define MIB_ipfRouteEntPolicy		MIB_ipfInetCidrRouteEntry, 4
346 #define MIB_ipfRouteEntNextHopType	MIB_ipfInetCidrRouteEntry, 5
347 #define MIB_ipfRouteEntNextHop		MIB_ipfInetCidrRouteEntry, 6
348 #define MIB_ipfRouteEntIfIndex		MIB_ipfInetCidrRouteEntry, 7
349 #define MIB_ipfRouteEntType		MIB_ipfInetCidrRouteEntry, 8
350 #define MIB_ipfRouteEntProto		MIB_ipfInetCidrRouteEntry, 9
351 #define MIB_ipfRouteEntAge		MIB_ipfInetCidrRouteEntry, 10
352 #define MIB_ipfRouteEntNextHopAS	MIB_ipfInetCidrRouteEntry, 11
353 #define MIB_ipfRouteEntRouteMetric1	MIB_ipfInetCidrRouteEntry, 12
354 #define MIB_ipfRouteEntRouteMetric2	MIB_ipfInetCidrRouteEntry, 13
355 #define MIB_ipfRouteEntRouteMetric3	MIB_ipfInetCidrRouteEntry, 14
356 #define MIB_ipfRouteEntRouteMetric4	MIB_ipfInetCidrRouteEntry, 15
357 #define MIB_ipfRouteEntRouteMetric5	MIB_ipfInetCidrRouteEntry, 16
358 #define MIB_ipfRouteEntStatus		MIB_ipfInetCidrRouteEntry, 17
359 #define MIB_ipfInetCidrRouteDiscards	MIB_ipfMIB, 8
360 
361 /* BRIDGE-MIB */
362 #define MIB_dot1dBridge			MIB_mib_2, 17
363 #define MIB_dot1dBase			MIB_dot1dBridge, 1
364 #define MIB_dot1dBaseBridgeAddress	MIB_dot1dBase, 1
365 #define MIB_dot1dBaseNumPorts		MIB_dot1dBase, 2
366 #define MIB_dot1dBaseType		MIB_dot1dBase, 3
367 #define MIB_dot1dBasePortTable		MIB_dot1dBase, 4
368 #define OIDIDX_dot1d			10
369 #define OIDIDX_dot1dEntry		11
370 #define MIB_dot1dBasePortEntry		MIB_dot1dBasePortTable, 1
371 #define MIB_dot1dBasePort		MIB_dot1dBasePortEntry, 1
372 #define MIB_dot1dBasePortIfIndex	MIB_dot1dBasePortEntry, 2
373 #define MIB_dot1dBasePortCircuit	MIB_dot1dBasePortEntry, 3
374 #define MIB_dot1dBasePortDelayExceededDiscards	MIB_dot1dBasePortEntry, 4
375 #define MIB_dot1dBasePortMtuExceededDiscards	MIB_dot1dBasePortEntry, 5
376 #define MIB_dot1dStp			MIB_dot1dBridge, 2
377 #define MIB_dot1dSr			MIB_dot1dBridge, 3
378 #define MIB_dot1dTp			MIB_dot1dBridge, 4
379 #define MIB_dot1dStatic			MIB_dot1dBridge, 5
380 
381 /*
382  * PRIVATE ENTERPRISE NUMBERS from
383  * https://www.iana.org/assignments/enterprise-numbers
384  *
385  * This is not the complete list of private enterprise numbers, it only
386  * includes some well-known companies and especially network companies
387  * that are very common in the datacenters around the world, other
388  * companies that contributed to snmpd or OpenBSD in some way, or just
389  * any other organizations that we wanted to include. It would be an
390  * overkill to include ~30.000 entries for all the organizations from
391  * the official list.
392  */
393 #define MIB_ibm				MIB_enterprises, 2
394 #define MIB_cmu				MIB_enterprises, 3
395 #define MIB_unix			MIB_enterprises, 4
396 #define MIB_ciscoSystems		MIB_enterprises, 9
397 #define MIB_hp				MIB_enterprises, 11
398 #define MIB_mit				MIB_enterprises, 20
399 #define MIB_nortelNetworks		MIB_enterprises, 35
400 #define MIB_sun				MIB_enterprises, 42
401 #define MIB_3com			MIB_enterprises, 43
402 #define MIB_synOptics			MIB_enterprises, 45
403 #define MIB_enterasys			MIB_enterprises, 52
404 #define MIB_sgi				MIB_enterprises, 59
405 #define MIB_apple			MIB_enterprises, 63
406 #define MIB_nasa			MIB_enterprises, 71
407 #define MIB_att				MIB_enterprises, 74
408 #define MIB_nokia			MIB_enterprises, 94
409 #define MIB_cern			MIB_enterprises, 96
410 #define MIB_oracle			MIB_enterprises, 111
411 #define MIB_motorola			MIB_enterprises, 161
412 #define MIB_ncr				MIB_enterprises, 191
413 #define MIB_ericsson			MIB_enterprises, 193
414 #define MIB_fsc				MIB_enterprises, 231
415 #define MIB_compaq			MIB_enterprises, 232
416 #define MIB_bmw				MIB_enterprises, 513
417 #define MIB_dell			MIB_enterprises, 674
418 #define MIB_iij				MIB_enterprises, 770
419 #define MIB_sandia			MIB_enterprises, 1400
420 #define MIB_mercedesBenz		MIB_enterprises, 1635
421 #define MIB_alteon			MIB_enterprises, 1872
422 #define MIB_extremeNetworks		MIB_enterprises, 1916
423 #define MIB_foundryNetworks		MIB_enterprises, 1991
424 #define MIB_huawaiTechnology		MIB_enterprises, 2011
425 #define MIB_ucDavis			MIB_enterprises, 2021
426 #define MIB_freeBSD			MIB_enterprises, 2238
427 #define MIB_checkPoint			MIB_enterprises, 2620
428 #define MIB_juniper			MIB_enterprises, 2636
429 #define MIB_printerWorkingGroup		MIB_enterprises, 2699
430 #define MIB_audi			MIB_enterprises, 3195
431 #define MIB_volkswagen			MIB_enterprises, 3210
432 #define MIB_genua			MIB_enterprises, 3717
433 #define MIB_amazon			MIB_enterprises, 4843
434 #define MIB_force10Networks		MIB_enterprises, 6027
435 #define MIB_vMware			MIB_enterprises, 6876
436 #define MIB_alcatelLucent		MIB_enterprises, 7483
437 #define MIB_snom			MIB_enterprises, 7526
438 #define MIB_netSNMP			MIB_enterprises, 8072
439 #define MIB_netflix			MIB_enterprises, 10949
440 #define MIB_google			MIB_enterprises, 11129
441 #define MIB_f5Networks			MIB_enterprises, 12276
442 #define MIB_sFlow			MIB_enterprises, 14706
443 #define MIB_microSystems		MIB_enterprises, 18623
444 #define MIB_paloAltoNetworks		MIB_enterprises, 25461
445 #define MIB_h3c				MIB_enterprises, 25506
446 #define MIB_vantronix			MIB_enterprises, 26766
447 #define MIB_netBSD			MIB_enterprises, 32388
448 #define OIDVAL_openBSD_eid		30155
449 #define MIB_openBSD			MIB_enterprises, OIDVAL_openBSD_eid
450 #define MIB_nicira			MIB_enterprises, 39961
451 #define MIB_esdenera			MIB_enterprises, 42459
452 
453 /* UCD-DISKIO-MIB */
454 #define MIB_ucdExperimental		MIB_ucDavis, 13
455 #define MIB_ucdDiskIOMIB		MIB_ucdExperimental, 15
456 #define MIB_diskIOTable			MIB_ucdDiskIOMIB, 1
457 #define MIB_diskIOEntry			MIB_diskIOTable, 1
458 #define OIDIDX_diskIO			11
459 #define OIDIDX_diskIOEntry		12
460 #define MIB_diskIOIndex			MIB_diskIOEntry, 1
461 #define MIB_diskIODevice		MIB_diskIOEntry, 2
462 #define MIB_diskIONRead			MIB_diskIOEntry, 3
463 #define MIB_diskIONWritten		MIB_diskIOEntry, 4
464 #define MIB_diskIOReads			MIB_diskIOEntry, 5
465 #define MIB_diskIOWrites		MIB_diskIOEntry, 6
466 #define MIB_diskIONReadX		MIB_diskIOEntry, 12
467 #define MIB_diskIONWrittenX		MIB_diskIOEntry, 13
468 
469 /* OPENBSD-MIB */
470 #define MIB_pfMIBObjects		MIB_openBSD, 1
471 #define MIB_pfInfo			MIB_pfMIBObjects, 1
472 #define MIB_pfRunning			MIB_pfInfo, 1
473 #define MIB_pfRuntime			MIB_pfInfo, 2
474 #define MIB_pfDebug			MIB_pfInfo, 3
475 #define MIB_pfHostid			MIB_pfInfo, 4
476 #define MIB_pfCounters			MIB_pfMIBObjects, 2
477 #define MIB_pfCntMatch			MIB_pfCounters, 1
478 #define MIB_pfCntBadOffset		MIB_pfCounters, 2
479 #define MIB_pfCntFragment		MIB_pfCounters, 3
480 #define MIB_pfCntShort			MIB_pfCounters, 4
481 #define MIB_pfCntNormalize		MIB_pfCounters, 5
482 #define MIB_pfCntMemory			MIB_pfCounters, 6
483 #define MIB_pfCntTimestamp		MIB_pfCounters, 7
484 #define MIB_pfCntCongestion		MIB_pfCounters, 8
485 #define MIB_pfCntIpOptions		MIB_pfCounters, 9
486 #define MIB_pfCntProtoCksum		MIB_pfCounters, 10
487 #define MIB_pfCntStateMismatch		MIB_pfCounters, 11
488 #define MIB_pfCntStateInsert		MIB_pfCounters, 12
489 #define MIB_pfCntStateLimit		MIB_pfCounters, 13
490 #define MIB_pfCntSrcLimit		MIB_pfCounters, 14
491 #define MIB_pfCntSynproxy		MIB_pfCounters, 15
492 #define MIB_pfCntTranslate		MIB_pfCounters, 16
493 #define MIB_pfCntNoRoute		MIB_pfCounters, 17
494 #define MIB_pfStateTable		MIB_pfMIBObjects, 3
495 #define MIB_pfStateCount		MIB_pfStateTable, 1
496 #define MIB_pfStateSearches		MIB_pfStateTable, 2
497 #define MIB_pfStateInserts		MIB_pfStateTable, 3
498 #define MIB_pfStateRemovals		MIB_pfStateTable, 4
499 #define MIB_pfLogInterface		MIB_pfMIBObjects, 4
500 #define MIB_pfLogIfName			MIB_pfLogInterface, 1
501 #define MIB_pfLogIfIpBytesIn		MIB_pfLogInterface, 2
502 #define MIB_pfLogIfIpBytesOut		MIB_pfLogInterface, 3
503 #define MIB_pfLogIfIpPktsInPass		MIB_pfLogInterface, 4
504 #define MIB_pfLogIfIpPktsInDrop		MIB_pfLogInterface, 5
505 #define MIB_pfLogIfIpPktsOutPass	MIB_pfLogInterface, 6
506 #define MIB_pfLogIfIpPktsOutDrop	MIB_pfLogInterface, 7
507 #define MIB_pfLogIfIp6BytesIn		MIB_pfLogInterface, 8
508 #define MIB_pfLogIfIp6BytesOut		MIB_pfLogInterface, 9
509 #define MIB_pfLogIfIp6PktsInPass	MIB_pfLogInterface, 10
510 #define MIB_pfLogIfIp6PktsInDrop	MIB_pfLogInterface, 11
511 #define MIB_pfLogIfIp6PktsOutPass	MIB_pfLogInterface, 12
512 #define MIB_pfLogIfIp6PktsOutDrop	MIB_pfLogInterface, 13
513 #define MIB_pfSrcTracking		MIB_pfMIBObjects, 5
514 #define MIB_pfSrcTrackCount		MIB_pfSrcTracking, 1
515 #define MIB_pfSrcTrackSearches		MIB_pfSrcTracking, 2
516 #define MIB_pfSrcTrackInserts		MIB_pfSrcTracking, 3
517 #define MIB_pfSrcTrackRemovals		MIB_pfSrcTracking, 4
518 #define MIB_pfLimits			MIB_pfMIBObjects, 6
519 #define MIB_pfLimitStates		MIB_pfLimits, 1
520 #define MIB_pfLimitSourceNodes		MIB_pfLimits, 2
521 #define MIB_pfLimitFragments		MIB_pfLimits, 3
522 #define MIB_pfLimitMaxTables		MIB_pfLimits, 4
523 #define MIB_pfLimitMaxTableEntries	MIB_pfLimits, 5
524 #define MIB_pfTimeouts			MIB_pfMIBObjects, 7
525 #define MIB_pfTimeoutTcpFirst		MIB_pfTimeouts, 1
526 #define MIB_pfTimeoutTcpOpening		MIB_pfTimeouts, 2
527 #define MIB_pfTimeoutTcpEstablished	MIB_pfTimeouts, 3
528 #define MIB_pfTimeoutTcpClosing		MIB_pfTimeouts, 4
529 #define MIB_pfTimeoutTcpFinWait		MIB_pfTimeouts, 5
530 #define MIB_pfTimeoutTcpClosed		MIB_pfTimeouts, 6
531 #define MIB_pfTimeoutUdpFirst		MIB_pfTimeouts, 7
532 #define MIB_pfTimeoutUdpSingle		MIB_pfTimeouts, 8
533 #define MIB_pfTimeoutUdpMultiple	MIB_pfTimeouts, 9
534 #define MIB_pfTimeoutIcmpFirst		MIB_pfTimeouts, 10
535 #define MIB_pfTimeoutIcmpError		MIB_pfTimeouts, 11
536 #define MIB_pfTimeoutOtherFirst		MIB_pfTimeouts, 12
537 #define MIB_pfTimeoutOtherSingle	MIB_pfTimeouts, 13
538 #define MIB_pfTimeoutOtherMultiple	MIB_pfTimeouts, 14
539 #define MIB_pfTimeoutFragment		MIB_pfTimeouts, 15
540 #define MIB_pfTimeoutInterval		MIB_pfTimeouts, 16
541 #define MIB_pfTimeoutAdaptiveStart	MIB_pfTimeouts, 17
542 #define MIB_pfTimeoutAdaptiveEnd	MIB_pfTimeouts, 18
543 #define MIB_pfTimeoutSrcTrack		MIB_pfTimeouts, 19
544 #define OIDIDX_pfstatus			9
545 #define MIB_pfInterfaces		MIB_pfMIBObjects, 8
546 #define MIB_pfIfNumber			MIB_pfInterfaces, 1
547 #define MIB_pfIfTable			MIB_pfInterfaces, 128
548 #define MIB_pfIfEntry			MIB_pfIfTable, 1
549 #define OIDIDX_pfInterface		11
550 #define OIDIDX_pfIfEntry		12
551 #define MIB_pfIfIndex			MIB_pfIfEntry, 1
552 #define MIB_pfIfDescr			MIB_pfIfEntry, 2
553 #define MIB_pfIfType			MIB_pfIfEntry, 3
554 #define MIB_pfIfRefs			MIB_pfIfEntry, 4
555 #define MIB_pfIfRules			MIB_pfIfEntry, 5
556 #define MIB_pfIfIn4PassPkts		MIB_pfIfEntry, 6
557 #define MIB_pfIfIn4PassBytes		MIB_pfIfEntry, 7
558 #define MIB_pfIfIn4BlockPkts		MIB_pfIfEntry, 8
559 #define MIB_pfIfIn4BlockBytes		MIB_pfIfEntry, 9
560 #define MIB_pfIfOut4PassPkts		MIB_pfIfEntry, 10
561 #define MIB_pfIfOut4PassBytes		MIB_pfIfEntry, 11
562 #define MIB_pfIfOut4BlockPkts		MIB_pfIfEntry, 12
563 #define MIB_pfIfOut4BlockBytes		MIB_pfIfEntry, 13
564 #define MIB_pfIfIn6PassPkts		MIB_pfIfEntry, 14
565 #define MIB_pfIfIn6PassBytes		MIB_pfIfEntry, 15
566 #define MIB_pfIfIn6BlockPkts		MIB_pfIfEntry, 16
567 #define MIB_pfIfIn6BlockBytes		MIB_pfIfEntry, 17
568 #define MIB_pfIfOut6PassPkts		MIB_pfIfEntry, 18
569 #define MIB_pfIfOut6PassBytes		MIB_pfIfEntry, 19
570 #define MIB_pfIfOut6BlockPkts		MIB_pfIfEntry, 20
571 #define MIB_pfIfOut6BlockBytes		MIB_pfIfEntry, 21
572 #define MIB_pfTables			MIB_pfMIBObjects, 9
573 #define MIB_pfTblNumber			MIB_pfTables, 1
574 #define MIB_pfTblTable			MIB_pfTables, 128
575 #define MIB_pfTblEntry			MIB_pfTblTable, 1
576 #define OIDIDX_pfTable			11
577 #define OIDIDX_pfTableEntry		12
578 #define MIB_pfTblIndex			MIB_pfTblEntry, 1
579 #define MIB_pfTblName			MIB_pfTblEntry, 2
580 #define MIB_pfTblAddresses		MIB_pfTblEntry, 3
581 #define MIB_pfTblAnchorRefs		MIB_pfTblEntry, 4
582 #define MIB_pfTblRuleRefs		MIB_pfTblEntry, 5
583 #define MIB_pfTblEvalsMatch		MIB_pfTblEntry, 6
584 #define MIB_pfTblEvalsNoMatch		MIB_pfTblEntry, 7
585 #define MIB_pfTblInPassPkts		MIB_pfTblEntry, 8
586 #define MIB_pfTblInPassBytes		MIB_pfTblEntry, 9
587 #define MIB_pfTblInBlockPkts		MIB_pfTblEntry, 10
588 #define MIB_pfTblInBlockBytes		MIB_pfTblEntry, 11
589 #define MIB_pfTblInXPassPkts		MIB_pfTblEntry, 12
590 #define MIB_pfTblInXPassBytes		MIB_pfTblEntry, 13
591 #define MIB_pfTblOutPassPkts		MIB_pfTblEntry, 14
592 #define MIB_pfTblOutPassBytes		MIB_pfTblEntry, 15
593 #define MIB_pfTblOutBlockPkts		MIB_pfTblEntry, 16
594 #define MIB_pfTblOutBlockBytes		MIB_pfTblEntry, 17
595 #define MIB_pfTblOutXPassPkts		MIB_pfTblEntry, 18
596 #define MIB_pfTblOutXPassBytes		MIB_pfTblEntry, 19
597 #define MIB_pfTblStatsCleared		MIB_pfTblEntry, 20
598 #define MIB_pfTblInMatchPkts		MIB_pfTblEntry, 21
599 #define MIB_pfTblInMatchBytes		MIB_pfTblEntry, 22
600 #define MIB_pfTblOutMatchPkts		MIB_pfTblEntry, 23
601 #define MIB_pfTblOutMatchBytes		MIB_pfTblEntry, 24
602 #define MIB_pfTblAddrTable		MIB_pfTables, 129
603 #define MIB_pfTblAddrEntry		MIB_pfTblAddrTable, 1
604 #define OIDIDX_pfTblAddr		11
605 #define MIB_pfTblAddrTblIndex		MIB_pfTblAddrEntry, 1
606 #define MIB_pfTblAddrNet		MIB_pfTblAddrEntry, 2
607 #define MIB_pfTblAddrMask		MIB_pfTblAddrEntry, 3
608 #define MIB_pfTblAddrCleared		MIB_pfTblAddrEntry, 4
609 #define MIB_pfTblAddrInBlockPkts	MIB_pfTblAddrEntry, 5
610 #define MIB_pfTblAddrInBlockBytes	MIB_pfTblAddrEntry, 6
611 #define MIB_pfTblAddrInPassPkts		MIB_pfTblAddrEntry, 7
612 #define MIB_pfTblAddrInPassBytes	MIB_pfTblAddrEntry, 8
613 #define MIB_pfTblAddrOutBlockPkts	MIB_pfTblAddrEntry, 9
614 #define MIB_pfTblAddrOutBlockBytes	MIB_pfTblAddrEntry, 10
615 #define MIB_pfTblAddrOutPassPkts	MIB_pfTblAddrEntry, 11
616 #define MIB_pfTblAddrOutPassBytes	MIB_pfTblAddrEntry, 12
617 #define MIB_pfTblAddrInMatchPkts	MIB_pfTblAddrEntry, 13
618 #define MIB_pfTblAddrInMatchBytes	MIB_pfTblAddrEntry, 14
619 #define MIB_pfTblAddrOutMatchPkts	MIB_pfTblAddrEntry, 15
620 #define MIB_pfTblAddrOutMatchBytes	MIB_pfTblAddrEntry, 16
621 #define MIB_pfLabels			MIB_pfMIBObjects, 10
622 #define MIB_pfLabelNumber		MIB_pfLabels, 1
623 #define MIB_pfLabelTable		MIB_pfLabels, 128
624 #define OIDIDX_pfLabel			11
625 #define OIDIDX_pfLabelEntry		12
626 #define MIB_pfLabelEntry		MIB_pfLabelTable, 1
627 #define MIB_pfLabelIndex		MIB_pfLabelEntry, 1
628 #define MIB_pfLabelName			MIB_pfLabelEntry, 2
629 #define MIB_pfLabelEvals		MIB_pfLabelEntry, 3
630 #define MIB_pfLabelPkts			MIB_pfLabelEntry, 4
631 #define MIB_pfLabelBytes		MIB_pfLabelEntry, 5
632 #define MIB_pfLabelInPkts		MIB_pfLabelEntry, 6
633 #define MIB_pfLabelInBytes		MIB_pfLabelEntry, 7
634 #define MIB_pfLabelOutPkts		MIB_pfLabelEntry, 8
635 #define MIB_pfLabelOutBytes		MIB_pfLabelEntry, 9
636 #define MIB_pfLabelTotalStates		MIB_pfLabelEntry, 10
637 #define MIB_pfsyncStats			MIB_pfMIBObjects, 11
638 #define MIB_pfsyncIpPktsRecv		MIB_pfsyncStats, 1
639 #define MIB_pfsyncIp6PktsRecv		MIB_pfsyncStats, 2
640 #define MIB_pfsyncPktDiscardsForBadInterface	MIB_pfsyncStats, 3
641 #define MIB_pfsyncPktDiscardsForBadTtl		MIB_pfsyncStats, 4
642 #define MIB_pfsyncPktShorterThanHeader		MIB_pfsyncStats, 5
643 #define MIB_pfsyncPktDiscardsForBadVersion	MIB_pfsyncStats, 6
644 #define MIB_pfsyncPktDiscardsForBadAction	MIB_pfsyncStats, 7
645 #define MIB_pfsyncPktDiscardsForBadLength	MIB_pfsyncStats, 8
646 #define MIB_pfsyncPktDiscardsForBadAuth		MIB_pfsyncStats, 9
647 #define MIB_pfsyncPktDiscardsForStaleState	MIB_pfsyncStats, 10
648 #define MIB_pfsyncPktDiscardsForBadValues	MIB_pfsyncStats, 11
649 #define MIB_pfsyncPktDiscardsForBadState	MIB_pfsyncStats, 12
650 #define MIB_pfsyncIpPktsSent		MIB_pfsyncStats, 13
651 #define MIB_pfsyncIp6PktsSent		MIB_pfsyncStats, 14
652 #define MIB_pfsyncNoMemory		MIB_pfsyncStats, 15
653 #define MIB_pfsyncOutputErrors		MIB_pfsyncStats, 16
654 #define MIB_sensorsMIBObjects		MIB_openBSD, 2
655 #define MIB_sensors			MIB_sensorsMIBObjects, 1
656 #define MIB_sensorNumber		MIB_sensors, 1
657 #define MIB_sensorTable			MIB_sensors, 2
658 #define MIB_sensorEntry			MIB_sensorTable, 1
659 #define OIDIDX_sensor			11
660 #define OIDIDX_sensorEntry		12
661 #define MIB_sensorIndex			MIB_sensorEntry, 1
662 #define MIB_sensorDescr			MIB_sensorEntry, 2
663 #define MIB_sensorType			MIB_sensorEntry, 3
664 #define MIB_sensorDevice		MIB_sensorEntry, 4
665 #define MIB_sensorValue			MIB_sensorEntry, 5
666 #define MIB_sensorUnits			MIB_sensorEntry, 6
667 #define MIB_sensorStatus		MIB_sensorEntry, 7
668 #define MIB_relaydMIBObjects		MIB_openBSD, 3
669 #define MIB_relaydHostTrap		MIB_relaydMIBObjects, 1
670 #define MIB_relaydHostTrapHostName	MIB_relaydHostTrap, 1
671 #define MIB_relaydHostTrapUp		MIB_relaydHostTrap, 2
672 #define MIB_relaydHostTrapLastUp	MIB_relaydHostTrap, 3
673 #define MIB_relaydHostTrapUpCount	MIB_relaydHostTrap, 4
674 #define MIB_relaydHostTrapCheckCount	MIB_relaydHostTrap, 5
675 #define MIB_relaydHostTrapTableName	MIB_relaydHostTrap, 6
676 #define MIB_relaydHostTrapTableUp	MIB_relaydHostTrap, 7
677 #define MIB_relaydHostTrapRetry		MIB_relaydHostTrap, 8
678 #define MIB_relaydHostTrapRetryCount	MIB_relaydHostTrap, 9
679 #define MIB_ipsecMIBObjects		MIB_openBSD, 4
680 #define MIB_memMIBObjects		MIB_openBSD, 5
681 #define MIB_memMIBVersion		MIB_memMIBObjects, 1
682 #define OIDVER_OPENBSD_MEM		1
683 #define MIB_memIfTable			MIB_memMIBObjects, 2
684 #define MIB_memIfEntry			MIB_memIfTable, 1
685 #define OIDIDX_memIf			10
686 #define OIDIDX_memIfEntry		11
687 #define MIB_memIfName			MIB_memIfEntry, 1
688 #define MIB_memIfLiveLocks		MIB_memIfEntry, 2
689 #define MIB_carpMIBObjects		MIB_openBSD, 6
690 #define MIB_carpSysctl			MIB_carpMIBObjects, 1
691 #define MIB_carpAllow			MIB_carpSysctl, 1
692 #define MIB_carpPreempt			MIB_carpSysctl, 2
693 #define MIB_carpLog			MIB_carpSysctl, 3
694 #define OIDIDX_carpsysctl		9
695 #define MIB_carpIf			MIB_carpMIBObjects, 2
696 #define MIB_carpIfNumber		MIB_carpIf, 1
697 #define MIB_carpIfTable			MIB_carpIf, 2
698 #define MIB_carpIfEntry			MIB_carpIfTable, 1
699 #define OIDIDX_carpIf			11
700 #define OIDIDX_carpIfEntry		12
701 #define MIB_carpIfIndex			MIB_carpIfEntry, 1
702 #define MIB_carpIfDescr			MIB_carpIfEntry, 2
703 #define MIB_carpIfVhid			MIB_carpIfEntry, 3
704 #define MIB_carpIfDev			MIB_carpIfEntry, 4
705 #define MIB_carpIfAdvbase		MIB_carpIfEntry, 5
706 #define MIB_carpIfAdvskew		MIB_carpIfEntry, 6
707 #define MIB_carpIfState			MIB_carpIfEntry, 7
708 #define OIDIDX_carpstats		9
709 #define MIB_carpStats			MIB_carpMIBObjects, 3
710 #define MIB_carpIpPktsRecv		MIB_carpStats, 1
711 #define MIB_carpIp6PktsRecv		MIB_carpStats, 2
712 #define MIB_carpPktDiscardsBadIface	MIB_carpStats, 3
713 #define MIB_carpPktDiscardsBadTtl	MIB_carpStats, 4
714 #define MIB_carpPktShorterThanHdr	MIB_carpStats, 5
715 #define MIB_carpDiscardsBadCksum	MIB_carpStats, 6
716 #define MIB_carpDiscardsBadVersion	MIB_carpStats, 7
717 #define MIB_carpDiscardsTooShort	MIB_carpStats, 8
718 #define MIB_carpDiscardsBadAuth		MIB_carpStats, 9
719 #define MIB_carpDiscardsBadVhid		MIB_carpStats, 10
720 #define MIB_carpDiscardsBadAddrList	MIB_carpStats, 11
721 #define MIB_carpIpPktsSent		MIB_carpStats, 12
722 #define MIB_carpIp6PktsSent		MIB_carpStats, 13
723 #define MIB_carpNoMemory		MIB_carpStats, 14
724 #define MIB_carpTransitionsToMaster	MIB_carpStats, 15
725 #define MIB_localSystem			MIB_openBSD, 23
726 #define MIB_SYSOID_DEFAULT		MIB_openBSD, 23, 1
727 #define MIB_localTest			MIB_openBSD, 42
728 
729 #define MIB_TREE			{		\
730 	{ MIBDECL(iso) },				\
731 	{ MIBDECL(org) },				\
732 	{ MIBDECL(dod) },				\
733 	{ MIBDECL(internet) },				\
734 	{ MIBDECL(directory) },				\
735 	{ MIBDECL(mgmt) },				\
736 	{ MIBDECL(mib_2) },				\
737 	{ MIBDECL(system) },				\
738 	{ MIBDECL(sysDescr) },				\
739 	{ MIBDECL(sysOID) },				\
740 	{ MIBDECL(sysUpTime) },				\
741 	{ MIBDECL(sysContact) },			\
742 	{ MIBDECL(sysName) },				\
743 	{ MIBDECL(sysLocation) },			\
744 	{ MIBDECL(sysServices) },			\
745 	{ MIBDECL(sysORLastChange) },			\
746 	{ MIBDECL(sysORTable) },			\
747 	{ MIBDECL(sysOREntry) },			\
748 	{ MIBDECL(sysORIndex) },			\
749 	{ MIBDECL(sysORID) },				\
750 	{ MIBDECL(sysORDescr) },			\
751 	{ MIBDECL(sysORUpTime) },			\
752 	{ MIBDECL(transmission) },			\
753 	{ MIBDECL(snmp) },				\
754 	{ MIBDECL(snmpInPkts) },			\
755 	{ MIBDECL(snmpOutPkts) },			\
756 	{ MIBDECL(snmpInBadVersions) },			\
757 	{ MIBDECL(snmpInBadCommunityNames) },		\
758 	{ MIBDECL(snmpInBadCommunityUses) },		\
759 	{ MIBDECL(snmpInASNParseErrs) },		\
760 	{ MIBDECL(snmpInTooBigs) },			\
761 	{ MIBDECL(snmpInNoSuchNames) },			\
762 	{ MIBDECL(snmpInBadValues) },			\
763 	{ MIBDECL(snmpInReadOnlys) },			\
764 	{ MIBDECL(snmpInGenErrs) },			\
765 	{ MIBDECL(snmpInTotalReqVars) },		\
766 	{ MIBDECL(snmpInTotalSetVars) },		\
767 	{ MIBDECL(snmpInGetRequests) },			\
768 	{ MIBDECL(snmpInGetNexts) },			\
769 	{ MIBDECL(snmpInSetRequests) },			\
770 	{ MIBDECL(snmpInGetResponses) },		\
771 	{ MIBDECL(snmpInTraps) },			\
772 	{ MIBDECL(snmpOutTooBigs) },			\
773 	{ MIBDECL(snmpOutNoSuchNames) },		\
774 	{ MIBDECL(snmpOutBadValues) },			\
775 	{ MIBDECL(snmpOutGenErrs) },			\
776 	{ MIBDECL(snmpOutGetRequests) },		\
777 	{ MIBDECL(snmpOutGetNexts) },			\
778 	{ MIBDECL(snmpOutSetRequests) },		\
779 	{ MIBDECL(snmpOutGetResponses) },		\
780 	{ MIBDECL(snmpOutTraps) },			\
781 	{ MIBDECL(snmpEnableAuthenTraps) },		\
782 	{ MIBDECL(snmpSilentDrops) },			\
783 	{ MIBDECL(snmpProxyDrops) },			\
784 	{ MIBDECL(experimental) },			\
785 	{ MIBDECL(private) },				\
786 	{ MIBDECL(enterprises) },			\
787 	{ MIBDECL(security) },				\
788 	{ MIBDECL(snmpV2) },				\
789 	{ MIBDECL(snmpDomains) },			\
790 	{ MIBDECL(snmpProxies) },			\
791 	{ MIBDECL(snmpModules) },			\
792 	{ MIBDECL(snmpMIB) },				\
793 	{ MIBDECL(snmpMIBObjects) },			\
794 	{ MIBDECL(snmpTrap) },				\
795 	{ MIBDECL(snmpTrapOID) },			\
796 	{ MIBDECL(snmpTrapEnterprise) },		\
797 	{ MIBDECL(snmpTraps) },				\
798 	{ MIBDECL(coldStart) },				\
799 	{ MIBDECL(warmStart) },				\
800 	{ MIBDECL(linkDown) },				\
801 	{ MIBDECL(linkUp) },				\
802 	{ MIBDECL(authenticationFailure) },		\
803 	{ MIBDECL(egpNeighborLoss) },			\
804 							\
805 	{ MIBDECL(framework) },				\
806 	{ MIBDECL(frameworkObjects) },			\
807 	{ MIBDECL(snmpEngine) },			\
808 	{ MIBDECL(snmpEngineID) },			\
809 	{ MIBDECL(snmpEngineBoots) },			\
810 	{ MIBDECL(snmpEngineTime) },			\
811 	{ MIBDECL(snmpEngineMaxMsgSize) },		\
812 	{ MIBDECL(usm) },				\
813 	{ MIBDECL(usmObjects) },			\
814 	{ MIBDECL(usmStats) },				\
815 	{ MIBDECL(usmStatsUnsupportedSecLevels) },	\
816 	{ MIBDECL(usmStatsNotInTimeWindow) },		\
817 	{ MIBDECL(usmStatsUnknownUserNames) },		\
818 	{ MIBDECL(usmStatsUnknownEngineId) },		\
819 	{ MIBDECL(usmStatsWrongDigests) },		\
820 	{ MIBDECL(usmStatsDecryptionErrors) },		\
821 							\
822 	{ MIBDECL(host) },				\
823 	{ MIBDECL(hrSystem) },				\
824 	{ MIBDECL(hrSystemUptime) },			\
825 	{ MIBDECL(hrSystemDate) },			\
826 	{ MIBDECL(hrSystemInitialLoadDevice) },		\
827 	{ MIBDECL(hrSystemInitialLoadParameters) },	\
828 	{ MIBDECL(hrSystemNumUsers) },			\
829 	{ MIBDECL(hrSystemProcesses) },			\
830 	{ MIBDECL(hrSystemMaxProcesses) },		\
831 	{ MIBDECL(hrStorage) },				\
832 	{ MIBDECL(hrStorageTypes) },			\
833 	{ MIBDECL(hrMemorySize) },			\
834 	{ MIBDECL(hrStorageTable) },			\
835 	{ MIBDECL(hrStorageEntry) },			\
836 	{ MIBDECL(hrStorageIndex) },			\
837 	{ MIBDECL(hrStorageType) },			\
838 	{ MIBDECL(hrStorageDescr) },			\
839 	{ MIBDECL(hrStorageAllocationUnits) },		\
840 	{ MIBDECL(hrStorageSize) },			\
841 	{ MIBDECL(hrStorageUsed) },			\
842 	{ MIBDECL(hrStorageAllocationFailures) },	\
843 	{ MIBDECL(hrDevice) },				\
844 	{ MIBDECL(hrDeviceTypes) },			\
845 	{ MIBDECL(hrDeviceOther) },			\
846 	{ MIBDECL(hrDeviceUnknown) },			\
847 	{ MIBDECL(hrDeviceProcessor) },			\
848 	{ MIBDECL(hrDeviceNetwork) },			\
849 	{ MIBDECL(hrDevicePrinter) },			\
850 	{ MIBDECL(hrDeviceDiskStorage) },		\
851 	{ MIBDECL(hrDeviceVideo) },			\
852 	{ MIBDECL(hrDeviceAudio) },			\
853 	{ MIBDECL(hrDeviceCoprocessor) },		\
854 	{ MIBDECL(hrDeviceKeyboard) },			\
855 	{ MIBDECL(hrDeviceModem) },			\
856 	{ MIBDECL(hrDeviceParallelPort) },		\
857 	{ MIBDECL(hrDevicePointing) },			\
858 	{ MIBDECL(hrDeviceSerialPort) },		\
859 	{ MIBDECL(hrDeviceTape) },			\
860 	{ MIBDECL(hrDeviceClock) },			\
861 	{ MIBDECL(hrDeviceVolatileMemory) },		\
862 	{ MIBDECL(hrDeviceNonVolatileMemory) },		\
863 	{ MIBDECL(hrDeviceTable) },			\
864 	{ MIBDECL(hrDeviceEntry) },			\
865 	{ MIBDECL(hrDeviceIndex) },			\
866 	{ MIBDECL(hrDeviceType) },			\
867 	{ MIBDECL(hrDeviceDescr) },			\
868 	{ MIBDECL(hrDeviceID) },			\
869 	{ MIBDECL(hrDeviceStatus) },			\
870 	{ MIBDECL(hrDeviceErrors) },			\
871 	{ MIBDECL(hrProcessorTable) },			\
872 	{ MIBDECL(hrProcessorEntry) },			\
873 	{ MIBDECL(hrProcessorFrwID) },			\
874 	{ MIBDECL(hrProcessorLoad) },			\
875 	{ MIBDECL(hrSWRun) },				\
876 	{ MIBDECL(hrSWOSIndex) },			\
877 	{ MIBDECL(hrSWRunTable) },			\
878 	{ MIBDECL(hrSWRunEntry) },			\
879 	{ MIBDECL(hrSWRunIndex) },			\
880 	{ MIBDECL(hrSWRunName) },			\
881 	{ MIBDECL(hrSWRunID) },				\
882 	{ MIBDECL(hrSWRunPath) },			\
883 	{ MIBDECL(hrSWRunParameters) },			\
884 	{ MIBDECL(hrSWRunType) },			\
885 	{ MIBDECL(hrSWRunStatus) },			\
886 	{ MIBDECL(hrSWRunPerf) },			\
887 	{ MIBDECL(hrSWRunPerfTable) },			\
888 	{ MIBDECL(hrSWRunPerfEntry) },			\
889 	{ MIBDECL(hrSWRunPerfCPU) },			\
890 	{ MIBDECL(hrSWRunPerfMem) },			\
891 							\
892 	{ MIBDECL(ifMIB) },				\
893 	{ MIBDECL(ifMIBObjects) },			\
894 	{ MIBDECL(ifXTable) },				\
895 	{ MIBDECL(ifXEntry) },				\
896 	{ MIBDECL(ifName) },				\
897 	{ MIBDECL(ifInMulticastPkts) },			\
898 	{ MIBDECL(ifInBroadcastPkts) },			\
899 	{ MIBDECL(ifOutMulticastPkts) },		\
900 	{ MIBDECL(ifOutBroadcastPkts) },		\
901 	{ MIBDECL(ifHCInOctets) },			\
902 	{ MIBDECL(ifHCInUcastPkts) },			\
903 	{ MIBDECL(ifHCInMulticastPkts) },		\
904 	{ MIBDECL(ifHCInBroadcastPkts) },		\
905 	{ MIBDECL(ifHCOutOctets) },			\
906 	{ MIBDECL(ifHCOutUcastPkts) },			\
907 	{ MIBDECL(ifHCOutMulticastPkts) },		\
908 	{ MIBDECL(ifHCOutBroadcastPkts) },		\
909 	{ MIBDECL(ifLinkUpDownTrapEnable) },		\
910 	{ MIBDECL(ifHighSpeed) },			\
911 	{ MIBDECL(ifPromiscuousMode) },			\
912 	{ MIBDECL(ifConnectorPresent) },		\
913 	{ MIBDECL(ifAlias) },				\
914 	{ MIBDECL(ifCounterDiscontinuityTime) },	\
915 	{ MIBDECL(ifStackTable) },			\
916 	{ MIBDECL(ifStackEntry) },			\
917 	{ MIBDECL(ifRcvAddressTable) },			\
918 	{ MIBDECL(ifRcvAddressEntry) },			\
919 	{ MIBDECL(ifRcvAddressStatus) },		\
920 	{ MIBDECL(ifRcvAddressType) },			\
921 	{ MIBDECL(ifStackLastChange) },			\
922 	{ MIBDECL(interfaces) },			\
923 	{ MIBDECL(ifNumber) },				\
924 	{ MIBDECL(ifTable) },				\
925 	{ MIBDECL(ifEntry) },				\
926 	{ MIBDECL(ifIndex) },				\
927 	{ MIBDECL(ifDescr) },				\
928 	{ MIBDECL(ifType) },				\
929 	{ MIBDECL(ifMtu) },				\
930 	{ MIBDECL(ifSpeed) },				\
931 	{ MIBDECL(ifPhysAddress) },			\
932 	{ MIBDECL(ifAdminStatus) },			\
933 	{ MIBDECL(ifOperStatus) },			\
934 	{ MIBDECL(ifLastChange) },			\
935 	{ MIBDECL(ifInOctets) },			\
936 	{ MIBDECL(ifInUcastPkts) },			\
937 	{ MIBDECL(ifInNUcastPkts) },			\
938 	{ MIBDECL(ifInDiscards) },			\
939 	{ MIBDECL(ifInErrors) },			\
940 	{ MIBDECL(ifInUnknownProtos) },			\
941 	{ MIBDECL(ifOutOctets) },			\
942 	{ MIBDECL(ifOutUcastPkts) },			\
943 	{ MIBDECL(ifOutNUcastPkts) },			\
944 	{ MIBDECL(ifOutDiscards) },			\
945 	{ MIBDECL(ifOutErrors) },			\
946 	{ MIBDECL(ifOutQLen) },				\
947 	{ MIBDECL(ifSpecific) },			\
948 							\
949 	{ MIBDECL(dot1dBridge) },			\
950 	{ MIBDECL(dot1dBase) },				\
951 	{ MIBDECL(dot1dBaseBridgeAddress) },		\
952 	{ MIBDECL(dot1dBaseNumPorts) },			\
953 	{ MIBDECL(dot1dBaseType) },			\
954 	{ MIBDECL(dot1dBasePortTable) },		\
955 	{ MIBDECL(dot1dBasePortEntry) },		\
956 	{ MIBDECL(dot1dBasePort) },			\
957 	{ MIBDECL(dot1dBasePortIfIndex) },		\
958 	{ MIBDECL(dot1dBasePortCircuit) },		\
959 	{ MIBDECL(dot1dBasePortDelayExceededDiscards) },\
960 	{ MIBDECL(dot1dBasePortMtuExceededDiscards) },	\
961 	{ MIBDECL(dot1dStp) },				\
962 	{ MIBDECL(dot1dSr) },				\
963 	{ MIBDECL(dot1dTp) },				\
964 	{ MIBDECL(dot1dStatic) },			\
965 							\
966 	{ MIBDECL(ibm) },				\
967 	{ MIBDECL(cmu) },				\
968 	{ MIBDECL(unix) },				\
969 	{ MIBDECL(ciscoSystems) },			\
970 	{ MIBDECL(hp) },				\
971 	{ MIBDECL(mit) },				\
972 	{ MIBDECL(nortelNetworks) },			\
973 	{ MIBDECL(sun) },				\
974 	{ MIBDECL(3com) },				\
975 	{ MIBDECL(synOptics) },				\
976 	{ MIBDECL(enterasys) },				\
977 	{ MIBDECL(sgi) },				\
978 	{ MIBDECL(apple) },				\
979 	{ MIBDECL(nasa) },				\
980 	{ MIBDECL(att) },				\
981 	{ MIBDECL(nokia) },				\
982 	{ MIBDECL(cern) },				\
983 	{ MIBDECL(oracle) },				\
984 	{ MIBDECL(motorola) },				\
985 	{ MIBDECL(ncr) },				\
986 	{ MIBDECL(ericsson) },				\
987 	{ MIBDECL(fsc) },				\
988 	{ MIBDECL(compaq) },				\
989 	{ MIBDECL(bmw) },				\
990 	{ MIBDECL(dell) },				\
991 	{ MIBDECL(iij) },				\
992 	{ MIBDECL(sandia) },				\
993 	{ MIBDECL(mercedesBenz) },			\
994 	{ MIBDECL(alteon) },				\
995 	{ MIBDECL(extremeNetworks) },			\
996 	{ MIBDECL(foundryNetworks) },			\
997 	{ MIBDECL(huawaiTechnology) },			\
998 	{ MIBDECL(ucDavis) },				\
999 	{ MIBDECL(freeBSD) },				\
1000 	{ MIBDECL(checkPoint) },			\
1001 	{ MIBDECL(juniper) },				\
1002 	{ MIBDECL(printerWorkingGroup) },		\
1003 	{ MIBDECL(audi) },				\
1004 	{ MIBDECL(volkswagen) },			\
1005 	{ MIBDECL(genua) },				\
1006 	{ MIBDECL(amazon) },				\
1007 	{ MIBDECL(force10Networks) },			\
1008 	{ MIBDECL(vMware) },				\
1009 	{ MIBDECL(alcatelLucent) },			\
1010 	{ MIBDECL(snom) },				\
1011 	{ MIBDECL(netSNMP) },				\
1012 	{ MIBDECL(netflix) },				\
1013 	{ MIBDECL(google) },				\
1014 	{ MIBDECL(f5Networks) },			\
1015 	{ MIBDECL(sFlow) },				\
1016 	{ MIBDECL(microSystems) },			\
1017 	{ MIBDECL(paloAltoNetworks) },			\
1018 	{ MIBDECL(h3c) },				\
1019 	{ MIBDECL(vantronix) },				\
1020 	{ MIBDECL(netBSD) },				\
1021 	{ MIBDECL(openBSD) },				\
1022 	{ MIBDECL(nicira) },				\
1023 	{ MIBDECL(esdenera) },				\
1024 							\
1025 	{ MIBDECL(ucdExperimental) },			\
1026 	{ MIBDECL(ucdDiskIOMIB) },			\
1027 	{ MIBDECL(diskIOTable) },			\
1028 	{ MIBDECL(diskIOEntry) },			\
1029 	{ MIBDECL(diskIOIndex) },			\
1030 	{ MIBDECL(diskIODevice) },			\
1031 	{ MIBDECL(diskIONRead) },			\
1032 	{ MIBDECL(diskIONWritten) },			\
1033 	{ MIBDECL(diskIOReads) },			\
1034 	{ MIBDECL(diskIOWrites) },			\
1035 	{ MIBDECL(diskIONReadX) },			\
1036 	{ MIBDECL(diskIONWrittenX) },			\
1037 							\
1038 	{ MIBDECL(pfMIBObjects) },			\
1039 	{ MIBDECL(pfInfo) },				\
1040 	{ MIBDECL(pfRunning) },				\
1041 	{ MIBDECL(pfRuntime) },				\
1042 	{ MIBDECL(pfDebug) },				\
1043 	{ MIBDECL(pfHostid) },				\
1044 	{ MIBDECL(pfCounters) },			\
1045 	{ MIBDECL(pfCntMatch) },			\
1046 	{ MIBDECL(pfCntBadOffset) },			\
1047 	{ MIBDECL(pfCntFragment) },			\
1048 	{ MIBDECL(pfCntShort) },			\
1049 	{ MIBDECL(pfCntNormalize) },			\
1050 	{ MIBDECL(pfCntMemory) },			\
1051 	{ MIBDECL(pfCntTimestamp) },			\
1052 	{ MIBDECL(pfCntCongestion) },			\
1053 	{ MIBDECL(pfCntIpOptions) },			\
1054 	{ MIBDECL(pfCntProtoCksum) },			\
1055 	{ MIBDECL(pfCntStateMismatch) },		\
1056 	{ MIBDECL(pfCntStateInsert) },			\
1057 	{ MIBDECL(pfCntStateLimit) },			\
1058 	{ MIBDECL(pfCntSrcLimit) },			\
1059 	{ MIBDECL(pfCntSynproxy) },			\
1060 	{ MIBDECL(pfCntTranslate) },			\
1061 	{ MIBDECL(pfCntNoRoute) },			\
1062 	{ MIBDECL(pfStateTable) },			\
1063 	{ MIBDECL(pfStateCount) },			\
1064 	{ MIBDECL(pfStateSearches) },			\
1065 	{ MIBDECL(pfStateInserts) },			\
1066 	{ MIBDECL(pfStateRemovals) },			\
1067 	{ MIBDECL(pfLogInterface) },			\
1068 	{ MIBDECL(pfLogIfName) },			\
1069 	{ MIBDECL(pfLogIfIpBytesIn) },			\
1070 	{ MIBDECL(pfLogIfIpBytesOut) },			\
1071 	{ MIBDECL(pfLogIfIpPktsInPass) },		\
1072 	{ MIBDECL(pfLogIfIpPktsInDrop) },		\
1073 	{ MIBDECL(pfLogIfIpPktsOutPass) },		\
1074 	{ MIBDECL(pfLogIfIpPktsOutDrop) },		\
1075 	{ MIBDECL(pfLogIfIp6BytesIn) },			\
1076 	{ MIBDECL(pfLogIfIp6BytesOut) },		\
1077 	{ MIBDECL(pfLogIfIp6PktsInPass) },		\
1078 	{ MIBDECL(pfLogIfIp6PktsInDrop) },		\
1079 	{ MIBDECL(pfLogIfIp6PktsOutPass) },		\
1080 	{ MIBDECL(pfLogIfIp6PktsOutDrop) },		\
1081 	{ MIBDECL(pfSrcTracking) },			\
1082 	{ MIBDECL(pfSrcTrackCount) },			\
1083 	{ MIBDECL(pfSrcTrackSearches) },		\
1084 	{ MIBDECL(pfSrcTrackInserts) },			\
1085 	{ MIBDECL(pfSrcTrackRemovals) },		\
1086 	{ MIBDECL(pfLimits) },				\
1087 	{ MIBDECL(pfLimitStates) },			\
1088 	{ MIBDECL(pfLimitSourceNodes) },		\
1089 	{ MIBDECL(pfLimitFragments) },			\
1090 	{ MIBDECL(pfLimitMaxTables) },			\
1091 	{ MIBDECL(pfLimitMaxTableEntries) },		\
1092 	{ MIBDECL(pfTimeouts) },			\
1093 	{ MIBDECL(pfTimeoutTcpFirst) },			\
1094 	{ MIBDECL(pfTimeoutTcpOpening) },		\
1095 	{ MIBDECL(pfTimeoutTcpEstablished) },		\
1096 	{ MIBDECL(pfTimeoutTcpClosing) },		\
1097 	{ MIBDECL(pfTimeoutTcpFinWait) },		\
1098 	{ MIBDECL(pfTimeoutTcpClosed) },		\
1099 	{ MIBDECL(pfTimeoutUdpFirst) },			\
1100 	{ MIBDECL(pfTimeoutUdpSingle) },		\
1101 	{ MIBDECL(pfTimeoutUdpMultiple) },		\
1102 	{ MIBDECL(pfTimeoutIcmpFirst) },		\
1103 	{ MIBDECL(pfTimeoutIcmpError) },		\
1104 	{ MIBDECL(pfTimeoutOtherFirst) },		\
1105 	{ MIBDECL(pfTimeoutOtherSingle) },		\
1106 	{ MIBDECL(pfTimeoutOtherMultiple) },		\
1107 	{ MIBDECL(pfTimeoutFragment) },			\
1108 	{ MIBDECL(pfTimeoutInterval) },			\
1109 	{ MIBDECL(pfTimeoutAdaptiveStart) },		\
1110 	{ MIBDECL(pfTimeoutAdaptiveEnd) },		\
1111 	{ MIBDECL(pfTimeoutSrcTrack) },			\
1112 	{ MIBDECL(pfInterfaces) },			\
1113 	{ MIBDECL(pfIfNumber) },			\
1114 	{ MIBDECL(pfIfTable) },				\
1115 	{ MIBDECL(pfIfEntry) },				\
1116 	{ MIBDECL(pfIfIndex) },				\
1117 	{ MIBDECL(pfIfDescr) },				\
1118 	{ MIBDECL(pfIfType) },				\
1119 	{ MIBDECL(pfIfRefs) },				\
1120 	{ MIBDECL(pfIfRules) },				\
1121 	{ MIBDECL(pfIfIn4PassPkts) },			\
1122 	{ MIBDECL(pfIfIn4PassBytes) },			\
1123 	{ MIBDECL(pfIfIn4BlockPkts) },			\
1124 	{ MIBDECL(pfIfIn4BlockBytes) },			\
1125 	{ MIBDECL(pfIfOut4PassPkts) },			\
1126 	{ MIBDECL(pfIfOut4PassBytes) },			\
1127 	{ MIBDECL(pfIfOut4BlockPkts) },			\
1128 	{ MIBDECL(pfIfOut4BlockBytes) },		\
1129 	{ MIBDECL(pfIfIn6PassPkts) },			\
1130 	{ MIBDECL(pfIfIn6PassBytes) },			\
1131 	{ MIBDECL(pfIfIn6BlockPkts) },			\
1132 	{ MIBDECL(pfIfIn6BlockBytes) },			\
1133 	{ MIBDECL(pfIfOut6PassPkts) },			\
1134 	{ MIBDECL(pfIfOut6PassBytes) },			\
1135 	{ MIBDECL(pfIfOut6BlockPkts) },			\
1136 	{ MIBDECL(pfIfOut6BlockBytes) },		\
1137 	{ MIBDECL(pfTables) },				\
1138 	{ MIBDECL(pfTblNumber) },			\
1139 	{ MIBDECL(pfTblTable) },			\
1140 	{ MIBDECL(pfTblEntry) },			\
1141 	{ MIBDECL(pfTblIndex) },			\
1142 	{ MIBDECL(pfTblName) },				\
1143 	{ MIBDECL(pfTblAddresses) },			\
1144 	{ MIBDECL(pfTblAnchorRefs) },			\
1145 	{ MIBDECL(pfTblRuleRefs) },			\
1146 	{ MIBDECL(pfTblEvalsMatch) },			\
1147 	{ MIBDECL(pfTblEvalsNoMatch) },			\
1148 	{ MIBDECL(pfTblInPassPkts) },			\
1149 	{ MIBDECL(pfTblInPassBytes) },			\
1150 	{ MIBDECL(pfTblInBlockPkts) },			\
1151 	{ MIBDECL(pfTblInBlockBytes) },			\
1152 	{ MIBDECL(pfTblInXPassPkts) },			\
1153 	{ MIBDECL(pfTblInXPassBytes) },			\
1154 	{ MIBDECL(pfTblOutPassPkts) },			\
1155 	{ MIBDECL(pfTblOutPassBytes) },			\
1156 	{ MIBDECL(pfTblOutBlockPkts) },			\
1157 	{ MIBDECL(pfTblOutBlockBytes) },		\
1158 	{ MIBDECL(pfTblOutXPassPkts) },			\
1159 	{ MIBDECL(pfTblOutXPassBytes) },		\
1160 	{ MIBDECL(pfTblStatsCleared) },			\
1161 	{ MIBDECL(pfTblInMatchPkts) },			\
1162 	{ MIBDECL(pfTblInMatchBytes) },			\
1163 	{ MIBDECL(pfTblOutMatchPkts) },			\
1164 	{ MIBDECL(pfTblOutMatchBytes) },		\
1165 	{ MIBDECL(pfTblAddrTable) },			\
1166 	{ MIBDECL(pfTblAddrEntry) },			\
1167 	{ MIBDECL(pfTblAddrTblIndex) },			\
1168 	{ MIBDECL(pfTblAddrNet) },			\
1169 	{ MIBDECL(pfTblAddrMask) },			\
1170 	{ MIBDECL(pfTblAddrCleared) },			\
1171 	{ MIBDECL(pfTblAddrInBlockPkts) },		\
1172 	{ MIBDECL(pfTblAddrInBlockBytes) },		\
1173 	{ MIBDECL(pfTblAddrInPassPkts) },		\
1174 	{ MIBDECL(pfTblAddrInPassBytes) },		\
1175 	{ MIBDECL(pfTblAddrOutBlockPkts) },		\
1176 	{ MIBDECL(pfTblAddrOutBlockBytes) },		\
1177 	{ MIBDECL(pfTblAddrOutPassPkts) },		\
1178 	{ MIBDECL(pfTblAddrOutPassBytes) },		\
1179 	{ MIBDECL(pfTblAddrInMatchPkts) },		\
1180 	{ MIBDECL(pfTblAddrInMatchBytes) },		\
1181 	{ MIBDECL(pfTblAddrOutMatchPkts) },		\
1182 	{ MIBDECL(pfTblAddrOutMatchBytes) },		\
1183 	{ MIBDECL(pfLabels) },				\
1184 	{ MIBDECL(pfLabelNumber) },			\
1185 	{ MIBDECL(pfLabelTable) },			\
1186 	{ MIBDECL(pfLabelEntry) },			\
1187 	{ MIBDECL(pfLabelIndex) },			\
1188 	{ MIBDECL(pfLabelName) },			\
1189 	{ MIBDECL(pfLabelEvals) },			\
1190 	{ MIBDECL(pfLabelPkts) },			\
1191 	{ MIBDECL(pfLabelBytes) },			\
1192 	{ MIBDECL(pfLabelInPkts) },			\
1193 	{ MIBDECL(pfLabelInBytes) },			\
1194 	{ MIBDECL(pfLabelOutPkts) },			\
1195 	{ MIBDECL(pfLabelOutBytes) },			\
1196 	{ MIBDECL(pfLabelTotalStates) },		\
1197 	{ MIBDECL(pfsyncStats) },			\
1198 	{ MIBDECL(pfsyncIpPktsRecv) },			\
1199 	{ MIBDECL(pfsyncIp6PktsRecv) },			\
1200 	{ MIBDECL(pfsyncPktDiscardsForBadInterface) },	\
1201 	{ MIBDECL(pfsyncPktDiscardsForBadTtl) },	\
1202 	{ MIBDECL(pfsyncPktShorterThanHeader) },	\
1203 	{ MIBDECL(pfsyncPktDiscardsForBadVersion) },	\
1204 	{ MIBDECL(pfsyncPktDiscardsForBadAction) },	\
1205 	{ MIBDECL(pfsyncPktDiscardsForBadLength) },	\
1206 	{ MIBDECL(pfsyncPktDiscardsForBadAuth) },	\
1207 	{ MIBDECL(pfsyncPktDiscardsForStaleState) },	\
1208 	{ MIBDECL(pfsyncPktDiscardsForBadValues) },	\
1209 	{ MIBDECL(pfsyncPktDiscardsForBadState) },	\
1210 	{ MIBDECL(pfsyncIpPktsSent) },			\
1211 	{ MIBDECL(pfsyncIp6PktsSent) },			\
1212 	{ MIBDECL(pfsyncNoMemory) },			\
1213 	{ MIBDECL(pfsyncOutputErrors) },		\
1214 	{ MIBDECL(sensorsMIBObjects) },			\
1215 	{ MIBDECL(relaydMIBObjects) },			\
1216 	{ MIBDECL(relaydHostTrap) },			\
1217 	{ MIBDECL(relaydHostTrapHostName) },		\
1218 	{ MIBDECL(relaydHostTrapUp) },			\
1219 	{ MIBDECL(relaydHostTrapLastUp) },		\
1220 	{ MIBDECL(relaydHostTrapUpCount) },		\
1221 	{ MIBDECL(relaydHostTrapCheckCount) },		\
1222 	{ MIBDECL(relaydHostTrapTableName) },		\
1223 	{ MIBDECL(relaydHostTrapTableUp) },		\
1224 	{ MIBDECL(relaydHostTrapRetry) },		\
1225 	{ MIBDECL(relaydHostTrapRetryCount) },		\
1226 	{ MIBDECL(sensors) },				\
1227 	{ MIBDECL(sensorNumber) },			\
1228 	{ MIBDECL(sensorTable) },			\
1229 	{ MIBDECL(sensorEntry) },			\
1230 	{ MIBDECL(sensorIndex) },			\
1231 	{ MIBDECL(sensorDescr) },			\
1232 	{ MIBDECL(sensorType) },			\
1233 	{ MIBDECL(sensorDevice) },			\
1234 	{ MIBDECL(sensorValue) },			\
1235 	{ MIBDECL(sensorUnits) },			\
1236 	{ MIBDECL(sensorStatus) },			\
1237 	{ MIBDECL(memMIBObjects) },			\
1238 	{ MIBDECL(memMIBVersion) },			\
1239 	{ MIBDECL(memIfTable) },			\
1240 	{ MIBDECL(memIfEntry) },			\
1241 	{ MIBDECL(memIfName) },				\
1242 	{ MIBDECL(memIfLiveLocks) },			\
1243 	{ MIBDECL(carpMIBObjects) },			\
1244 	{ MIBDECL(carpSysctl) },			\
1245 	{ MIBDECL(carpAllow) },				\
1246 	{ MIBDECL(carpPreempt) },			\
1247 	{ MIBDECL(carpLog) },				\
1248 	{ MIBDECL(carpIf) },				\
1249 	{ MIBDECL(carpIfNumber) },			\
1250 	{ MIBDECL(carpIfTable) },			\
1251 	{ MIBDECL(carpIfEntry) },			\
1252 	{ MIBDECL(carpIfIndex) },			\
1253 	{ MIBDECL(carpIfDescr) },			\
1254 	{ MIBDECL(carpIfVhid) },			\
1255 	{ MIBDECL(carpIfDev) },				\
1256 	{ MIBDECL(carpIfAdvbase) },			\
1257 	{ MIBDECL(carpIfAdvskew) },			\
1258 	{ MIBDECL(carpIfState) },			\
1259 	{ MIBDECL(carpStats) },				\
1260 	{ MIBDECL(carpIpPktsRecv) },			\
1261 	{ MIBDECL(carpIp6PktsRecv) },			\
1262 	{ MIBDECL(carpPktDiscardsBadIface) },		\
1263 	{ MIBDECL(carpPktDiscardsBadTtl) },		\
1264 	{ MIBDECL(carpPktShorterThanHdr) },		\
1265 	{ MIBDECL(carpDiscardsBadCksum) },		\
1266 	{ MIBDECL(carpDiscardsBadVersion) },		\
1267 	{ MIBDECL(carpDiscardsTooShort) },		\
1268 	{ MIBDECL(carpDiscardsBadAuth) },		\
1269 	{ MIBDECL(carpDiscardsBadVhid) },		\
1270 	{ MIBDECL(carpDiscardsBadAddrList) },		\
1271 	{ MIBDECL(carpIpPktsSent) },			\
1272 	{ MIBDECL(carpIp6PktsSent) },			\
1273 	{ MIBDECL(carpNoMemory) },			\
1274 	{ MIBDECL(carpTransitionsToMaster) },		\
1275 	{ MIBDECL(localSystem) },			\
1276 	{ MIBDECL(localTest) },				\
1277 							\
1278 	{ MIBDECL(ipMIB) },				\
1279 	{ MIBDECL(ipForwarding) },			\
1280 	{ MIBDECL(ipDefaultTTL) },			\
1281 	{ MIBDECL(ipInReceives) },			\
1282 	{ MIBDECL(ipInHdrErrors) },			\
1283 	{ MIBDECL(ipInAddrErrors) },			\
1284 	{ MIBDECL(ipForwDatagrams) },			\
1285 	{ MIBDECL(ipInUnknownProtos) },			\
1286 	{ MIBDECL(ipInDiscards) },			\
1287 	{ MIBDECL(ipInDelivers) },			\
1288 	{ MIBDECL(ipOutRequests) },			\
1289 	{ MIBDECL(ipOutDiscards) },			\
1290 	{ MIBDECL(ipOutNoRoutes) },			\
1291 	{ MIBDECL(ipReasmTimeout) },			\
1292 	{ MIBDECL(ipReasmReqds) },			\
1293 	{ MIBDECL(ipReasmOKs) },			\
1294 	{ MIBDECL(ipReasmFails) },			\
1295 	{ MIBDECL(ipFragOKs) },				\
1296 	{ MIBDECL(ipFragFails) },			\
1297 	{ MIBDECL(ipFragCreates) },			\
1298 	{ MIBDECL(ipRoutingDiscards) },			\
1299 	{ MIBDECL(ipAddrTable) },			\
1300 	{ MIBDECL(ipAddrEntry) },			\
1301 	{ MIBDECL(ipAdEntAddr) },			\
1302 	{ MIBDECL(ipAdEntIfIndex) },			\
1303 	{ MIBDECL(ipAdEntNetMask) },			\
1304 	{ MIBDECL(ipAdEntBcastAddr) },			\
1305 	{ MIBDECL(ipAdEntReasmMaxSize) },		\
1306 	{ MIBDECL(ipNetToMediaTable) },			\
1307 	{ MIBDECL(ipNetToMediaEntry) },			\
1308 	{ MIBDECL(ipNetToMediaIfIndex) },		\
1309 	{ MIBDECL(ipNetToMediaPhysAddress) },		\
1310 	{ MIBDECL(ipNetToMediaNetAddress) },		\
1311 	{ MIBDECL(ipNetToMediaType) },			\
1312 							\
1313 	{ MIBDECL(ipfMIB) },				\
1314 	{ MIBDECL(ipfInetCidrRouteNumber) },		\
1315 	{ MIBDECL(ipfInetCidrRouteTable) },		\
1316 	{ MIBDECL(ipfInetCidrRouteEntry) },		\
1317 	{ MIBDECL(ipfRouteEntIfIndex) },		\
1318 	{ MIBDECL(ipfRouteEntType) },			\
1319 	{ MIBDECL(ipfRouteEntProto) },			\
1320 	{ MIBDECL(ipfRouteEntAge) },			\
1321 	{ MIBDECL(ipfRouteEntNextHopAS) },		\
1322 	{ MIBDECL(ipfRouteEntRouteMetric1) },		\
1323 	{ MIBDECL(ipfRouteEntRouteMetric2) },		\
1324 	{ MIBDECL(ipfRouteEntRouteMetric3) },		\
1325 	{ MIBDECL(ipfRouteEntRouteMetric4) },		\
1326 	{ MIBDECL(ipfRouteEntRouteMetric5) },		\
1327 	{ MIBDECL(ipfRouteEntStatus) },			\
1328 	{ MIBEND }					\
1329 }
1330 
1331  void	 mib_init(void);
1332 
1333 #endif /* SNMPD_MIB_H */
1334