Imported Upstream version 0.4.8
[platform/upstream/libsmi.git] / test / dumps / netsnmp / rmon2-mib-agt-stub.c
1 /*
2  * This C file has been generated by smidump 0.4.2-pre1.
3  * It is intended to be used with the NET-SNMP agent library.
4  *
5  * This C file is derived from the RMON2-MIB module.
6  *
7  * $Id: rmon2-mib-agt-stub.c 1606 2003-12-01 12:24:15Z strauss $
8  */
9
10 #include <stdio.h>
11 #include <string.h>
12 #include <malloc.h>
13
14 #include "rmon2-mib.h"
15
16 #include <ucd-snmp/asn1.h>
17 #include <ucd-snmp/snmp.h>
18 #include <ucd-snmp/snmp_api.h>
19 #include <ucd-snmp/snmp_impl.h>
20 #include <ucd-snmp/snmp_vars.h>
21
22 /*
23  * Forward declaration of read methods for groups of scalars and tables:
24  */
25
26 static unsigned char *
27 read_etherStats2Entry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
28 static unsigned char *
29 read_tokenRingMLStats2Entry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
30 static unsigned char *
31 read_tokenRingPStats2Entry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
32 static unsigned char *
33 read_historyControl2Entry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
34 static unsigned char *
35 read_hostControl2Entry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
36 static unsigned char *
37 read_matrixControl2Entry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
38 static unsigned char *
39 read_channel2Entry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
40 static unsigned char *
41 read_filter2Entry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
42 static unsigned char *
43 read_ringStationControl2Entry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
44 static unsigned char *
45 read_sourceRoutingStats2Entry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
46 static unsigned char *
47 read_protocolDir_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
48 static unsigned char *
49 read_protocolDirEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
50 static unsigned char *
51 read_protocolDistControlEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
52 static unsigned char *
53 read_protocolDistStatsEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
54 static unsigned char *
55 read_addressMap_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
56 static unsigned char *
57 read_addressMapControlEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
58 static unsigned char *
59 read_addressMapEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
60 static unsigned char *
61 read_hlHostControlEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
62 static unsigned char *
63 read_nlHostEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
64 static unsigned char *
65 read_hlMatrixControlEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
66 static unsigned char *
67 read_nlMatrixSDEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
68 static unsigned char *
69 read_nlMatrixDSEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
70 static unsigned char *
71 read_nlMatrixTopNControlEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
72 static unsigned char *
73 read_nlMatrixTopNEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
74 static unsigned char *
75 read_alHostEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
76 static unsigned char *
77 read_alMatrixSDEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
78 static unsigned char *
79 read_alMatrixDSEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
80 static unsigned char *
81 read_alMatrixTopNControlEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
82 static unsigned char *
83 read_alMatrixTopNEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
84 static unsigned char *
85 read_usrHistoryControlEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
86 static unsigned char *
87 read_usrHistoryObjectEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
88 static unsigned char *
89 read_usrHistoryEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
90 static unsigned char *
91 read_probeConfig_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
92 static unsigned char *
93 read_serialConfigEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
94 static unsigned char *
95 read_netConfigEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
96 static unsigned char *
97 read_trapDestEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
98 static unsigned char *
99 read_serialConnectionEntry_stub(struct variable *, oid *, size_t *, int, size_t *, WriteMethod **);
100
101 /*
102  * Forward declaration of write methods for writable objects:
103  */
104
105 static int
106 write_filterProtocolDirDataLocalIndex_stub(int, u_char *, u_char, int, u_char *, oid *, int);
107 static int
108 write_filterProtocolDirLocalIndex_stub(int, u_char *, u_char, int, u_char *, oid *, int);
109 static int
110 write_protocolDirDescr_stub(int, u_char *, u_char, int, u_char *, oid *, int);
111 static int
112 write_protocolDirAddressMapConfig_stub(int, u_char *, u_char, int, u_char *, oid *, int);
113 static int
114 write_protocolDirHostConfig_stub(int, u_char *, u_char, int, u_char *, oid *, int);
115 static int
116 write_protocolDirMatrixConfig_stub(int, u_char *, u_char, int, u_char *, oid *, int);
117 static int
118 write_protocolDirOwner_stub(int, u_char *, u_char, int, u_char *, oid *, int);
119 static int
120 write_protocolDirStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
121 static int
122 write_protocolDistControlDataSource_stub(int, u_char *, u_char, int, u_char *, oid *, int);
123 static int
124 write_protocolDistControlOwner_stub(int, u_char *, u_char, int, u_char *, oid *, int);
125 static int
126 write_protocolDistControlStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
127 static int
128 write_addressMapMaxDesiredEntries_stub(int, u_char *, u_char, int, u_char *, oid *, int);
129 static int
130 write_addressMapControlDataSource_stub(int, u_char *, u_char, int, u_char *, oid *, int);
131 static int
132 write_addressMapControlOwner_stub(int, u_char *, u_char, int, u_char *, oid *, int);
133 static int
134 write_addressMapControlStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
135 static int
136 write_hlHostControlDataSource_stub(int, u_char *, u_char, int, u_char *, oid *, int);
137 static int
138 write_hlHostControlNlMaxDesiredEntries_stub(int, u_char *, u_char, int, u_char *, oid *, int);
139 static int
140 write_hlHostControlAlMaxDesiredEntries_stub(int, u_char *, u_char, int, u_char *, oid *, int);
141 static int
142 write_hlHostControlOwner_stub(int, u_char *, u_char, int, u_char *, oid *, int);
143 static int
144 write_hlHostControlStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
145 static int
146 write_hlMatrixControlDataSource_stub(int, u_char *, u_char, int, u_char *, oid *, int);
147 static int
148 write_hlMatrixControlNlMaxDesiredEntries_stub(int, u_char *, u_char, int, u_char *, oid *, int);
149 static int
150 write_hlMatrixControlAlMaxDesiredEntries_stub(int, u_char *, u_char, int, u_char *, oid *, int);
151 static int
152 write_hlMatrixControlOwner_stub(int, u_char *, u_char, int, u_char *, oid *, int);
153 static int
154 write_hlMatrixControlStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
155 static int
156 write_nlMatrixTopNControlMatrixIndex_stub(int, u_char *, u_char, int, u_char *, oid *, int);
157 static int
158 write_nlMatrixTopNControlRateBase_stub(int, u_char *, u_char, int, u_char *, oid *, int);
159 static int
160 write_nlMatrixTopNControlTimeRemaining_stub(int, u_char *, u_char, int, u_char *, oid *, int);
161 static int
162 write_nlMatrixTopNControlRequestedSize_stub(int, u_char *, u_char, int, u_char *, oid *, int);
163 static int
164 write_nlMatrixTopNControlOwner_stub(int, u_char *, u_char, int, u_char *, oid *, int);
165 static int
166 write_nlMatrixTopNControlStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
167 static int
168 write_alMatrixTopNControlMatrixIndex_stub(int, u_char *, u_char, int, u_char *, oid *, int);
169 static int
170 write_alMatrixTopNControlRateBase_stub(int, u_char *, u_char, int, u_char *, oid *, int);
171 static int
172 write_alMatrixTopNControlTimeRemaining_stub(int, u_char *, u_char, int, u_char *, oid *, int);
173 static int
174 write_alMatrixTopNControlRequestedSize_stub(int, u_char *, u_char, int, u_char *, oid *, int);
175 static int
176 write_alMatrixTopNControlOwner_stub(int, u_char *, u_char, int, u_char *, oid *, int);
177 static int
178 write_alMatrixTopNControlStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
179 static int
180 write_usrHistoryControlObjects_stub(int, u_char *, u_char, int, u_char *, oid *, int);
181 static int
182 write_usrHistoryControlBucketsRequested_stub(int, u_char *, u_char, int, u_char *, oid *, int);
183 static int
184 write_usrHistoryControlInterval_stub(int, u_char *, u_char, int, u_char *, oid *, int);
185 static int
186 write_usrHistoryControlOwner_stub(int, u_char *, u_char, int, u_char *, oid *, int);
187 static int
188 write_usrHistoryControlStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
189 static int
190 write_usrHistoryObjectVariable_stub(int, u_char *, u_char, int, u_char *, oid *, int);
191 static int
192 write_usrHistoryObjectSampleType_stub(int, u_char *, u_char, int, u_char *, oid *, int);
193 static int
194 write_probeDateTime_stub(int, u_char *, u_char, int, u_char *, oid *, int);
195 static int
196 write_probeResetControl_stub(int, u_char *, u_char, int, u_char *, oid *, int);
197 static int
198 write_probeDownloadFile_stub(int, u_char *, u_char, int, u_char *, oid *, int);
199 static int
200 write_probeDownloadTFTPServer_stub(int, u_char *, u_char, int, u_char *, oid *, int);
201 static int
202 write_probeDownloadAction_stub(int, u_char *, u_char, int, u_char *, oid *, int);
203 static int
204 write_serialMode_stub(int, u_char *, u_char, int, u_char *, oid *, int);
205 static int
206 write_serialProtocol_stub(int, u_char *, u_char, int, u_char *, oid *, int);
207 static int
208 write_serialTimeout_stub(int, u_char *, u_char, int, u_char *, oid *, int);
209 static int
210 write_serialModemInitString_stub(int, u_char *, u_char, int, u_char *, oid *, int);
211 static int
212 write_serialModemHangUpString_stub(int, u_char *, u_char, int, u_char *, oid *, int);
213 static int
214 write_serialModemConnectResp_stub(int, u_char *, u_char, int, u_char *, oid *, int);
215 static int
216 write_serialModemNoConnectResp_stub(int, u_char *, u_char, int, u_char *, oid *, int);
217 static int
218 write_serialDialoutTimeout_stub(int, u_char *, u_char, int, u_char *, oid *, int);
219 static int
220 write_serialStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
221 static int
222 write_netConfigIPAddress_stub(int, u_char *, u_char, int, u_char *, oid *, int);
223 static int
224 write_netConfigSubnetMask_stub(int, u_char *, u_char, int, u_char *, oid *, int);
225 static int
226 write_netConfigStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
227 static int
228 write_netDefaultGateway_stub(int, u_char *, u_char, int, u_char *, oid *, int);
229 static int
230 write_trapDestCommunity_stub(int, u_char *, u_char, int, u_char *, oid *, int);
231 static int
232 write_trapDestProtocol_stub(int, u_char *, u_char, int, u_char *, oid *, int);
233 static int
234 write_trapDestAddress_stub(int, u_char *, u_char, int, u_char *, oid *, int);
235 static int
236 write_trapDestOwner_stub(int, u_char *, u_char, int, u_char *, oid *, int);
237 static int
238 write_trapDestStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
239 static int
240 write_serialConnectDestIpAddress_stub(int, u_char *, u_char, int, u_char *, oid *, int);
241 static int
242 write_serialConnectType_stub(int, u_char *, u_char, int, u_char *, oid *, int);
243 static int
244 write_serialConnectDialString_stub(int, u_char *, u_char, int, u_char *, oid *, int);
245 static int
246 write_serialConnectSwitchConnectSeq_stub(int, u_char *, u_char, int, u_char *, oid *, int);
247 static int
248 write_serialConnectSwitchDisconnectSeq_stub(int, u_char *, u_char, int, u_char *, oid *, int);
249 static int
250 write_serialConnectSwitchResetSeq_stub(int, u_char *, u_char, int, u_char *, oid *, int);
251 static int
252 write_serialConnectOwner_stub(int, u_char *, u_char, int, u_char *, oid *, int);
253 static int
254 write_serialConnectStatus_stub(int, u_char *, u_char, int, u_char *, oid *, int);
255
256 /*
257  * Definitions of tags that are used internally to read/write
258  * the selected object type. These tags should be unique.
259  */
260
261 #define ETHERSTATSDROPPEDFRAMES          1
262 #define ETHERSTATSCREATETIME             2
263
264 static oid etherStats2Entry_base[] = {1, 3, 6, 1, 2, 1, 16, 1, 4, 1};
265
266 struct variable etherStats2Entry_variables[] = {
267     { ETHERSTATSDROPPEDFRAMES, ASN_INTEGER, RONLY, read_etherStats2Entry_stub, 1, {1} },
268     { ETHERSTATSCREATETIME, ASN_INTEGER, RONLY, read_etherStats2Entry_stub, 1, {2} },
269 };
270
271 #define TOKENRINGMLSTATSDROPPEDFRAMES    1
272 #define TOKENRINGMLSTATSCREATETIME       2
273
274 static oid tokenRingMLStats2Entry_base[] = {1, 3, 6, 1, 2, 1, 16, 1, 5, 1};
275
276 struct variable tokenRingMLStats2Entry_variables[] = {
277     { TOKENRINGMLSTATSDROPPEDFRAMES, ASN_INTEGER, RONLY, read_tokenRingMLStats2Entry_stub, 1, {1} },
278     { TOKENRINGMLSTATSCREATETIME, ASN_INTEGER, RONLY, read_tokenRingMLStats2Entry_stub, 1, {2} },
279 };
280
281 #define TOKENRINGPSTATSDROPPEDFRAMES     1
282 #define TOKENRINGPSTATSCREATETIME        2
283
284 static oid tokenRingPStats2Entry_base[] = {1, 3, 6, 1, 2, 1, 16, 1, 6, 1};
285
286 struct variable tokenRingPStats2Entry_variables[] = {
287     { TOKENRINGPSTATSDROPPEDFRAMES, ASN_INTEGER, RONLY, read_tokenRingPStats2Entry_stub, 1, {1} },
288     { TOKENRINGPSTATSCREATETIME, ASN_INTEGER, RONLY, read_tokenRingPStats2Entry_stub, 1, {2} },
289 };
290
291 #define HISTORYCONTROLDROPPEDFRAMES      1
292
293 static oid historyControl2Entry_base[] = {1, 3, 6, 1, 2, 1, 16, 2, 5, 1};
294
295 struct variable historyControl2Entry_variables[] = {
296     { HISTORYCONTROLDROPPEDFRAMES, ASN_INTEGER, RONLY, read_historyControl2Entry_stub, 1, {1} },
297 };
298
299 #define HOSTCONTROLDROPPEDFRAMES         1
300 #define HOSTCONTROLCREATETIME            2
301
302 static oid hostControl2Entry_base[] = {1, 3, 6, 1, 2, 1, 16, 4, 4, 1};
303
304 struct variable hostControl2Entry_variables[] = {
305     { HOSTCONTROLDROPPEDFRAMES, ASN_INTEGER, RONLY, read_hostControl2Entry_stub, 1, {1} },
306     { HOSTCONTROLCREATETIME, ASN_INTEGER, RONLY, read_hostControl2Entry_stub, 1, {2} },
307 };
308
309 #define MATRIXCONTROLDROPPEDFRAMES       1
310 #define MATRIXCONTROLCREATETIME          2
311
312 static oid matrixControl2Entry_base[] = {1, 3, 6, 1, 2, 1, 16, 6, 4, 1};
313
314 struct variable matrixControl2Entry_variables[] = {
315     { MATRIXCONTROLDROPPEDFRAMES, ASN_INTEGER, RONLY, read_matrixControl2Entry_stub, 1, {1} },
316     { MATRIXCONTROLCREATETIME, ASN_INTEGER, RONLY, read_matrixControl2Entry_stub, 1, {2} },
317 };
318
319 #define CHANNELDROPPEDFRAMES             1
320 #define CHANNELCREATETIME                2
321
322 static oid channel2Entry_base[] = {1, 3, 6, 1, 2, 1, 16, 7, 3, 1};
323
324 struct variable channel2Entry_variables[] = {
325     { CHANNELDROPPEDFRAMES, ASN_INTEGER, RONLY, read_channel2Entry_stub, 1, {1} },
326     { CHANNELCREATETIME, ASN_INTEGER, RONLY, read_channel2Entry_stub, 1, {2} },
327 };
328
329 #define FILTERPROTOCOLDIRDATALOCALINDEX  1
330 #define FILTERPROTOCOLDIRLOCALINDEX      2
331
332 static oid filter2Entry_base[] = {1, 3, 6, 1, 2, 1, 16, 7, 4, 1};
333
334 struct variable filter2Entry_variables[] = {
335     { FILTERPROTOCOLDIRDATALOCALINDEX, ASN_INTEGER, RWRITE, read_filter2Entry_stub, 1, {1} },
336     { FILTERPROTOCOLDIRLOCALINDEX, ASN_INTEGER, RWRITE, read_filter2Entry_stub, 1, {2} },
337 };
338
339 #define RINGSTATIONCONTROLDROPPEDFRAMES  1
340 #define RINGSTATIONCONTROLCREATETIME     2
341
342 static oid ringStationControl2Entry_base[] = {1, 3, 6, 1, 2, 1, 16, 10, 7, 1};
343
344 struct variable ringStationControl2Entry_variables[] = {
345     { RINGSTATIONCONTROLDROPPEDFRAMES, ASN_INTEGER, RONLY, read_ringStationControl2Entry_stub, 1, {1} },
346     { RINGSTATIONCONTROLCREATETIME, ASN_INTEGER, RONLY, read_ringStationControl2Entry_stub, 1, {2} },
347 };
348
349 #define SOURCEROUTINGSTATSDROPPEDFRAMES  1
350 #define SOURCEROUTINGSTATSCREATETIME     2
351
352 static oid sourceRoutingStats2Entry_base[] = {1, 3, 6, 1, 2, 1, 16, 10, 8, 1};
353
354 struct variable sourceRoutingStats2Entry_variables[] = {
355     { SOURCEROUTINGSTATSDROPPEDFRAMES, ASN_INTEGER, RONLY, read_sourceRoutingStats2Entry_stub, 1, {1} },
356     { SOURCEROUTINGSTATSCREATETIME, ASN_INTEGER, RONLY, read_sourceRoutingStats2Entry_stub, 1, {2} },
357 };
358
359 #define PROTOCOLDIRLASTCHANGE            1
360
361 static oid protocolDir_base[] = {1, 3, 6, 1, 2, 1, 16, 11};
362
363 struct variable protocolDir_variables[] = {
364     { PROTOCOLDIRLASTCHANGE, ASN_INTEGER, RONLY, read_protocolDir_stub, 1, {1} },
365 };
366
367 #define PROTOCOLDIRLOCALINDEX            3
368 #define PROTOCOLDIRDESCR                 4
369 #define PROTOCOLDIRTYPE                  5
370 #define PROTOCOLDIRADDRESSMAPCONFIG      6
371 #define PROTOCOLDIRHOSTCONFIG            7
372 #define PROTOCOLDIRMATRIXCONFIG          8
373 #define PROTOCOLDIROWNER                 9
374 #define PROTOCOLDIRSTATUS                10
375
376 static oid protocolDirEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 11, 2, 1};
377
378 struct variable protocolDirEntry_variables[] = {
379     { PROTOCOLDIRLOCALINDEX, ASN_INTEGER, RONLY, read_protocolDirEntry_stub, 1, {3} },
380     { PROTOCOLDIRDESCR, ASN_OCTET_STR, RWRITE, read_protocolDirEntry_stub, 1, {4} },
381     { PROTOCOLDIRTYPE, ASN_OCTET_STR, RONLY, read_protocolDirEntry_stub, 1, {5} },
382     { PROTOCOLDIRADDRESSMAPCONFIG, ASN_INTEGER, RWRITE, read_protocolDirEntry_stub, 1, {6} },
383     { PROTOCOLDIRHOSTCONFIG, ASN_INTEGER, RWRITE, read_protocolDirEntry_stub, 1, {7} },
384     { PROTOCOLDIRMATRIXCONFIG, ASN_INTEGER, RWRITE, read_protocolDirEntry_stub, 1, {8} },
385     { PROTOCOLDIROWNER, ASN_OCTET_STR, RWRITE, read_protocolDirEntry_stub, 1, {9} },
386     { PROTOCOLDIRSTATUS, ASN_INTEGER, RWRITE, read_protocolDirEntry_stub, 1, {10} },
387 };
388
389 #define PROTOCOLDISTCONTROLDATASOURCE    2
390 #define PROTOCOLDISTCONTROLDROPPEDFRAMES 3
391 #define PROTOCOLDISTCONTROLCREATETIME    4
392 #define PROTOCOLDISTCONTROLOWNER         5
393 #define PROTOCOLDISTCONTROLSTATUS        6
394
395 static oid protocolDistControlEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 12, 1, 1};
396
397 struct variable protocolDistControlEntry_variables[] = {
398     { PROTOCOLDISTCONTROLDATASOURCE, ASN_OBJECT_ID, RWRITE, read_protocolDistControlEntry_stub, 1, {2} },
399     { PROTOCOLDISTCONTROLDROPPEDFRAMES, ASN_INTEGER, RONLY, read_protocolDistControlEntry_stub, 1, {3} },
400     { PROTOCOLDISTCONTROLCREATETIME, ASN_INTEGER, RONLY, read_protocolDistControlEntry_stub, 1, {4} },
401     { PROTOCOLDISTCONTROLOWNER, ASN_OCTET_STR, RWRITE, read_protocolDistControlEntry_stub, 1, {5} },
402     { PROTOCOLDISTCONTROLSTATUS, ASN_INTEGER, RWRITE, read_protocolDistControlEntry_stub, 1, {6} },
403 };
404
405 #define PROTOCOLDISTSTATSPKTS            1
406 #define PROTOCOLDISTSTATSOCTETS          2
407
408 static oid protocolDistStatsEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 12, 2, 1};
409
410 struct variable protocolDistStatsEntry_variables[] = {
411     { PROTOCOLDISTSTATSPKTS, ASN_INTEGER, RONLY, read_protocolDistStatsEntry_stub, 1, {1} },
412     { PROTOCOLDISTSTATSOCTETS, ASN_INTEGER, RONLY, read_protocolDistStatsEntry_stub, 1, {2} },
413 };
414
415 #define ADDRESSMAPINSERTS                1
416 #define ADDRESSMAPDELETES                2
417 #define ADDRESSMAPMAXDESIREDENTRIES      3
418
419 static oid addressMap_base[] = {1, 3, 6, 1, 2, 1, 16, 13};
420
421 struct variable addressMap_variables[] = {
422     { ADDRESSMAPINSERTS, ASN_INTEGER, RONLY, read_addressMap_stub, 1, {1} },
423     { ADDRESSMAPDELETES, ASN_INTEGER, RONLY, read_addressMap_stub, 1, {2} },
424     { ADDRESSMAPMAXDESIREDENTRIES, ASN_INTEGER, RWRITE, read_addressMap_stub, 1, {3} },
425 };
426
427 #define ADDRESSMAPCONTROLDATASOURCE      2
428 #define ADDRESSMAPCONTROLDROPPEDFRAMES   3
429 #define ADDRESSMAPCONTROLOWNER           4
430 #define ADDRESSMAPCONTROLSTATUS          5
431
432 static oid addressMapControlEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 13, 4, 1};
433
434 struct variable addressMapControlEntry_variables[] = {
435     { ADDRESSMAPCONTROLDATASOURCE, ASN_OBJECT_ID, RWRITE, read_addressMapControlEntry_stub, 1, {2} },
436     { ADDRESSMAPCONTROLDROPPEDFRAMES, ASN_INTEGER, RONLY, read_addressMapControlEntry_stub, 1, {3} },
437     { ADDRESSMAPCONTROLOWNER, ASN_OCTET_STR, RWRITE, read_addressMapControlEntry_stub, 1, {4} },
438     { ADDRESSMAPCONTROLSTATUS, ASN_INTEGER, RWRITE, read_addressMapControlEntry_stub, 1, {5} },
439 };
440
441 #define ADDRESSMAPPHYSICALADDRESS        4
442 #define ADDRESSMAPLASTCHANGE             5
443
444 static oid addressMapEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 13, 5, 1};
445
446 struct variable addressMapEntry_variables[] = {
447     { ADDRESSMAPPHYSICALADDRESS, ASN_OCTET_STR, RONLY, read_addressMapEntry_stub, 1, {4} },
448     { ADDRESSMAPLASTCHANGE, ASN_INTEGER, RONLY, read_addressMapEntry_stub, 1, {5} },
449 };
450
451 #define HLHOSTCONTROLDATASOURCE          2
452 #define HLHOSTCONTROLNLDROPPEDFRAMES     3
453 #define HLHOSTCONTROLNLINSERTS           4
454 #define HLHOSTCONTROLNLDELETES           5
455 #define HLHOSTCONTROLNLMAXDESIREDENTRIES 6
456 #define HLHOSTCONTROLALDROPPEDFRAMES     7
457 #define HLHOSTCONTROLALINSERTS           8
458 #define HLHOSTCONTROLALDELETES           9
459 #define HLHOSTCONTROLALMAXDESIREDENTRIES 10
460 #define HLHOSTCONTROLOWNER               11
461 #define HLHOSTCONTROLSTATUS              12
462
463 static oid hlHostControlEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 14, 1, 1};
464
465 struct variable hlHostControlEntry_variables[] = {
466     { HLHOSTCONTROLDATASOURCE, ASN_OBJECT_ID, RWRITE, read_hlHostControlEntry_stub, 1, {2} },
467     { HLHOSTCONTROLNLDROPPEDFRAMES, ASN_INTEGER, RONLY, read_hlHostControlEntry_stub, 1, {3} },
468     { HLHOSTCONTROLNLINSERTS, ASN_INTEGER, RONLY, read_hlHostControlEntry_stub, 1, {4} },
469     { HLHOSTCONTROLNLDELETES, ASN_INTEGER, RONLY, read_hlHostControlEntry_stub, 1, {5} },
470     { HLHOSTCONTROLNLMAXDESIREDENTRIES, ASN_INTEGER, RWRITE, read_hlHostControlEntry_stub, 1, {6} },
471     { HLHOSTCONTROLALDROPPEDFRAMES, ASN_INTEGER, RONLY, read_hlHostControlEntry_stub, 1, {7} },
472     { HLHOSTCONTROLALINSERTS, ASN_INTEGER, RONLY, read_hlHostControlEntry_stub, 1, {8} },
473     { HLHOSTCONTROLALDELETES, ASN_INTEGER, RONLY, read_hlHostControlEntry_stub, 1, {9} },
474     { HLHOSTCONTROLALMAXDESIREDENTRIES, ASN_INTEGER, RWRITE, read_hlHostControlEntry_stub, 1, {10} },
475     { HLHOSTCONTROLOWNER, ASN_OCTET_STR, RWRITE, read_hlHostControlEntry_stub, 1, {11} },
476     { HLHOSTCONTROLSTATUS, ASN_INTEGER, RWRITE, read_hlHostControlEntry_stub, 1, {12} },
477 };
478
479 #define NLHOSTINPKTS                     3
480 #define NLHOSTOUTPKTS                    4
481 #define NLHOSTINOCTETS                   5
482 #define NLHOSTOUTOCTETS                  6
483 #define NLHOSTOUTMACNONUNICASTPKTS       7
484 #define NLHOSTCREATETIME                 8
485
486 static oid nlHostEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 14, 2, 1};
487
488 struct variable nlHostEntry_variables[] = {
489     { NLHOSTINPKTS, ASN_INTEGER, RONLY, read_nlHostEntry_stub, 1, {3} },
490     { NLHOSTOUTPKTS, ASN_INTEGER, RONLY, read_nlHostEntry_stub, 1, {4} },
491     { NLHOSTINOCTETS, ASN_INTEGER, RONLY, read_nlHostEntry_stub, 1, {5} },
492     { NLHOSTOUTOCTETS, ASN_INTEGER, RONLY, read_nlHostEntry_stub, 1, {6} },
493     { NLHOSTOUTMACNONUNICASTPKTS, ASN_INTEGER, RONLY, read_nlHostEntry_stub, 1, {7} },
494     { NLHOSTCREATETIME, ASN_INTEGER, RONLY, read_nlHostEntry_stub, 1, {8} },
495 };
496
497 #define HLMATRIXCONTROLDATASOURCE        2
498 #define HLMATRIXCONTROLNLDROPPEDFRAMES   3
499 #define HLMATRIXCONTROLNLINSERTS         4
500 #define HLMATRIXCONTROLNLDELETES         5
501 #define HLMATRIXCONTROLNLMAXDESIREDENTRIES 6
502 #define HLMATRIXCONTROLALDROPPEDFRAMES   7
503 #define HLMATRIXCONTROLALINSERTS         8
504 #define HLMATRIXCONTROLALDELETES         9
505 #define HLMATRIXCONTROLALMAXDESIREDENTRIES 10
506 #define HLMATRIXCONTROLOWNER             11
507 #define HLMATRIXCONTROLSTATUS            12
508
509 static oid hlMatrixControlEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 15, 1, 1};
510
511 struct variable hlMatrixControlEntry_variables[] = {
512     { HLMATRIXCONTROLDATASOURCE, ASN_OBJECT_ID, RWRITE, read_hlMatrixControlEntry_stub, 1, {2} },
513     { HLMATRIXCONTROLNLDROPPEDFRAMES, ASN_INTEGER, RONLY, read_hlMatrixControlEntry_stub, 1, {3} },
514     { HLMATRIXCONTROLNLINSERTS, ASN_INTEGER, RONLY, read_hlMatrixControlEntry_stub, 1, {4} },
515     { HLMATRIXCONTROLNLDELETES, ASN_INTEGER, RONLY, read_hlMatrixControlEntry_stub, 1, {5} },
516     { HLMATRIXCONTROLNLMAXDESIREDENTRIES, ASN_INTEGER, RWRITE, read_hlMatrixControlEntry_stub, 1, {6} },
517     { HLMATRIXCONTROLALDROPPEDFRAMES, ASN_INTEGER, RONLY, read_hlMatrixControlEntry_stub, 1, {7} },
518     { HLMATRIXCONTROLALINSERTS, ASN_INTEGER, RONLY, read_hlMatrixControlEntry_stub, 1, {8} },
519     { HLMATRIXCONTROLALDELETES, ASN_INTEGER, RONLY, read_hlMatrixControlEntry_stub, 1, {9} },
520     { HLMATRIXCONTROLALMAXDESIREDENTRIES, ASN_INTEGER, RWRITE, read_hlMatrixControlEntry_stub, 1, {10} },
521     { HLMATRIXCONTROLOWNER, ASN_OCTET_STR, RWRITE, read_hlMatrixControlEntry_stub, 1, {11} },
522     { HLMATRIXCONTROLSTATUS, ASN_INTEGER, RWRITE, read_hlMatrixControlEntry_stub, 1, {12} },
523 };
524
525 #define NLMATRIXSDPKTS                   4
526 #define NLMATRIXSDOCTETS                 5
527 #define NLMATRIXSDCREATETIME             6
528
529 static oid nlMatrixSDEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 15, 2, 1};
530
531 struct variable nlMatrixSDEntry_variables[] = {
532     { NLMATRIXSDPKTS, ASN_INTEGER, RONLY, read_nlMatrixSDEntry_stub, 1, {4} },
533     { NLMATRIXSDOCTETS, ASN_INTEGER, RONLY, read_nlMatrixSDEntry_stub, 1, {5} },
534     { NLMATRIXSDCREATETIME, ASN_INTEGER, RONLY, read_nlMatrixSDEntry_stub, 1, {6} },
535 };
536
537 #define NLMATRIXDSPKTS                   4
538 #define NLMATRIXDSOCTETS                 5
539 #define NLMATRIXDSCREATETIME             6
540
541 static oid nlMatrixDSEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 15, 3, 1};
542
543 struct variable nlMatrixDSEntry_variables[] = {
544     { NLMATRIXDSPKTS, ASN_INTEGER, RONLY, read_nlMatrixDSEntry_stub, 1, {4} },
545     { NLMATRIXDSOCTETS, ASN_INTEGER, RONLY, read_nlMatrixDSEntry_stub, 1, {5} },
546     { NLMATRIXDSCREATETIME, ASN_INTEGER, RONLY, read_nlMatrixDSEntry_stub, 1, {6} },
547 };
548
549 #define NLMATRIXTOPNCONTROLMATRIXINDEX   2
550 #define NLMATRIXTOPNCONTROLRATEBASE      3
551 #define NLMATRIXTOPNCONTROLTIMEREMAINING 4
552 #define NLMATRIXTOPNCONTROLGENERATEDREPORTS 5
553 #define NLMATRIXTOPNCONTROLDURATION      6
554 #define NLMATRIXTOPNCONTROLREQUESTEDSIZE 7
555 #define NLMATRIXTOPNCONTROLGRANTEDSIZE   8
556 #define NLMATRIXTOPNCONTROLSTARTTIME     9
557 #define NLMATRIXTOPNCONTROLOWNER         10
558 #define NLMATRIXTOPNCONTROLSTATUS        11
559
560 static oid nlMatrixTopNControlEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 15, 4, 1};
561
562 struct variable nlMatrixTopNControlEntry_variables[] = {
563     { NLMATRIXTOPNCONTROLMATRIXINDEX, ASN_INTEGER, RWRITE, read_nlMatrixTopNControlEntry_stub, 1, {2} },
564     { NLMATRIXTOPNCONTROLRATEBASE, ASN_INTEGER, RWRITE, read_nlMatrixTopNControlEntry_stub, 1, {3} },
565     { NLMATRIXTOPNCONTROLTIMEREMAINING, ASN_INTEGER, RWRITE, read_nlMatrixTopNControlEntry_stub, 1, {4} },
566     { NLMATRIXTOPNCONTROLGENERATEDREPORTS, ASN_INTEGER, RONLY, read_nlMatrixTopNControlEntry_stub, 1, {5} },
567     { NLMATRIXTOPNCONTROLDURATION, ASN_INTEGER, RONLY, read_nlMatrixTopNControlEntry_stub, 1, {6} },
568     { NLMATRIXTOPNCONTROLREQUESTEDSIZE, ASN_INTEGER, RWRITE, read_nlMatrixTopNControlEntry_stub, 1, {7} },
569     { NLMATRIXTOPNCONTROLGRANTEDSIZE, ASN_INTEGER, RONLY, read_nlMatrixTopNControlEntry_stub, 1, {8} },
570     { NLMATRIXTOPNCONTROLSTARTTIME, ASN_INTEGER, RONLY, read_nlMatrixTopNControlEntry_stub, 1, {9} },
571     { NLMATRIXTOPNCONTROLOWNER, ASN_OCTET_STR, RWRITE, read_nlMatrixTopNControlEntry_stub, 1, {10} },
572     { NLMATRIXTOPNCONTROLSTATUS, ASN_INTEGER, RWRITE, read_nlMatrixTopNControlEntry_stub, 1, {11} },
573 };
574
575 #define NLMATRIXTOPNPROTOCOLDIRLOCALINDEX 2
576 #define NLMATRIXTOPNSOURCEADDRESS        3
577 #define NLMATRIXTOPNDESTADDRESS          4
578 #define NLMATRIXTOPNPKTRATE              5
579 #define NLMATRIXTOPNREVERSEPKTRATE       6
580 #define NLMATRIXTOPNOCTETRATE            7
581 #define NLMATRIXTOPNREVERSEOCTETRATE     8
582
583 static oid nlMatrixTopNEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 15, 5, 1};
584
585 struct variable nlMatrixTopNEntry_variables[] = {
586     { NLMATRIXTOPNPROTOCOLDIRLOCALINDEX, ASN_INTEGER, RONLY, read_nlMatrixTopNEntry_stub, 1, {2} },
587     { NLMATRIXTOPNSOURCEADDRESS, ASN_OCTET_STR, RONLY, read_nlMatrixTopNEntry_stub, 1, {3} },
588     { NLMATRIXTOPNDESTADDRESS, ASN_OCTET_STR, RONLY, read_nlMatrixTopNEntry_stub, 1, {4} },
589     { NLMATRIXTOPNPKTRATE, ASN_INTEGER, RONLY, read_nlMatrixTopNEntry_stub, 1, {5} },
590     { NLMATRIXTOPNREVERSEPKTRATE, ASN_INTEGER, RONLY, read_nlMatrixTopNEntry_stub, 1, {6} },
591     { NLMATRIXTOPNOCTETRATE, ASN_INTEGER, RONLY, read_nlMatrixTopNEntry_stub, 1, {7} },
592     { NLMATRIXTOPNREVERSEOCTETRATE, ASN_INTEGER, RONLY, read_nlMatrixTopNEntry_stub, 1, {8} },
593 };
594
595 #define ALHOSTINPKTS                     2
596 #define ALHOSTOUTPKTS                    3
597 #define ALHOSTINOCTETS                   4
598 #define ALHOSTOUTOCTETS                  5
599 #define ALHOSTCREATETIME                 6
600
601 static oid alHostEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 16, 1, 1};
602
603 struct variable alHostEntry_variables[] = {
604     { ALHOSTINPKTS, ASN_INTEGER, RONLY, read_alHostEntry_stub, 1, {2} },
605     { ALHOSTOUTPKTS, ASN_INTEGER, RONLY, read_alHostEntry_stub, 1, {3} },
606     { ALHOSTINOCTETS, ASN_INTEGER, RONLY, read_alHostEntry_stub, 1, {4} },
607     { ALHOSTOUTOCTETS, ASN_INTEGER, RONLY, read_alHostEntry_stub, 1, {5} },
608     { ALHOSTCREATETIME, ASN_INTEGER, RONLY, read_alHostEntry_stub, 1, {6} },
609 };
610
611 #define ALMATRIXSDPKTS                   2
612 #define ALMATRIXSDOCTETS                 3
613 #define ALMATRIXSDCREATETIME             4
614
615 static oid alMatrixSDEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 17, 1, 1};
616
617 struct variable alMatrixSDEntry_variables[] = {
618     { ALMATRIXSDPKTS, ASN_INTEGER, RONLY, read_alMatrixSDEntry_stub, 1, {2} },
619     { ALMATRIXSDOCTETS, ASN_INTEGER, RONLY, read_alMatrixSDEntry_stub, 1, {3} },
620     { ALMATRIXSDCREATETIME, ASN_INTEGER, RONLY, read_alMatrixSDEntry_stub, 1, {4} },
621 };
622
623 #define ALMATRIXDSPKTS                   2
624 #define ALMATRIXDSOCTETS                 3
625 #define ALMATRIXDSCREATETIME             4
626
627 static oid alMatrixDSEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 17, 2, 1};
628
629 struct variable alMatrixDSEntry_variables[] = {
630     { ALMATRIXDSPKTS, ASN_INTEGER, RONLY, read_alMatrixDSEntry_stub, 1, {2} },
631     { ALMATRIXDSOCTETS, ASN_INTEGER, RONLY, read_alMatrixDSEntry_stub, 1, {3} },
632     { ALMATRIXDSCREATETIME, ASN_INTEGER, RONLY, read_alMatrixDSEntry_stub, 1, {4} },
633 };
634
635 #define ALMATRIXTOPNCONTROLMATRIXINDEX   2
636 #define ALMATRIXTOPNCONTROLRATEBASE      3
637 #define ALMATRIXTOPNCONTROLTIMEREMAINING 4
638 #define ALMATRIXTOPNCONTROLGENERATEDREPORTS 5
639 #define ALMATRIXTOPNCONTROLDURATION      6
640 #define ALMATRIXTOPNCONTROLREQUESTEDSIZE 7
641 #define ALMATRIXTOPNCONTROLGRANTEDSIZE   8
642 #define ALMATRIXTOPNCONTROLSTARTTIME     9
643 #define ALMATRIXTOPNCONTROLOWNER         10
644 #define ALMATRIXTOPNCONTROLSTATUS        11
645
646 static oid alMatrixTopNControlEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 17, 3, 1};
647
648 struct variable alMatrixTopNControlEntry_variables[] = {
649     { ALMATRIXTOPNCONTROLMATRIXINDEX, ASN_INTEGER, RWRITE, read_alMatrixTopNControlEntry_stub, 1, {2} },
650     { ALMATRIXTOPNCONTROLRATEBASE, ASN_INTEGER, RWRITE, read_alMatrixTopNControlEntry_stub, 1, {3} },
651     { ALMATRIXTOPNCONTROLTIMEREMAINING, ASN_INTEGER, RWRITE, read_alMatrixTopNControlEntry_stub, 1, {4} },
652     { ALMATRIXTOPNCONTROLGENERATEDREPORTS, ASN_INTEGER, RONLY, read_alMatrixTopNControlEntry_stub, 1, {5} },
653     { ALMATRIXTOPNCONTROLDURATION, ASN_INTEGER, RONLY, read_alMatrixTopNControlEntry_stub, 1, {6} },
654     { ALMATRIXTOPNCONTROLREQUESTEDSIZE, ASN_INTEGER, RWRITE, read_alMatrixTopNControlEntry_stub, 1, {7} },
655     { ALMATRIXTOPNCONTROLGRANTEDSIZE, ASN_INTEGER, RONLY, read_alMatrixTopNControlEntry_stub, 1, {8} },
656     { ALMATRIXTOPNCONTROLSTARTTIME, ASN_INTEGER, RONLY, read_alMatrixTopNControlEntry_stub, 1, {9} },
657     { ALMATRIXTOPNCONTROLOWNER, ASN_OCTET_STR, RWRITE, read_alMatrixTopNControlEntry_stub, 1, {10} },
658     { ALMATRIXTOPNCONTROLSTATUS, ASN_INTEGER, RWRITE, read_alMatrixTopNControlEntry_stub, 1, {11} },
659 };
660
661 #define ALMATRIXTOPNPROTOCOLDIRLOCALINDEX 2
662 #define ALMATRIXTOPNSOURCEADDRESS        3
663 #define ALMATRIXTOPNDESTADDRESS          4
664 #define ALMATRIXTOPNAPPPROTOCOLDIRLOCALINDEX 5
665 #define ALMATRIXTOPNPKTRATE              6
666 #define ALMATRIXTOPNREVERSEPKTRATE       7
667 #define ALMATRIXTOPNOCTETRATE            8
668 #define ALMATRIXTOPNREVERSEOCTETRATE     9
669
670 static oid alMatrixTopNEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 17, 4, 1};
671
672 struct variable alMatrixTopNEntry_variables[] = {
673     { ALMATRIXTOPNPROTOCOLDIRLOCALINDEX, ASN_INTEGER, RONLY, read_alMatrixTopNEntry_stub, 1, {2} },
674     { ALMATRIXTOPNSOURCEADDRESS, ASN_OCTET_STR, RONLY, read_alMatrixTopNEntry_stub, 1, {3} },
675     { ALMATRIXTOPNDESTADDRESS, ASN_OCTET_STR, RONLY, read_alMatrixTopNEntry_stub, 1, {4} },
676     { ALMATRIXTOPNAPPPROTOCOLDIRLOCALINDEX, ASN_INTEGER, RONLY, read_alMatrixTopNEntry_stub, 1, {5} },
677     { ALMATRIXTOPNPKTRATE, ASN_INTEGER, RONLY, read_alMatrixTopNEntry_stub, 1, {6} },
678     { ALMATRIXTOPNREVERSEPKTRATE, ASN_INTEGER, RONLY, read_alMatrixTopNEntry_stub, 1, {7} },
679     { ALMATRIXTOPNOCTETRATE, ASN_INTEGER, RONLY, read_alMatrixTopNEntry_stub, 1, {8} },
680     { ALMATRIXTOPNREVERSEOCTETRATE, ASN_INTEGER, RONLY, read_alMatrixTopNEntry_stub, 1, {9} },
681 };
682
683 #define USRHISTORYCONTROLOBJECTS         2
684 #define USRHISTORYCONTROLBUCKETSREQUESTED 3
685 #define USRHISTORYCONTROLBUCKETSGRANTED  4
686 #define USRHISTORYCONTROLINTERVAL        5
687 #define USRHISTORYCONTROLOWNER           6
688 #define USRHISTORYCONTROLSTATUS          7
689
690 static oid usrHistoryControlEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 18, 1, 1};
691
692 struct variable usrHistoryControlEntry_variables[] = {
693     { USRHISTORYCONTROLOBJECTS, ASN_INTEGER, RWRITE, read_usrHistoryControlEntry_stub, 1, {2} },
694     { USRHISTORYCONTROLBUCKETSREQUESTED, ASN_INTEGER, RWRITE, read_usrHistoryControlEntry_stub, 1, {3} },
695     { USRHISTORYCONTROLBUCKETSGRANTED, ASN_INTEGER, RONLY, read_usrHistoryControlEntry_stub, 1, {4} },
696     { USRHISTORYCONTROLINTERVAL, ASN_INTEGER, RWRITE, read_usrHistoryControlEntry_stub, 1, {5} },
697     { USRHISTORYCONTROLOWNER, ASN_OCTET_STR, RWRITE, read_usrHistoryControlEntry_stub, 1, {6} },
698     { USRHISTORYCONTROLSTATUS, ASN_INTEGER, RWRITE, read_usrHistoryControlEntry_stub, 1, {7} },
699 };
700
701 #define USRHISTORYOBJECTVARIABLE         2
702 #define USRHISTORYOBJECTSAMPLETYPE       3
703
704 static oid usrHistoryObjectEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 18, 2, 1};
705
706 struct variable usrHistoryObjectEntry_variables[] = {
707     { USRHISTORYOBJECTVARIABLE, ASN_OBJECT_ID, RWRITE, read_usrHistoryObjectEntry_stub, 1, {2} },
708     { USRHISTORYOBJECTSAMPLETYPE, ASN_INTEGER, RWRITE, read_usrHistoryObjectEntry_stub, 1, {3} },
709 };
710
711 #define USRHISTORYINTERVALSTART          2
712 #define USRHISTORYINTERVALEND            3
713 #define USRHISTORYABSVALUE               4
714 #define USRHISTORYVALSTATUS              5
715
716 static oid usrHistoryEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 18, 3, 1};
717
718 struct variable usrHistoryEntry_variables[] = {
719     { USRHISTORYINTERVALSTART, ASN_INTEGER, RONLY, read_usrHistoryEntry_stub, 1, {2} },
720     { USRHISTORYINTERVALEND, ASN_INTEGER, RONLY, read_usrHistoryEntry_stub, 1, {3} },
721     { USRHISTORYABSVALUE, ASN_INTEGER, RONLY, read_usrHistoryEntry_stub, 1, {4} },
722     { USRHISTORYVALSTATUS, ASN_INTEGER, RONLY, read_usrHistoryEntry_stub, 1, {5} },
723 };
724
725 #define PROBECAPABILITIES                1
726 #define PROBESOFTWAREREV                 2
727 #define PROBEHARDWAREREV                 3
728 #define PROBEDATETIME                    4
729 #define PROBERESETCONTROL                5
730 #define PROBEDOWNLOADFILE                6
731 #define PROBEDOWNLOADTFTPSERVER          7
732 #define PROBEDOWNLOADACTION              8
733 #define PROBEDOWNLOADSTATUS              9
734 #define NETDEFAULTGATEWAY                12
735
736 static oid probeConfig_base[] = {1, 3, 6, 1, 2, 1, 16, 19};
737
738 struct variable probeConfig_variables[] = {
739     { PROBECAPABILITIES, ASN_OCTET_STR, RONLY, read_probeConfig_stub, 1, {1} },
740     { PROBESOFTWAREREV, ASN_OCTET_STR, RONLY, read_probeConfig_stub, 1, {2} },
741     { PROBEHARDWAREREV, ASN_OCTET_STR, RONLY, read_probeConfig_stub, 1, {3} },
742     { PROBEDATETIME, ASN_OCTET_STR, RWRITE, read_probeConfig_stub, 1, {4} },
743     { PROBERESETCONTROL, ASN_INTEGER, RWRITE, read_probeConfig_stub, 1, {5} },
744     { PROBEDOWNLOADFILE, ASN_OCTET_STR, RWRITE, read_probeConfig_stub, 1, {6} },
745     { PROBEDOWNLOADTFTPSERVER, ASN_OCTET_STR, RWRITE, read_probeConfig_stub, 1, {7} },
746     { PROBEDOWNLOADACTION, ASN_INTEGER, RWRITE, read_probeConfig_stub, 1, {8} },
747     { PROBEDOWNLOADSTATUS, ASN_INTEGER, RONLY, read_probeConfig_stub, 1, {9} },
748     { NETDEFAULTGATEWAY, ASN_OCTET_STR, RWRITE, read_probeConfig_stub, 1, {12} },
749 };
750
751 #define SERIALMODE                       1
752 #define SERIALPROTOCOL                   2
753 #define SERIALTIMEOUT                    3
754 #define SERIALMODEMINITSTRING            4
755 #define SERIALMODEMHANGUPSTRING          5
756 #define SERIALMODEMCONNECTRESP           6
757 #define SERIALMODEMNOCONNECTRESP         7
758 #define SERIALDIALOUTTIMEOUT             8
759 #define SERIALSTATUS                     9
760
761 static oid serialConfigEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 19, 10, 1};
762
763 struct variable serialConfigEntry_variables[] = {
764     { SERIALMODE, ASN_INTEGER, RWRITE, read_serialConfigEntry_stub, 1, {1} },
765     { SERIALPROTOCOL, ASN_INTEGER, RWRITE, read_serialConfigEntry_stub, 1, {2} },
766     { SERIALTIMEOUT, ASN_INTEGER, RWRITE, read_serialConfigEntry_stub, 1, {3} },
767     { SERIALMODEMINITSTRING, ASN_OCTET_STR, RWRITE, read_serialConfigEntry_stub, 1, {4} },
768     { SERIALMODEMHANGUPSTRING, ASN_OCTET_STR, RWRITE, read_serialConfigEntry_stub, 1, {5} },
769     { SERIALMODEMCONNECTRESP, ASN_OCTET_STR, RWRITE, read_serialConfigEntry_stub, 1, {6} },
770     { SERIALMODEMNOCONNECTRESP, ASN_OCTET_STR, RWRITE, read_serialConfigEntry_stub, 1, {7} },
771     { SERIALDIALOUTTIMEOUT, ASN_INTEGER, RWRITE, read_serialConfigEntry_stub, 1, {8} },
772     { SERIALSTATUS, ASN_INTEGER, RWRITE, read_serialConfigEntry_stub, 1, {9} },
773 };
774
775 #define NETCONFIGIPADDRESS               1
776 #define NETCONFIGSUBNETMASK              2
777 #define NETCONFIGSTATUS                  3
778
779 static oid netConfigEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 19, 11, 1};
780
781 struct variable netConfigEntry_variables[] = {
782     { NETCONFIGIPADDRESS, ASN_OCTET_STR, RWRITE, read_netConfigEntry_stub, 1, {1} },
783     { NETCONFIGSUBNETMASK, ASN_OCTET_STR, RWRITE, read_netConfigEntry_stub, 1, {2} },
784     { NETCONFIGSTATUS, ASN_INTEGER, RWRITE, read_netConfigEntry_stub, 1, {3} },
785 };
786
787 #define TRAPDESTCOMMUNITY                2
788 #define TRAPDESTPROTOCOL                 3
789 #define TRAPDESTADDRESS                  4
790 #define TRAPDESTOWNER                    5
791 #define TRAPDESTSTATUS                   6
792
793 static oid trapDestEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 19, 13, 1};
794
795 struct variable trapDestEntry_variables[] = {
796     { TRAPDESTCOMMUNITY, ASN_OCTET_STR, RWRITE, read_trapDestEntry_stub, 1, {2} },
797     { TRAPDESTPROTOCOL, ASN_INTEGER, RWRITE, read_trapDestEntry_stub, 1, {3} },
798     { TRAPDESTADDRESS, ASN_OCTET_STR, RWRITE, read_trapDestEntry_stub, 1, {4} },
799     { TRAPDESTOWNER, ASN_OCTET_STR, RWRITE, read_trapDestEntry_stub, 1, {5} },
800     { TRAPDESTSTATUS, ASN_INTEGER, RWRITE, read_trapDestEntry_stub, 1, {6} },
801 };
802
803 #define SERIALCONNECTDESTIPADDRESS       2
804 #define SERIALCONNECTTYPE                3
805 #define SERIALCONNECTDIALSTRING          4
806 #define SERIALCONNECTSWITCHCONNECTSEQ    5
807 #define SERIALCONNECTSWITCHDISCONNECTSEQ 6
808 #define SERIALCONNECTSWITCHRESETSEQ      7
809 #define SERIALCONNECTOWNER               8
810 #define SERIALCONNECTSTATUS              9
811
812 static oid serialConnectionEntry_base[] = {1, 3, 6, 1, 2, 1, 16, 19, 14, 1};
813
814 struct variable serialConnectionEntry_variables[] = {
815     { SERIALCONNECTDESTIPADDRESS, ASN_OCTET_STR, RWRITE, read_serialConnectionEntry_stub, 1, {2} },
816     { SERIALCONNECTTYPE, ASN_INTEGER, RWRITE, read_serialConnectionEntry_stub, 1, {3} },
817     { SERIALCONNECTDIALSTRING, ASN_OCTET_STR, RWRITE, read_serialConnectionEntry_stub, 1, {4} },
818     { SERIALCONNECTSWITCHCONNECTSEQ, ASN_OCTET_STR, RWRITE, read_serialConnectionEntry_stub, 1, {5} },
819     { SERIALCONNECTSWITCHDISCONNECTSEQ, ASN_OCTET_STR, RWRITE, read_serialConnectionEntry_stub, 1, {6} },
820     { SERIALCONNECTSWITCHRESETSEQ, ASN_OCTET_STR, RWRITE, read_serialConnectionEntry_stub, 1, {7} },
821     { SERIALCONNECTOWNER, ASN_OCTET_STR, RWRITE, read_serialConnectionEntry_stub, 1, {8} },
822     { SERIALCONNECTSTATUS, ASN_INTEGER, RWRITE, read_serialConnectionEntry_stub, 1, {9} },
823 };
824
825
826
827 /*
828  * Registration functions for the various MIB groups.
829  */
830
831 int register_etherStats2Entry()
832 {
833     return register_mib("etherStats2Entry",
834          etherStats2Entry_variables,
835          sizeof(struct variable),
836          sizeof(etherStats2Entry_variables)/sizeof(struct variable),
837          etherStats2Entry_base,
838          sizeof(etherStats2Entry_base)/sizeof(oid));
839 };
840
841
842 int register_tokenRingMLStats2Entry()
843 {
844     return register_mib("tokenRingMLStats2Entry",
845          tokenRingMLStats2Entry_variables,
846          sizeof(struct variable),
847          sizeof(tokenRingMLStats2Entry_variables)/sizeof(struct variable),
848          tokenRingMLStats2Entry_base,
849          sizeof(tokenRingMLStats2Entry_base)/sizeof(oid));
850 };
851
852
853 int register_tokenRingPStats2Entry()
854 {
855     return register_mib("tokenRingPStats2Entry",
856          tokenRingPStats2Entry_variables,
857          sizeof(struct variable),
858          sizeof(tokenRingPStats2Entry_variables)/sizeof(struct variable),
859          tokenRingPStats2Entry_base,
860          sizeof(tokenRingPStats2Entry_base)/sizeof(oid));
861 };
862
863
864 int register_historyControl2Entry()
865 {
866     return register_mib("historyControl2Entry",
867          historyControl2Entry_variables,
868          sizeof(struct variable),
869          sizeof(historyControl2Entry_variables)/sizeof(struct variable),
870          historyControl2Entry_base,
871          sizeof(historyControl2Entry_base)/sizeof(oid));
872 };
873
874
875 int register_hostControl2Entry()
876 {
877     return register_mib("hostControl2Entry",
878          hostControl2Entry_variables,
879          sizeof(struct variable),
880          sizeof(hostControl2Entry_variables)/sizeof(struct variable),
881          hostControl2Entry_base,
882          sizeof(hostControl2Entry_base)/sizeof(oid));
883 };
884
885
886 int register_matrixControl2Entry()
887 {
888     return register_mib("matrixControl2Entry",
889          matrixControl2Entry_variables,
890          sizeof(struct variable),
891          sizeof(matrixControl2Entry_variables)/sizeof(struct variable),
892          matrixControl2Entry_base,
893          sizeof(matrixControl2Entry_base)/sizeof(oid));
894 };
895
896
897 int register_channel2Entry()
898 {
899     return register_mib("channel2Entry",
900          channel2Entry_variables,
901          sizeof(struct variable),
902          sizeof(channel2Entry_variables)/sizeof(struct variable),
903          channel2Entry_base,
904          sizeof(channel2Entry_base)/sizeof(oid));
905 };
906
907
908 int register_filter2Entry()
909 {
910     return register_mib("filter2Entry",
911          filter2Entry_variables,
912          sizeof(struct variable),
913          sizeof(filter2Entry_variables)/sizeof(struct variable),
914          filter2Entry_base,
915          sizeof(filter2Entry_base)/sizeof(oid));
916 };
917
918
919 int register_ringStationControl2Entry()
920 {
921     return register_mib("ringStationControl2Entry",
922          ringStationControl2Entry_variables,
923          sizeof(struct variable),
924          sizeof(ringStationControl2Entry_variables)/sizeof(struct variable),
925          ringStationControl2Entry_base,
926          sizeof(ringStationControl2Entry_base)/sizeof(oid));
927 };
928
929
930 int register_sourceRoutingStats2Entry()
931 {
932     return register_mib("sourceRoutingStats2Entry",
933          sourceRoutingStats2Entry_variables,
934          sizeof(struct variable),
935          sizeof(sourceRoutingStats2Entry_variables)/sizeof(struct variable),
936          sourceRoutingStats2Entry_base,
937          sizeof(sourceRoutingStats2Entry_base)/sizeof(oid));
938 };
939
940
941 int register_protocolDir()
942 {
943     return register_mib("protocolDir",
944          protocolDir_variables,
945          sizeof(struct variable),
946          sizeof(protocolDir_variables)/sizeof(struct variable),
947          protocolDir_base,
948          sizeof(protocolDir_base)/sizeof(oid));
949 };
950
951
952 int register_protocolDirEntry()
953 {
954     return register_mib("protocolDirEntry",
955          protocolDirEntry_variables,
956          sizeof(struct variable),
957          sizeof(protocolDirEntry_variables)/sizeof(struct variable),
958          protocolDirEntry_base,
959          sizeof(protocolDirEntry_base)/sizeof(oid));
960 };
961
962
963 int register_protocolDistControlEntry()
964 {
965     return register_mib("protocolDistControlEntry",
966          protocolDistControlEntry_variables,
967          sizeof(struct variable),
968          sizeof(protocolDistControlEntry_variables)/sizeof(struct variable),
969          protocolDistControlEntry_base,
970          sizeof(protocolDistControlEntry_base)/sizeof(oid));
971 };
972
973
974 int register_protocolDistStatsEntry()
975 {
976     return register_mib("protocolDistStatsEntry",
977          protocolDistStatsEntry_variables,
978          sizeof(struct variable),
979          sizeof(protocolDistStatsEntry_variables)/sizeof(struct variable),
980          protocolDistStatsEntry_base,
981          sizeof(protocolDistStatsEntry_base)/sizeof(oid));
982 };
983
984
985 int register_addressMap()
986 {
987     return register_mib("addressMap",
988          addressMap_variables,
989          sizeof(struct variable),
990          sizeof(addressMap_variables)/sizeof(struct variable),
991          addressMap_base,
992          sizeof(addressMap_base)/sizeof(oid));
993 };
994
995
996 int register_addressMapControlEntry()
997 {
998     return register_mib("addressMapControlEntry",
999          addressMapControlEntry_variables,
1000          sizeof(struct variable),
1001          sizeof(addressMapControlEntry_variables)/sizeof(struct variable),
1002          addressMapControlEntry_base,
1003          sizeof(addressMapControlEntry_base)/sizeof(oid));
1004 };
1005
1006
1007 int register_addressMapEntry()
1008 {
1009     return register_mib("addressMapEntry",
1010          addressMapEntry_variables,
1011          sizeof(struct variable),
1012          sizeof(addressMapEntry_variables)/sizeof(struct variable),
1013          addressMapEntry_base,
1014          sizeof(addressMapEntry_base)/sizeof(oid));
1015 };
1016
1017
1018 int register_hlHostControlEntry()
1019 {
1020     return register_mib("hlHostControlEntry",
1021          hlHostControlEntry_variables,
1022          sizeof(struct variable),
1023          sizeof(hlHostControlEntry_variables)/sizeof(struct variable),
1024          hlHostControlEntry_base,
1025          sizeof(hlHostControlEntry_base)/sizeof(oid));
1026 };
1027
1028
1029 int register_nlHostEntry()
1030 {
1031     return register_mib("nlHostEntry",
1032          nlHostEntry_variables,
1033          sizeof(struct variable),
1034          sizeof(nlHostEntry_variables)/sizeof(struct variable),
1035          nlHostEntry_base,
1036          sizeof(nlHostEntry_base)/sizeof(oid));
1037 };
1038
1039
1040 int register_hlMatrixControlEntry()
1041 {
1042     return register_mib("hlMatrixControlEntry",
1043          hlMatrixControlEntry_variables,
1044          sizeof(struct variable),
1045          sizeof(hlMatrixControlEntry_variables)/sizeof(struct variable),
1046          hlMatrixControlEntry_base,
1047          sizeof(hlMatrixControlEntry_base)/sizeof(oid));
1048 };
1049
1050
1051 int register_nlMatrixSDEntry()
1052 {
1053     return register_mib("nlMatrixSDEntry",
1054          nlMatrixSDEntry_variables,
1055          sizeof(struct variable),
1056          sizeof(nlMatrixSDEntry_variables)/sizeof(struct variable),
1057          nlMatrixSDEntry_base,
1058          sizeof(nlMatrixSDEntry_base)/sizeof(oid));
1059 };
1060
1061
1062 int register_nlMatrixDSEntry()
1063 {
1064     return register_mib("nlMatrixDSEntry",
1065          nlMatrixDSEntry_variables,
1066          sizeof(struct variable),
1067          sizeof(nlMatrixDSEntry_variables)/sizeof(struct variable),
1068          nlMatrixDSEntry_base,
1069          sizeof(nlMatrixDSEntry_base)/sizeof(oid));
1070 };
1071
1072
1073 int register_nlMatrixTopNControlEntry()
1074 {
1075     return register_mib("nlMatrixTopNControlEntry",
1076          nlMatrixTopNControlEntry_variables,
1077          sizeof(struct variable),
1078          sizeof(nlMatrixTopNControlEntry_variables)/sizeof(struct variable),
1079          nlMatrixTopNControlEntry_base,
1080          sizeof(nlMatrixTopNControlEntry_base)/sizeof(oid));
1081 };
1082
1083
1084 int register_nlMatrixTopNEntry()
1085 {
1086     return register_mib("nlMatrixTopNEntry",
1087          nlMatrixTopNEntry_variables,
1088          sizeof(struct variable),
1089          sizeof(nlMatrixTopNEntry_variables)/sizeof(struct variable),
1090          nlMatrixTopNEntry_base,
1091          sizeof(nlMatrixTopNEntry_base)/sizeof(oid));
1092 };
1093
1094
1095 int register_alHostEntry()
1096 {
1097     return register_mib("alHostEntry",
1098          alHostEntry_variables,
1099          sizeof(struct variable),
1100          sizeof(alHostEntry_variables)/sizeof(struct variable),
1101          alHostEntry_base,
1102          sizeof(alHostEntry_base)/sizeof(oid));
1103 };
1104
1105
1106 int register_alMatrixSDEntry()
1107 {
1108     return register_mib("alMatrixSDEntry",
1109          alMatrixSDEntry_variables,
1110          sizeof(struct variable),
1111          sizeof(alMatrixSDEntry_variables)/sizeof(struct variable),
1112          alMatrixSDEntry_base,
1113          sizeof(alMatrixSDEntry_base)/sizeof(oid));
1114 };
1115
1116
1117 int register_alMatrixDSEntry()
1118 {
1119     return register_mib("alMatrixDSEntry",
1120          alMatrixDSEntry_variables,
1121          sizeof(struct variable),
1122          sizeof(alMatrixDSEntry_variables)/sizeof(struct variable),
1123          alMatrixDSEntry_base,
1124          sizeof(alMatrixDSEntry_base)/sizeof(oid));
1125 };
1126
1127
1128 int register_alMatrixTopNControlEntry()
1129 {
1130     return register_mib("alMatrixTopNControlEntry",
1131          alMatrixTopNControlEntry_variables,
1132          sizeof(struct variable),
1133          sizeof(alMatrixTopNControlEntry_variables)/sizeof(struct variable),
1134          alMatrixTopNControlEntry_base,
1135          sizeof(alMatrixTopNControlEntry_base)/sizeof(oid));
1136 };
1137
1138
1139 int register_alMatrixTopNEntry()
1140 {
1141     return register_mib("alMatrixTopNEntry",
1142          alMatrixTopNEntry_variables,
1143          sizeof(struct variable),
1144          sizeof(alMatrixTopNEntry_variables)/sizeof(struct variable),
1145          alMatrixTopNEntry_base,
1146          sizeof(alMatrixTopNEntry_base)/sizeof(oid));
1147 };
1148
1149
1150 int register_usrHistoryControlEntry()
1151 {
1152     return register_mib("usrHistoryControlEntry",
1153          usrHistoryControlEntry_variables,
1154          sizeof(struct variable),
1155          sizeof(usrHistoryControlEntry_variables)/sizeof(struct variable),
1156          usrHistoryControlEntry_base,
1157          sizeof(usrHistoryControlEntry_base)/sizeof(oid));
1158 };
1159
1160
1161 int register_usrHistoryObjectEntry()
1162 {
1163     return register_mib("usrHistoryObjectEntry",
1164          usrHistoryObjectEntry_variables,
1165          sizeof(struct variable),
1166          sizeof(usrHistoryObjectEntry_variables)/sizeof(struct variable),
1167          usrHistoryObjectEntry_base,
1168          sizeof(usrHistoryObjectEntry_base)/sizeof(oid));
1169 };
1170
1171
1172 int register_usrHistoryEntry()
1173 {
1174     return register_mib("usrHistoryEntry",
1175          usrHistoryEntry_variables,
1176          sizeof(struct variable),
1177          sizeof(usrHistoryEntry_variables)/sizeof(struct variable),
1178          usrHistoryEntry_base,
1179          sizeof(usrHistoryEntry_base)/sizeof(oid));
1180 };
1181
1182
1183 int register_probeConfig()
1184 {
1185     return register_mib("probeConfig",
1186          probeConfig_variables,
1187          sizeof(struct variable),
1188          sizeof(probeConfig_variables)/sizeof(struct variable),
1189          probeConfig_base,
1190          sizeof(probeConfig_base)/sizeof(oid));
1191 };
1192
1193
1194 int register_serialConfigEntry()
1195 {
1196     return register_mib("serialConfigEntry",
1197          serialConfigEntry_variables,
1198          sizeof(struct variable),
1199          sizeof(serialConfigEntry_variables)/sizeof(struct variable),
1200          serialConfigEntry_base,
1201          sizeof(serialConfigEntry_base)/sizeof(oid));
1202 };
1203
1204
1205 int register_netConfigEntry()
1206 {
1207     return register_mib("netConfigEntry",
1208          netConfigEntry_variables,
1209          sizeof(struct variable),
1210          sizeof(netConfigEntry_variables)/sizeof(struct variable),
1211          netConfigEntry_base,
1212          sizeof(netConfigEntry_base)/sizeof(oid));
1213 };
1214
1215
1216 int register_trapDestEntry()
1217 {
1218     return register_mib("trapDestEntry",
1219          trapDestEntry_variables,
1220          sizeof(struct variable),
1221          sizeof(trapDestEntry_variables)/sizeof(struct variable),
1222          trapDestEntry_base,
1223          sizeof(trapDestEntry_base)/sizeof(oid));
1224 };
1225
1226
1227 int register_serialConnectionEntry()
1228 {
1229     return register_mib("serialConnectionEntry",
1230          serialConnectionEntry_variables,
1231          sizeof(struct variable),
1232          sizeof(serialConnectionEntry_variables)/sizeof(struct variable),
1233          serialConnectionEntry_base,
1234          sizeof(serialConnectionEntry_base)/sizeof(oid));
1235 };
1236
1237
1238 /*
1239  * Read methods for groups of scalars and tables:
1240  */
1241
1242 static unsigned char *
1243 read_etherStats2Entry_stub(struct variable *vp,
1244     oid     *name,
1245     size_t  *length,
1246     int     exact,
1247     size_t  *var_len,
1248     WriteMethod **write_method)
1249 {
1250     static etherStats2Entry_t etherStats2Entry;
1251
1252     /* call the user supplied function to retrieve values */
1253
1254     read_etherStats2Entry(&etherStats2Entry);
1255
1256     /* return the current value of the variable */
1257
1258     switch (vp->magic) {
1259
1260     case ETHERSTATSDROPPEDFRAMES:
1261         return (unsigned char *) &etherStats2Entry.etherStatsDroppedFrames;
1262
1263     case ETHERSTATSCREATETIME:
1264         return (unsigned char *) &etherStats2Entry.etherStatsCreateTime;
1265
1266     default:
1267          ERROR_MSG("");
1268     }
1269
1270     return NULL;
1271 }
1272
1273 static unsigned char *
1274 read_tokenRingMLStats2Entry_stub(struct variable *vp,
1275     oid     *name,
1276     size_t  *length,
1277     int     exact,
1278     size_t  *var_len,
1279     WriteMethod **write_method)
1280 {
1281     static tokenRingMLStats2Entry_t tokenRingMLStats2Entry;
1282
1283     /* call the user supplied function to retrieve values */
1284
1285     read_tokenRingMLStats2Entry(&tokenRingMLStats2Entry);
1286
1287     /* return the current value of the variable */
1288
1289     switch (vp->magic) {
1290
1291     case TOKENRINGMLSTATSDROPPEDFRAMES:
1292         return (unsigned char *) &tokenRingMLStats2Entry.tokenRingMLStatsDroppedFrames;
1293
1294     case TOKENRINGMLSTATSCREATETIME:
1295         return (unsigned char *) &tokenRingMLStats2Entry.tokenRingMLStatsCreateTime;
1296
1297     default:
1298          ERROR_MSG("");
1299     }
1300
1301     return NULL;
1302 }
1303
1304 static unsigned char *
1305 read_tokenRingPStats2Entry_stub(struct variable *vp,
1306     oid     *name,
1307     size_t  *length,
1308     int     exact,
1309     size_t  *var_len,
1310     WriteMethod **write_method)
1311 {
1312     static tokenRingPStats2Entry_t tokenRingPStats2Entry;
1313
1314     /* call the user supplied function to retrieve values */
1315
1316     read_tokenRingPStats2Entry(&tokenRingPStats2Entry);
1317
1318     /* return the current value of the variable */
1319
1320     switch (vp->magic) {
1321
1322     case TOKENRINGPSTATSDROPPEDFRAMES:
1323         return (unsigned char *) &tokenRingPStats2Entry.tokenRingPStatsDroppedFrames;
1324
1325     case TOKENRINGPSTATSCREATETIME:
1326         return (unsigned char *) &tokenRingPStats2Entry.tokenRingPStatsCreateTime;
1327
1328     default:
1329          ERROR_MSG("");
1330     }
1331
1332     return NULL;
1333 }
1334
1335 static unsigned char *
1336 read_historyControl2Entry_stub(struct variable *vp,
1337     oid     *name,
1338     size_t  *length,
1339     int     exact,
1340     size_t  *var_len,
1341     WriteMethod **write_method)
1342 {
1343     static historyControl2Entry_t historyControl2Entry;
1344
1345     /* call the user supplied function to retrieve values */
1346
1347     read_historyControl2Entry(&historyControl2Entry);
1348
1349     /* return the current value of the variable */
1350
1351     switch (vp->magic) {
1352
1353     case HISTORYCONTROLDROPPEDFRAMES:
1354         return (unsigned char *) &historyControl2Entry.historyControlDroppedFrames;
1355
1356     default:
1357          ERROR_MSG("");
1358     }
1359
1360     return NULL;
1361 }
1362
1363 static unsigned char *
1364 read_hostControl2Entry_stub(struct variable *vp,
1365     oid     *name,
1366     size_t  *length,
1367     int     exact,
1368     size_t  *var_len,
1369     WriteMethod **write_method)
1370 {
1371     static hostControl2Entry_t hostControl2Entry;
1372
1373     /* call the user supplied function to retrieve values */
1374
1375     read_hostControl2Entry(&hostControl2Entry);
1376
1377     /* return the current value of the variable */
1378
1379     switch (vp->magic) {
1380
1381     case HOSTCONTROLDROPPEDFRAMES:
1382         return (unsigned char *) &hostControl2Entry.hostControlDroppedFrames;
1383
1384     case HOSTCONTROLCREATETIME:
1385         return (unsigned char *) &hostControl2Entry.hostControlCreateTime;
1386
1387     default:
1388          ERROR_MSG("");
1389     }
1390
1391     return NULL;
1392 }
1393
1394 static unsigned char *
1395 read_matrixControl2Entry_stub(struct variable *vp,
1396     oid     *name,
1397     size_t  *length,
1398     int     exact,
1399     size_t  *var_len,
1400     WriteMethod **write_method)
1401 {
1402     static matrixControl2Entry_t matrixControl2Entry;
1403
1404     /* call the user supplied function to retrieve values */
1405
1406     read_matrixControl2Entry(&matrixControl2Entry);
1407
1408     /* return the current value of the variable */
1409
1410     switch (vp->magic) {
1411
1412     case MATRIXCONTROLDROPPEDFRAMES:
1413         return (unsigned char *) &matrixControl2Entry.matrixControlDroppedFrames;
1414
1415     case MATRIXCONTROLCREATETIME:
1416         return (unsigned char *) &matrixControl2Entry.matrixControlCreateTime;
1417
1418     default:
1419          ERROR_MSG("");
1420     }
1421
1422     return NULL;
1423 }
1424
1425 static unsigned char *
1426 read_channel2Entry_stub(struct variable *vp,
1427     oid     *name,
1428     size_t  *length,
1429     int     exact,
1430     size_t  *var_len,
1431     WriteMethod **write_method)
1432 {
1433     static channel2Entry_t channel2Entry;
1434
1435     /* call the user supplied function to retrieve values */
1436
1437     read_channel2Entry(&channel2Entry);
1438
1439     /* return the current value of the variable */
1440
1441     switch (vp->magic) {
1442
1443     case CHANNELDROPPEDFRAMES:
1444         return (unsigned char *) &channel2Entry.channelDroppedFrames;
1445
1446     case CHANNELCREATETIME:
1447         return (unsigned char *) &channel2Entry.channelCreateTime;
1448
1449     default:
1450          ERROR_MSG("");
1451     }
1452
1453     return NULL;
1454 }
1455
1456 static unsigned char *
1457 read_filter2Entry_stub(struct variable *vp,
1458     oid     *name,
1459     size_t  *length,
1460     int     exact,
1461     size_t  *var_len,
1462     WriteMethod **write_method)
1463 {
1464     static filter2Entry_t filter2Entry;
1465
1466     /* call the user supplied function to retrieve values */
1467
1468     read_filter2Entry(&filter2Entry);
1469
1470     /* return the current value of the variable */
1471
1472     switch (vp->magic) {
1473
1474     case FILTERPROTOCOLDIRDATALOCALINDEX:
1475         return (unsigned char *) &filter2Entry.filterProtocolDirDataLocalIndex;
1476
1477     case FILTERPROTOCOLDIRLOCALINDEX:
1478         return (unsigned char *) &filter2Entry.filterProtocolDirLocalIndex;
1479
1480     default:
1481          ERROR_MSG("");
1482     }
1483
1484     return NULL;
1485 }
1486
1487 static unsigned char *
1488 read_ringStationControl2Entry_stub(struct variable *vp,
1489     oid     *name,
1490     size_t  *length,
1491     int     exact,
1492     size_t  *var_len,
1493     WriteMethod **write_method)
1494 {
1495     static ringStationControl2Entry_t ringStationControl2Entry;
1496
1497     /* call the user supplied function to retrieve values */
1498
1499     read_ringStationControl2Entry(&ringStationControl2Entry);
1500
1501     /* return the current value of the variable */
1502
1503     switch (vp->magic) {
1504
1505     case RINGSTATIONCONTROLDROPPEDFRAMES:
1506         return (unsigned char *) &ringStationControl2Entry.ringStationControlDroppedFrames;
1507
1508     case RINGSTATIONCONTROLCREATETIME:
1509         return (unsigned char *) &ringStationControl2Entry.ringStationControlCreateTime;
1510
1511     default:
1512          ERROR_MSG("");
1513     }
1514
1515     return NULL;
1516 }
1517
1518 static unsigned char *
1519 read_sourceRoutingStats2Entry_stub(struct variable *vp,
1520     oid     *name,
1521     size_t  *length,
1522     int     exact,
1523     size_t  *var_len,
1524     WriteMethod **write_method)
1525 {
1526     static sourceRoutingStats2Entry_t sourceRoutingStats2Entry;
1527
1528     /* call the user supplied function to retrieve values */
1529
1530     read_sourceRoutingStats2Entry(&sourceRoutingStats2Entry);
1531
1532     /* return the current value of the variable */
1533
1534     switch (vp->magic) {
1535
1536     case SOURCEROUTINGSTATSDROPPEDFRAMES:
1537         return (unsigned char *) &sourceRoutingStats2Entry.sourceRoutingStatsDroppedFrames;
1538
1539     case SOURCEROUTINGSTATSCREATETIME:
1540         return (unsigned char *) &sourceRoutingStats2Entry.sourceRoutingStatsCreateTime;
1541
1542     default:
1543          ERROR_MSG("");
1544     }
1545
1546     return NULL;
1547 }
1548
1549 static unsigned char *
1550 read_protocolDir_stub(struct variable *vp,
1551     oid     *name,
1552     size_t  *length,
1553     int     exact,
1554     size_t  *var_len,
1555     WriteMethod **write_method)
1556 {
1557     static protocolDir_t protocolDir;
1558
1559     /* check whether the instance identifier is valid */
1560
1561     if (header_generic(vp, name, length, exact, var_len,
1562                        write_method) == MATCH_FAILED) {
1563         return NULL;
1564     }
1565
1566     /* call the user supplied function to retrieve values */
1567
1568     read_protocolDir(&protocolDir);
1569
1570     /* return the current value of the variable */
1571
1572     switch (vp->magic) {
1573
1574     case PROTOCOLDIRLASTCHANGE:
1575         return (unsigned char *) &protocolDir.protocolDirLastChange;
1576
1577     default:
1578          ERROR_MSG("");
1579     }
1580
1581     return NULL;
1582 }
1583
1584 static unsigned char *
1585 read_protocolDirEntry_stub(struct variable *vp,
1586     oid     *name,
1587     size_t  *length,
1588     int     exact,
1589     size_t  *var_len,
1590     WriteMethod **write_method)
1591 {
1592     static protocolDirEntry_t protocolDirEntry;
1593
1594     /* call the user supplied function to retrieve values */
1595
1596     read_protocolDirEntry(&protocolDirEntry);
1597
1598     /* return the current value of the variable */
1599
1600     switch (vp->magic) {
1601
1602     case PROTOCOLDIRLOCALINDEX:
1603         return (unsigned char *) &protocolDirEntry.protocolDirLocalIndex;
1604
1605     case PROTOCOLDIRDESCR:
1606         *var_len = protocolDirEntry._protocolDirDescrLength;
1607         return (unsigned char *) protocolDirEntry.protocolDirDescr;
1608
1609     case PROTOCOLDIRTYPE:
1610         *var_len = protocolDirEntry._protocolDirTypeLength;
1611         return (unsigned char *) protocolDirEntry.protocolDirType;
1612
1613     case PROTOCOLDIRADDRESSMAPCONFIG:
1614         return (unsigned char *) &protocolDirEntry.protocolDirAddressMapConfig;
1615
1616     case PROTOCOLDIRHOSTCONFIG:
1617         return (unsigned char *) &protocolDirEntry.protocolDirHostConfig;
1618
1619     case PROTOCOLDIRMATRIXCONFIG:
1620         return (unsigned char *) &protocolDirEntry.protocolDirMatrixConfig;
1621
1622     case PROTOCOLDIROWNER:
1623         *var_len = protocolDirEntry._protocolDirOwnerLength;
1624         return (unsigned char *) protocolDirEntry.protocolDirOwner;
1625
1626     case PROTOCOLDIRSTATUS:
1627         return (unsigned char *) &protocolDirEntry.protocolDirStatus;
1628
1629     default:
1630          ERROR_MSG("");
1631     }
1632
1633     return NULL;
1634 }
1635
1636 static unsigned char *
1637 read_protocolDistControlEntry_stub(struct variable *vp,
1638     oid     *name,
1639     size_t  *length,
1640     int     exact,
1641     size_t  *var_len,
1642     WriteMethod **write_method)
1643 {
1644     static protocolDistControlEntry_t protocolDistControlEntry;
1645
1646     /* call the user supplied function to retrieve values */
1647
1648     read_protocolDistControlEntry(&protocolDistControlEntry);
1649
1650     /* return the current value of the variable */
1651
1652     switch (vp->magic) {
1653
1654     case PROTOCOLDISTCONTROLDATASOURCE:
1655         *var_len = protocolDistControlEntry._protocolDistControlDataSourceLength;
1656         return (unsigned char *) protocolDistControlEntry.protocolDistControlDataSource;
1657
1658     case PROTOCOLDISTCONTROLDROPPEDFRAMES:
1659         return (unsigned char *) &protocolDistControlEntry.protocolDistControlDroppedFrames;
1660
1661     case PROTOCOLDISTCONTROLCREATETIME:
1662         return (unsigned char *) &protocolDistControlEntry.protocolDistControlCreateTime;
1663
1664     case PROTOCOLDISTCONTROLOWNER:
1665         *var_len = protocolDistControlEntry._protocolDistControlOwnerLength;
1666         return (unsigned char *) protocolDistControlEntry.protocolDistControlOwner;
1667
1668     case PROTOCOLDISTCONTROLSTATUS:
1669         return (unsigned char *) &protocolDistControlEntry.protocolDistControlStatus;
1670
1671     default:
1672          ERROR_MSG("");
1673     }
1674
1675     return NULL;
1676 }
1677
1678 static unsigned char *
1679 read_protocolDistStatsEntry_stub(struct variable *vp,
1680     oid     *name,
1681     size_t  *length,
1682     int     exact,
1683     size_t  *var_len,
1684     WriteMethod **write_method)
1685 {
1686     static protocolDistStatsEntry_t protocolDistStatsEntry;
1687
1688     /* call the user supplied function to retrieve values */
1689
1690     read_protocolDistStatsEntry(&protocolDistStatsEntry);
1691
1692     /* return the current value of the variable */
1693
1694     switch (vp->magic) {
1695
1696     case PROTOCOLDISTSTATSPKTS:
1697         return (unsigned char *) &protocolDistStatsEntry.protocolDistStatsPkts;
1698
1699     case PROTOCOLDISTSTATSOCTETS:
1700         return (unsigned char *) &protocolDistStatsEntry.protocolDistStatsOctets;
1701
1702     default:
1703          ERROR_MSG("");
1704     }
1705
1706     return NULL;
1707 }
1708
1709 static unsigned char *
1710 read_addressMap_stub(struct variable *vp,
1711     oid     *name,
1712     size_t  *length,
1713     int     exact,
1714     size_t  *var_len,
1715     WriteMethod **write_method)
1716 {
1717     static addressMap_t addressMap;
1718
1719     /* check whether the instance identifier is valid */
1720
1721     if (header_generic(vp, name, length, exact, var_len,
1722                        write_method) == MATCH_FAILED) {
1723         return NULL;
1724     }
1725
1726     /* call the user supplied function to retrieve values */
1727
1728     read_addressMap(&addressMap);
1729
1730     /* return the current value of the variable */
1731
1732     switch (vp->magic) {
1733
1734     case ADDRESSMAPINSERTS:
1735         return (unsigned char *) &addressMap.addressMapInserts;
1736
1737     case ADDRESSMAPDELETES:
1738         return (unsigned char *) &addressMap.addressMapDeletes;
1739
1740     case ADDRESSMAPMAXDESIREDENTRIES:
1741         return (unsigned char *) &addressMap.addressMapMaxDesiredEntries;
1742
1743     default:
1744          ERROR_MSG("");
1745     }
1746
1747     return NULL;
1748 }
1749
1750 static unsigned char *
1751 read_addressMapControlEntry_stub(struct variable *vp,
1752     oid     *name,
1753     size_t  *length,
1754     int     exact,
1755     size_t  *var_len,
1756     WriteMethod **write_method)
1757 {
1758     static addressMapControlEntry_t addressMapControlEntry;
1759
1760     /* call the user supplied function to retrieve values */
1761
1762     read_addressMapControlEntry(&addressMapControlEntry);
1763
1764     /* return the current value of the variable */
1765
1766     switch (vp->magic) {
1767
1768     case ADDRESSMAPCONTROLDATASOURCE:
1769         *var_len = addressMapControlEntry._addressMapControlDataSourceLength;
1770         return (unsigned char *) addressMapControlEntry.addressMapControlDataSource;
1771
1772     case ADDRESSMAPCONTROLDROPPEDFRAMES:
1773         return (unsigned char *) &addressMapControlEntry.addressMapControlDroppedFrames;
1774
1775     case ADDRESSMAPCONTROLOWNER:
1776         *var_len = addressMapControlEntry._addressMapControlOwnerLength;
1777         return (unsigned char *) addressMapControlEntry.addressMapControlOwner;
1778
1779     case ADDRESSMAPCONTROLSTATUS:
1780         return (unsigned char *) &addressMapControlEntry.addressMapControlStatus;
1781
1782     default:
1783          ERROR_MSG("");
1784     }
1785
1786     return NULL;
1787 }
1788
1789 static unsigned char *
1790 read_addressMapEntry_stub(struct variable *vp,
1791     oid     *name,
1792     size_t  *length,
1793     int     exact,
1794     size_t  *var_len,
1795     WriteMethod **write_method)
1796 {
1797     static addressMapEntry_t addressMapEntry;
1798
1799     /* call the user supplied function to retrieve values */
1800
1801     read_addressMapEntry(&addressMapEntry);
1802
1803     /* return the current value of the variable */
1804
1805     switch (vp->magic) {
1806
1807     case ADDRESSMAPPHYSICALADDRESS:
1808         *var_len = addressMapEntry._addressMapPhysicalAddressLength;
1809         return (unsigned char *) addressMapEntry.addressMapPhysicalAddress;
1810
1811     case ADDRESSMAPLASTCHANGE:
1812         return (unsigned char *) &addressMapEntry.addressMapLastChange;
1813
1814     default:
1815          ERROR_MSG("");
1816     }
1817
1818     return NULL;
1819 }
1820
1821 static unsigned char *
1822 read_hlHostControlEntry_stub(struct variable *vp,
1823     oid     *name,
1824     size_t  *length,
1825     int     exact,
1826     size_t  *var_len,
1827     WriteMethod **write_method)
1828 {
1829     static hlHostControlEntry_t hlHostControlEntry;
1830
1831     /* call the user supplied function to retrieve values */
1832
1833     read_hlHostControlEntry(&hlHostControlEntry);
1834
1835     /* return the current value of the variable */
1836
1837     switch (vp->magic) {
1838
1839     case HLHOSTCONTROLDATASOURCE:
1840         *var_len = hlHostControlEntry._hlHostControlDataSourceLength;
1841         return (unsigned char *) hlHostControlEntry.hlHostControlDataSource;
1842
1843     case HLHOSTCONTROLNLDROPPEDFRAMES:
1844         return (unsigned char *) &hlHostControlEntry.hlHostControlNlDroppedFrames;
1845
1846     case HLHOSTCONTROLNLINSERTS:
1847         return (unsigned char *) &hlHostControlEntry.hlHostControlNlInserts;
1848
1849     case HLHOSTCONTROLNLDELETES:
1850         return (unsigned char *) &hlHostControlEntry.hlHostControlNlDeletes;
1851
1852     case HLHOSTCONTROLNLMAXDESIREDENTRIES:
1853         return (unsigned char *) &hlHostControlEntry.hlHostControlNlMaxDesiredEntries;
1854
1855     case HLHOSTCONTROLALDROPPEDFRAMES:
1856         return (unsigned char *) &hlHostControlEntry.hlHostControlAlDroppedFrames;
1857
1858     case HLHOSTCONTROLALINSERTS:
1859         return (unsigned char *) &hlHostControlEntry.hlHostControlAlInserts;
1860
1861     case HLHOSTCONTROLALDELETES:
1862         return (unsigned char *) &hlHostControlEntry.hlHostControlAlDeletes;
1863
1864     case HLHOSTCONTROLALMAXDESIREDENTRIES:
1865         return (unsigned char *) &hlHostControlEntry.hlHostControlAlMaxDesiredEntries;
1866
1867     case HLHOSTCONTROLOWNER:
1868         *var_len = hlHostControlEntry._hlHostControlOwnerLength;
1869         return (unsigned char *) hlHostControlEntry.hlHostControlOwner;
1870
1871     case HLHOSTCONTROLSTATUS:
1872         return (unsigned char *) &hlHostControlEntry.hlHostControlStatus;
1873
1874     default:
1875          ERROR_MSG("");
1876     }
1877
1878     return NULL;
1879 }
1880
1881 static unsigned char *
1882 read_nlHostEntry_stub(struct variable *vp,
1883     oid     *name,
1884     size_t  *length,
1885     int     exact,
1886     size_t  *var_len,
1887     WriteMethod **write_method)
1888 {
1889     static nlHostEntry_t nlHostEntry;
1890
1891     /* call the user supplied function to retrieve values */
1892
1893     read_nlHostEntry(&nlHostEntry);
1894
1895     /* return the current value of the variable */
1896
1897     switch (vp->magic) {
1898
1899     case NLHOSTINPKTS:
1900         return (unsigned char *) &nlHostEntry.nlHostInPkts;
1901
1902     case NLHOSTOUTPKTS:
1903         return (unsigned char *) &nlHostEntry.nlHostOutPkts;
1904
1905     case NLHOSTINOCTETS:
1906         return (unsigned char *) &nlHostEntry.nlHostInOctets;
1907
1908     case NLHOSTOUTOCTETS:
1909         return (unsigned char *) &nlHostEntry.nlHostOutOctets;
1910
1911     case NLHOSTOUTMACNONUNICASTPKTS:
1912         return (unsigned char *) &nlHostEntry.nlHostOutMacNonUnicastPkts;
1913
1914     case NLHOSTCREATETIME:
1915         return (unsigned char *) &nlHostEntry.nlHostCreateTime;
1916
1917     default:
1918          ERROR_MSG("");
1919     }
1920
1921     return NULL;
1922 }
1923
1924 static unsigned char *
1925 read_hlMatrixControlEntry_stub(struct variable *vp,
1926     oid     *name,
1927     size_t  *length,
1928     int     exact,
1929     size_t  *var_len,
1930     WriteMethod **write_method)
1931 {
1932     static hlMatrixControlEntry_t hlMatrixControlEntry;
1933
1934     /* call the user supplied function to retrieve values */
1935
1936     read_hlMatrixControlEntry(&hlMatrixControlEntry);
1937
1938     /* return the current value of the variable */
1939
1940     switch (vp->magic) {
1941
1942     case HLMATRIXCONTROLDATASOURCE:
1943         *var_len = hlMatrixControlEntry._hlMatrixControlDataSourceLength;
1944         return (unsigned char *) hlMatrixControlEntry.hlMatrixControlDataSource;
1945
1946     case HLMATRIXCONTROLNLDROPPEDFRAMES:
1947         return (unsigned char *) &hlMatrixControlEntry.hlMatrixControlNlDroppedFrames;
1948
1949     case HLMATRIXCONTROLNLINSERTS:
1950         return (unsigned char *) &hlMatrixControlEntry.hlMatrixControlNlInserts;
1951
1952     case HLMATRIXCONTROLNLDELETES:
1953         return (unsigned char *) &hlMatrixControlEntry.hlMatrixControlNlDeletes;
1954
1955     case HLMATRIXCONTROLNLMAXDESIREDENTRIES:
1956         return (unsigned char *) &hlMatrixControlEntry.hlMatrixControlNlMaxDesiredEntries;
1957
1958     case HLMATRIXCONTROLALDROPPEDFRAMES:
1959         return (unsigned char *) &hlMatrixControlEntry.hlMatrixControlAlDroppedFrames;
1960
1961     case HLMATRIXCONTROLALINSERTS:
1962         return (unsigned char *) &hlMatrixControlEntry.hlMatrixControlAlInserts;
1963
1964     case HLMATRIXCONTROLALDELETES:
1965         return (unsigned char *) &hlMatrixControlEntry.hlMatrixControlAlDeletes;
1966
1967     case HLMATRIXCONTROLALMAXDESIREDENTRIES:
1968         return (unsigned char *) &hlMatrixControlEntry.hlMatrixControlAlMaxDesiredEntries;
1969
1970     case HLMATRIXCONTROLOWNER:
1971         *var_len = hlMatrixControlEntry._hlMatrixControlOwnerLength;
1972         return (unsigned char *) hlMatrixControlEntry.hlMatrixControlOwner;
1973
1974     case HLMATRIXCONTROLSTATUS:
1975         return (unsigned char *) &hlMatrixControlEntry.hlMatrixControlStatus;
1976
1977     default:
1978          ERROR_MSG("");
1979     }
1980
1981     return NULL;
1982 }
1983
1984 static unsigned char *
1985 read_nlMatrixSDEntry_stub(struct variable *vp,
1986     oid     *name,
1987     size_t  *length,
1988     int     exact,
1989     size_t  *var_len,
1990     WriteMethod **write_method)
1991 {
1992     static nlMatrixSDEntry_t nlMatrixSDEntry;
1993
1994     /* call the user supplied function to retrieve values */
1995
1996     read_nlMatrixSDEntry(&nlMatrixSDEntry);
1997
1998     /* return the current value of the variable */
1999
2000     switch (vp->magic) {
2001
2002     case NLMATRIXSDPKTS:
2003         return (unsigned char *) &nlMatrixSDEntry.nlMatrixSDPkts;
2004
2005     case NLMATRIXSDOCTETS:
2006         return (unsigned char *) &nlMatrixSDEntry.nlMatrixSDOctets;
2007
2008     case NLMATRIXSDCREATETIME:
2009         return (unsigned char *) &nlMatrixSDEntry.nlMatrixSDCreateTime;
2010
2011     default:
2012          ERROR_MSG("");
2013     }
2014
2015     return NULL;
2016 }
2017
2018 static unsigned char *
2019 read_nlMatrixDSEntry_stub(struct variable *vp,
2020     oid     *name,
2021     size_t  *length,
2022     int     exact,
2023     size_t  *var_len,
2024     WriteMethod **write_method)
2025 {
2026     static nlMatrixDSEntry_t nlMatrixDSEntry;
2027
2028     /* call the user supplied function to retrieve values */
2029
2030     read_nlMatrixDSEntry(&nlMatrixDSEntry);
2031
2032     /* return the current value of the variable */
2033
2034     switch (vp->magic) {
2035
2036     case NLMATRIXDSPKTS:
2037         return (unsigned char *) &nlMatrixDSEntry.nlMatrixDSPkts;
2038
2039     case NLMATRIXDSOCTETS:
2040         return (unsigned char *) &nlMatrixDSEntry.nlMatrixDSOctets;
2041
2042     case NLMATRIXDSCREATETIME:
2043         return (unsigned char *) &nlMatrixDSEntry.nlMatrixDSCreateTime;
2044
2045     default:
2046          ERROR_MSG("");
2047     }
2048
2049     return NULL;
2050 }
2051
2052 static unsigned char *
2053 read_nlMatrixTopNControlEntry_stub(struct variable *vp,
2054     oid     *name,
2055     size_t  *length,
2056     int     exact,
2057     size_t  *var_len,
2058     WriteMethod **write_method)
2059 {
2060     static nlMatrixTopNControlEntry_t nlMatrixTopNControlEntry;
2061
2062     /* call the user supplied function to retrieve values */
2063
2064     read_nlMatrixTopNControlEntry(&nlMatrixTopNControlEntry);
2065
2066     /* return the current value of the variable */
2067
2068     switch (vp->magic) {
2069
2070     case NLMATRIXTOPNCONTROLMATRIXINDEX:
2071         return (unsigned char *) &nlMatrixTopNControlEntry.nlMatrixTopNControlMatrixIndex;
2072
2073     case NLMATRIXTOPNCONTROLRATEBASE:
2074         return (unsigned char *) &nlMatrixTopNControlEntry.nlMatrixTopNControlRateBase;
2075
2076     case NLMATRIXTOPNCONTROLTIMEREMAINING:
2077         return (unsigned char *) &nlMatrixTopNControlEntry.nlMatrixTopNControlTimeRemaining;
2078
2079     case NLMATRIXTOPNCONTROLGENERATEDREPORTS:
2080         return (unsigned char *) &nlMatrixTopNControlEntry.nlMatrixTopNControlGeneratedReports;
2081
2082     case NLMATRIXTOPNCONTROLDURATION:
2083         return (unsigned char *) &nlMatrixTopNControlEntry.nlMatrixTopNControlDuration;
2084
2085     case NLMATRIXTOPNCONTROLREQUESTEDSIZE:
2086         return (unsigned char *) &nlMatrixTopNControlEntry.nlMatrixTopNControlRequestedSize;
2087
2088     case NLMATRIXTOPNCONTROLGRANTEDSIZE:
2089         return (unsigned char *) &nlMatrixTopNControlEntry.nlMatrixTopNControlGrantedSize;
2090
2091     case NLMATRIXTOPNCONTROLSTARTTIME:
2092         return (unsigned char *) &nlMatrixTopNControlEntry.nlMatrixTopNControlStartTime;
2093
2094     case NLMATRIXTOPNCONTROLOWNER:
2095         *var_len = nlMatrixTopNControlEntry._nlMatrixTopNControlOwnerLength;
2096         return (unsigned char *) nlMatrixTopNControlEntry.nlMatrixTopNControlOwner;
2097
2098     case NLMATRIXTOPNCONTROLSTATUS:
2099         return (unsigned char *) &nlMatrixTopNControlEntry.nlMatrixTopNControlStatus;
2100
2101     default:
2102          ERROR_MSG("");
2103     }
2104
2105     return NULL;
2106 }
2107
2108 static unsigned char *
2109 read_nlMatrixTopNEntry_stub(struct variable *vp,
2110     oid     *name,
2111     size_t  *length,
2112     int     exact,
2113     size_t  *var_len,
2114     WriteMethod **write_method)
2115 {
2116     static nlMatrixTopNEntry_t nlMatrixTopNEntry;
2117
2118     /* call the user supplied function to retrieve values */
2119
2120     read_nlMatrixTopNEntry(&nlMatrixTopNEntry);
2121
2122     /* return the current value of the variable */
2123
2124     switch (vp->magic) {
2125
2126     case NLMATRIXTOPNPROTOCOLDIRLOCALINDEX:
2127         return (unsigned char *) &nlMatrixTopNEntry.nlMatrixTopNProtocolDirLocalIndex;
2128
2129     case NLMATRIXTOPNSOURCEADDRESS:
2130         *var_len = nlMatrixTopNEntry._nlMatrixTopNSourceAddressLength;
2131         return (unsigned char *) nlMatrixTopNEntry.nlMatrixTopNSourceAddress;
2132
2133     case NLMATRIXTOPNDESTADDRESS:
2134         *var_len = nlMatrixTopNEntry._nlMatrixTopNDestAddressLength;
2135         return (unsigned char *) nlMatrixTopNEntry.nlMatrixTopNDestAddress;
2136
2137     case NLMATRIXTOPNPKTRATE:
2138         return (unsigned char *) &nlMatrixTopNEntry.nlMatrixTopNPktRate;
2139
2140     case NLMATRIXTOPNREVERSEPKTRATE:
2141         return (unsigned char *) &nlMatrixTopNEntry.nlMatrixTopNReversePktRate;
2142
2143     case NLMATRIXTOPNOCTETRATE:
2144         return (unsigned char *) &nlMatrixTopNEntry.nlMatrixTopNOctetRate;
2145
2146     case NLMATRIXTOPNREVERSEOCTETRATE:
2147         return (unsigned char *) &nlMatrixTopNEntry.nlMatrixTopNReverseOctetRate;
2148
2149     default:
2150          ERROR_MSG("");
2151     }
2152
2153     return NULL;
2154 }
2155
2156 static unsigned char *
2157 read_alHostEntry_stub(struct variable *vp,
2158     oid     *name,
2159     size_t  *length,
2160     int     exact,
2161     size_t  *var_len,
2162     WriteMethod **write_method)
2163 {
2164     static alHostEntry_t alHostEntry;
2165
2166     /* call the user supplied function to retrieve values */
2167
2168     read_alHostEntry(&alHostEntry);
2169
2170     /* return the current value of the variable */
2171
2172     switch (vp->magic) {
2173
2174     case ALHOSTINPKTS:
2175         return (unsigned char *) &alHostEntry.alHostInPkts;
2176
2177     case ALHOSTOUTPKTS:
2178         return (unsigned char *) &alHostEntry.alHostOutPkts;
2179
2180     case ALHOSTINOCTETS:
2181         return (unsigned char *) &alHostEntry.alHostInOctets;
2182
2183     case ALHOSTOUTOCTETS:
2184         return (unsigned char *) &alHostEntry.alHostOutOctets;
2185
2186     case ALHOSTCREATETIME:
2187         return (unsigned char *) &alHostEntry.alHostCreateTime;
2188
2189     default:
2190          ERROR_MSG("");
2191     }
2192
2193     return NULL;
2194 }
2195
2196 static unsigned char *
2197 read_alMatrixSDEntry_stub(struct variable *vp,
2198     oid     *name,
2199     size_t  *length,
2200     int     exact,
2201     size_t  *var_len,
2202     WriteMethod **write_method)
2203 {
2204     static alMatrixSDEntry_t alMatrixSDEntry;
2205
2206     /* call the user supplied function to retrieve values */
2207
2208     read_alMatrixSDEntry(&alMatrixSDEntry);
2209
2210     /* return the current value of the variable */
2211
2212     switch (vp->magic) {
2213
2214     case ALMATRIXSDPKTS:
2215         return (unsigned char *) &alMatrixSDEntry.alMatrixSDPkts;
2216
2217     case ALMATRIXSDOCTETS:
2218         return (unsigned char *) &alMatrixSDEntry.alMatrixSDOctets;
2219
2220     case ALMATRIXSDCREATETIME:
2221         return (unsigned char *) &alMatrixSDEntry.alMatrixSDCreateTime;
2222
2223     default:
2224          ERROR_MSG("");
2225     }
2226
2227     return NULL;
2228 }
2229
2230 static unsigned char *
2231 read_alMatrixDSEntry_stub(struct variable *vp,
2232     oid     *name,
2233     size_t  *length,
2234     int     exact,
2235     size_t  *var_len,
2236     WriteMethod **write_method)
2237 {
2238     static alMatrixDSEntry_t alMatrixDSEntry;
2239
2240     /* call the user supplied function to retrieve values */
2241
2242     read_alMatrixDSEntry(&alMatrixDSEntry);
2243
2244     /* return the current value of the variable */
2245
2246     switch (vp->magic) {
2247
2248     case ALMATRIXDSPKTS:
2249         return (unsigned char *) &alMatrixDSEntry.alMatrixDSPkts;
2250
2251     case ALMATRIXDSOCTETS:
2252         return (unsigned char *) &alMatrixDSEntry.alMatrixDSOctets;
2253
2254     case ALMATRIXDSCREATETIME:
2255         return (unsigned char *) &alMatrixDSEntry.alMatrixDSCreateTime;
2256
2257     default:
2258          ERROR_MSG("");
2259     }
2260
2261     return NULL;
2262 }
2263
2264 static unsigned char *
2265 read_alMatrixTopNControlEntry_stub(struct variable *vp,
2266     oid     *name,
2267     size_t  *length,
2268     int     exact,
2269     size_t  *var_len,
2270     WriteMethod **write_method)
2271 {
2272     static alMatrixTopNControlEntry_t alMatrixTopNControlEntry;
2273
2274     /* call the user supplied function to retrieve values */
2275
2276     read_alMatrixTopNControlEntry(&alMatrixTopNControlEntry);
2277
2278     /* return the current value of the variable */
2279
2280     switch (vp->magic) {
2281
2282     case ALMATRIXTOPNCONTROLMATRIXINDEX:
2283         return (unsigned char *) &alMatrixTopNControlEntry.alMatrixTopNControlMatrixIndex;
2284
2285     case ALMATRIXTOPNCONTROLRATEBASE:
2286         return (unsigned char *) &alMatrixTopNControlEntry.alMatrixTopNControlRateBase;
2287
2288     case ALMATRIXTOPNCONTROLTIMEREMAINING:
2289         return (unsigned char *) &alMatrixTopNControlEntry.alMatrixTopNControlTimeRemaining;
2290
2291     case ALMATRIXTOPNCONTROLGENERATEDREPORTS:
2292         return (unsigned char *) &alMatrixTopNControlEntry.alMatrixTopNControlGeneratedReports;
2293
2294     case ALMATRIXTOPNCONTROLDURATION:
2295         return (unsigned char *) &alMatrixTopNControlEntry.alMatrixTopNControlDuration;
2296
2297     case ALMATRIXTOPNCONTROLREQUESTEDSIZE:
2298         return (unsigned char *) &alMatrixTopNControlEntry.alMatrixTopNControlRequestedSize;
2299
2300     case ALMATRIXTOPNCONTROLGRANTEDSIZE:
2301         return (unsigned char *) &alMatrixTopNControlEntry.alMatrixTopNControlGrantedSize;
2302
2303     case ALMATRIXTOPNCONTROLSTARTTIME:
2304         return (unsigned char *) &alMatrixTopNControlEntry.alMatrixTopNControlStartTime;
2305
2306     case ALMATRIXTOPNCONTROLOWNER:
2307         *var_len = alMatrixTopNControlEntry._alMatrixTopNControlOwnerLength;
2308         return (unsigned char *) alMatrixTopNControlEntry.alMatrixTopNControlOwner;
2309
2310     case ALMATRIXTOPNCONTROLSTATUS:
2311         return (unsigned char *) &alMatrixTopNControlEntry.alMatrixTopNControlStatus;
2312
2313     default:
2314          ERROR_MSG("");
2315     }
2316
2317     return NULL;
2318 }
2319
2320 static unsigned char *
2321 read_alMatrixTopNEntry_stub(struct variable *vp,
2322     oid     *name,
2323     size_t  *length,
2324     int     exact,
2325     size_t  *var_len,
2326     WriteMethod **write_method)
2327 {
2328     static alMatrixTopNEntry_t alMatrixTopNEntry;
2329
2330     /* call the user supplied function to retrieve values */
2331
2332     read_alMatrixTopNEntry(&alMatrixTopNEntry);
2333
2334     /* return the current value of the variable */
2335
2336     switch (vp->magic) {
2337
2338     case ALMATRIXTOPNPROTOCOLDIRLOCALINDEX:
2339         return (unsigned char *) &alMatrixTopNEntry.alMatrixTopNProtocolDirLocalIndex;
2340
2341     case ALMATRIXTOPNSOURCEADDRESS:
2342         *var_len = alMatrixTopNEntry._alMatrixTopNSourceAddressLength;
2343         return (unsigned char *) alMatrixTopNEntry.alMatrixTopNSourceAddress;
2344
2345     case ALMATRIXTOPNDESTADDRESS:
2346         *var_len = alMatrixTopNEntry._alMatrixTopNDestAddressLength;
2347         return (unsigned char *) alMatrixTopNEntry.alMatrixTopNDestAddress;
2348
2349     case ALMATRIXTOPNAPPPROTOCOLDIRLOCALINDEX:
2350         return (unsigned char *) &alMatrixTopNEntry.alMatrixTopNAppProtocolDirLocalIndex;
2351
2352     case ALMATRIXTOPNPKTRATE:
2353         return (unsigned char *) &alMatrixTopNEntry.alMatrixTopNPktRate;
2354
2355     case ALMATRIXTOPNREVERSEPKTRATE:
2356         return (unsigned char *) &alMatrixTopNEntry.alMatrixTopNReversePktRate;
2357
2358     case ALMATRIXTOPNOCTETRATE:
2359         return (unsigned char *) &alMatrixTopNEntry.alMatrixTopNOctetRate;
2360
2361     case ALMATRIXTOPNREVERSEOCTETRATE:
2362         return (unsigned char *) &alMatrixTopNEntry.alMatrixTopNReverseOctetRate;
2363
2364     default:
2365          ERROR_MSG("");
2366     }
2367
2368     return NULL;
2369 }
2370
2371 static unsigned char *
2372 read_usrHistoryControlEntry_stub(struct variable *vp,
2373     oid     *name,
2374     size_t  *length,
2375     int     exact,
2376     size_t  *var_len,
2377     WriteMethod **write_method)
2378 {
2379     static usrHistoryControlEntry_t usrHistoryControlEntry;
2380
2381     /* call the user supplied function to retrieve values */
2382
2383     read_usrHistoryControlEntry(&usrHistoryControlEntry);
2384
2385     /* return the current value of the variable */
2386
2387     switch (vp->magic) {
2388
2389     case USRHISTORYCONTROLOBJECTS:
2390         return (unsigned char *) &usrHistoryControlEntry.usrHistoryControlObjects;
2391
2392     case USRHISTORYCONTROLBUCKETSREQUESTED:
2393         return (unsigned char *) &usrHistoryControlEntry.usrHistoryControlBucketsRequested;
2394
2395     case USRHISTORYCONTROLBUCKETSGRANTED:
2396         return (unsigned char *) &usrHistoryControlEntry.usrHistoryControlBucketsGranted;
2397
2398     case USRHISTORYCONTROLINTERVAL:
2399         return (unsigned char *) &usrHistoryControlEntry.usrHistoryControlInterval;
2400
2401     case USRHISTORYCONTROLOWNER:
2402         *var_len = usrHistoryControlEntry._usrHistoryControlOwnerLength;
2403         return (unsigned char *) usrHistoryControlEntry.usrHistoryControlOwner;
2404
2405     case USRHISTORYCONTROLSTATUS:
2406         return (unsigned char *) &usrHistoryControlEntry.usrHistoryControlStatus;
2407
2408     default:
2409          ERROR_MSG("");
2410     }
2411
2412     return NULL;
2413 }
2414
2415 static unsigned char *
2416 read_usrHistoryObjectEntry_stub(struct variable *vp,
2417     oid     *name,
2418     size_t  *length,
2419     int     exact,
2420     size_t  *var_len,
2421     WriteMethod **write_method)
2422 {
2423     static usrHistoryObjectEntry_t usrHistoryObjectEntry;
2424
2425     /* call the user supplied function to retrieve values */
2426
2427     read_usrHistoryObjectEntry(&usrHistoryObjectEntry);
2428
2429     /* return the current value of the variable */
2430
2431     switch (vp->magic) {
2432
2433     case USRHISTORYOBJECTVARIABLE:
2434         *var_len = usrHistoryObjectEntry._usrHistoryObjectVariableLength;
2435         return (unsigned char *) usrHistoryObjectEntry.usrHistoryObjectVariable;
2436
2437     case USRHISTORYOBJECTSAMPLETYPE:
2438         return (unsigned char *) &usrHistoryObjectEntry.usrHistoryObjectSampleType;
2439
2440     default:
2441          ERROR_MSG("");
2442     }
2443
2444     return NULL;
2445 }
2446
2447 static unsigned char *
2448 read_usrHistoryEntry_stub(struct variable *vp,
2449     oid     *name,
2450     size_t  *length,
2451     int     exact,
2452     size_t  *var_len,
2453     WriteMethod **write_method)
2454 {
2455     static usrHistoryEntry_t usrHistoryEntry;
2456
2457     /* call the user supplied function to retrieve values */
2458
2459     read_usrHistoryEntry(&usrHistoryEntry);
2460
2461     /* return the current value of the variable */
2462
2463     switch (vp->magic) {
2464
2465     case USRHISTORYINTERVALSTART:
2466         return (unsigned char *) &usrHistoryEntry.usrHistoryIntervalStart;
2467
2468     case USRHISTORYINTERVALEND:
2469         return (unsigned char *) &usrHistoryEntry.usrHistoryIntervalEnd;
2470
2471     case USRHISTORYABSVALUE:
2472         return (unsigned char *) &usrHistoryEntry.usrHistoryAbsValue;
2473
2474     case USRHISTORYVALSTATUS:
2475         return (unsigned char *) &usrHistoryEntry.usrHistoryValStatus;
2476
2477     default:
2478          ERROR_MSG("");
2479     }
2480
2481     return NULL;
2482 }
2483
2484 static unsigned char *
2485 read_probeConfig_stub(struct variable *vp,
2486     oid     *name,
2487     size_t  *length,
2488     int     exact,
2489     size_t  *var_len,
2490     WriteMethod **write_method)
2491 {
2492     static probeConfig_t probeConfig;
2493
2494     /* check whether the instance identifier is valid */
2495
2496     if (header_generic(vp, name, length, exact, var_len,
2497                        write_method) == MATCH_FAILED) {
2498         return NULL;
2499     }
2500
2501     /* call the user supplied function to retrieve values */
2502
2503     read_probeConfig(&probeConfig);
2504
2505     /* return the current value of the variable */
2506
2507     switch (vp->magic) {
2508
2509     case PROBECAPABILITIES:
2510         *var_len = probeConfig._probeCapabilitiesLength;
2511         return (unsigned char *) probeConfig.probeCapabilities;
2512
2513     case PROBESOFTWAREREV:
2514         *var_len = probeConfig._probeSoftwareRevLength;
2515         return (unsigned char *) probeConfig.probeSoftwareRev;
2516
2517     case PROBEHARDWAREREV:
2518         *var_len = probeConfig._probeHardwareRevLength;
2519         return (unsigned char *) probeConfig.probeHardwareRev;
2520
2521     case PROBEDATETIME:
2522         *var_len = probeConfig._probeDateTimeLength;
2523         return (unsigned char *) probeConfig.probeDateTime;
2524
2525     case PROBERESETCONTROL:
2526         return (unsigned char *) &probeConfig.probeResetControl;
2527
2528     case PROBEDOWNLOADFILE:
2529         *var_len = probeConfig._probeDownloadFileLength;
2530         return (unsigned char *) probeConfig.probeDownloadFile;
2531
2532     case PROBEDOWNLOADTFTPSERVER:
2533         *var_len = probeConfig._probeDownloadTFTPServerLength;
2534         return (unsigned char *) probeConfig.probeDownloadTFTPServer;
2535
2536     case PROBEDOWNLOADACTION:
2537         return (unsigned char *) &probeConfig.probeDownloadAction;
2538
2539     case PROBEDOWNLOADSTATUS:
2540         return (unsigned char *) &probeConfig.probeDownloadStatus;
2541
2542     case NETDEFAULTGATEWAY:
2543         *var_len = probeConfig._netDefaultGatewayLength;
2544         return (unsigned char *) probeConfig.netDefaultGateway;
2545
2546     default:
2547          ERROR_MSG("");
2548     }
2549
2550     return NULL;
2551 }
2552
2553 static unsigned char *
2554 read_serialConfigEntry_stub(struct variable *vp,
2555     oid     *name,
2556     size_t  *length,
2557     int     exact,
2558     size_t  *var_len,
2559     WriteMethod **write_method)
2560 {
2561     static serialConfigEntry_t serialConfigEntry;
2562
2563     /* call the user supplied function to retrieve values */
2564
2565     read_serialConfigEntry(&serialConfigEntry);
2566
2567     /* return the current value of the variable */
2568
2569     switch (vp->magic) {
2570
2571     case SERIALMODE:
2572         return (unsigned char *) &serialConfigEntry.serialMode;
2573
2574     case SERIALPROTOCOL:
2575         return (unsigned char *) &serialConfigEntry.serialProtocol;
2576
2577     case SERIALTIMEOUT:
2578         return (unsigned char *) &serialConfigEntry.serialTimeout;
2579
2580     case SERIALMODEMINITSTRING:
2581         *var_len = serialConfigEntry._serialModemInitStringLength;
2582         return (unsigned char *) serialConfigEntry.serialModemInitString;
2583
2584     case SERIALMODEMHANGUPSTRING:
2585         *var_len = serialConfigEntry._serialModemHangUpStringLength;
2586         return (unsigned char *) serialConfigEntry.serialModemHangUpString;
2587
2588     case SERIALMODEMCONNECTRESP:
2589         *var_len = serialConfigEntry._serialModemConnectRespLength;
2590         return (unsigned char *) serialConfigEntry.serialModemConnectResp;
2591
2592     case SERIALMODEMNOCONNECTRESP:
2593         *var_len = serialConfigEntry._serialModemNoConnectRespLength;
2594         return (unsigned char *) serialConfigEntry.serialModemNoConnectResp;
2595
2596     case SERIALDIALOUTTIMEOUT:
2597         return (unsigned char *) &serialConfigEntry.serialDialoutTimeout;
2598
2599     case SERIALSTATUS:
2600         return (unsigned char *) &serialConfigEntry.serialStatus;
2601
2602     default:
2603          ERROR_MSG("");
2604     }
2605
2606     return NULL;
2607 }
2608
2609 static unsigned char *
2610 read_netConfigEntry_stub(struct variable *vp,
2611     oid     *name,
2612     size_t  *length,
2613     int     exact,
2614     size_t  *var_len,
2615     WriteMethod **write_method)
2616 {
2617     static netConfigEntry_t netConfigEntry;
2618
2619     /* call the user supplied function to retrieve values */
2620
2621     read_netConfigEntry(&netConfigEntry);
2622
2623     /* return the current value of the variable */
2624
2625     switch (vp->magic) {
2626
2627     case NETCONFIGIPADDRESS:
2628         *var_len = netConfigEntry._netConfigIPAddressLength;
2629         return (unsigned char *) netConfigEntry.netConfigIPAddress;
2630
2631     case NETCONFIGSUBNETMASK:
2632         *var_len = netConfigEntry._netConfigSubnetMaskLength;
2633         return (unsigned char *) netConfigEntry.netConfigSubnetMask;
2634
2635     case NETCONFIGSTATUS:
2636         return (unsigned char *) &netConfigEntry.netConfigStatus;
2637
2638     default:
2639          ERROR_MSG("");
2640     }
2641
2642     return NULL;
2643 }
2644
2645 static unsigned char *
2646 read_trapDestEntry_stub(struct variable *vp,
2647     oid     *name,
2648     size_t  *length,
2649     int     exact,
2650     size_t  *var_len,
2651     WriteMethod **write_method)
2652 {
2653     static trapDestEntry_t trapDestEntry;
2654
2655     /* call the user supplied function to retrieve values */
2656
2657     read_trapDestEntry(&trapDestEntry);
2658
2659     /* return the current value of the variable */
2660
2661     switch (vp->magic) {
2662
2663     case TRAPDESTCOMMUNITY:
2664         *var_len = trapDestEntry._trapDestCommunityLength;
2665         return (unsigned char *) trapDestEntry.trapDestCommunity;
2666
2667     case TRAPDESTPROTOCOL:
2668         return (unsigned char *) &trapDestEntry.trapDestProtocol;
2669
2670     case TRAPDESTADDRESS:
2671         *var_len = trapDestEntry._trapDestAddressLength;
2672         return (unsigned char *) trapDestEntry.trapDestAddress;
2673
2674     case TRAPDESTOWNER:
2675         *var_len = trapDestEntry._trapDestOwnerLength;
2676         return (unsigned char *) trapDestEntry.trapDestOwner;
2677
2678     case TRAPDESTSTATUS:
2679         return (unsigned char *) &trapDestEntry.trapDestStatus;
2680
2681     default:
2682          ERROR_MSG("");
2683     }
2684
2685     return NULL;
2686 }
2687
2688 static unsigned char *
2689 read_serialConnectionEntry_stub(struct variable *vp,
2690     oid     *name,
2691     size_t  *length,
2692     int     exact,
2693     size_t  *var_len,
2694     WriteMethod **write_method)
2695 {
2696     static serialConnectionEntry_t serialConnectionEntry;
2697
2698     /* call the user supplied function to retrieve values */
2699
2700     read_serialConnectionEntry(&serialConnectionEntry);
2701
2702     /* return the current value of the variable */
2703
2704     switch (vp->magic) {
2705
2706     case SERIALCONNECTDESTIPADDRESS:
2707         *var_len = serialConnectionEntry._serialConnectDestIpAddressLength;
2708         return (unsigned char *) serialConnectionEntry.serialConnectDestIpAddress;
2709
2710     case SERIALCONNECTTYPE:
2711         return (unsigned char *) &serialConnectionEntry.serialConnectType;
2712
2713     case SERIALCONNECTDIALSTRING:
2714         *var_len = serialConnectionEntry._serialConnectDialStringLength;
2715         return (unsigned char *) serialConnectionEntry.serialConnectDialString;
2716
2717     case SERIALCONNECTSWITCHCONNECTSEQ:
2718         *var_len = serialConnectionEntry._serialConnectSwitchConnectSeqLength;
2719         return (unsigned char *) serialConnectionEntry.serialConnectSwitchConnectSeq;
2720
2721     case SERIALCONNECTSWITCHDISCONNECTSEQ:
2722         *var_len = serialConnectionEntry._serialConnectSwitchDisconnectSeqLength;
2723         return (unsigned char *) serialConnectionEntry.serialConnectSwitchDisconnectSeq;
2724
2725     case SERIALCONNECTSWITCHRESETSEQ:
2726         *var_len = serialConnectionEntry._serialConnectSwitchResetSeqLength;
2727         return (unsigned char *) serialConnectionEntry.serialConnectSwitchResetSeq;
2728
2729     case SERIALCONNECTOWNER:
2730         *var_len = serialConnectionEntry._serialConnectOwnerLength;
2731         return (unsigned char *) serialConnectionEntry.serialConnectOwner;
2732
2733     case SERIALCONNECTSTATUS:
2734         return (unsigned char *) &serialConnectionEntry.serialConnectStatus;
2735
2736     default:
2737          ERROR_MSG("");
2738     }
2739
2740     return NULL;
2741 }
2742
2743
2744 /*
2745  * Forward declaration of write methods for writable objects:
2746  */
2747
2748 static int
2749 write_filterProtocolDirDataLocalIndex_stub(int action,
2750     u_char   *var_val,
2751     u_char   var_val_type,
2752     int      var_val_len,
2753     u_char   *statP,
2754     oid      *name,
2755     int      name_len)
2756 {
2757     return SNMP_ERR_NOERROR;
2758 }
2759
2760 static int
2761 write_filterProtocolDirLocalIndex_stub(int action,
2762     u_char   *var_val,
2763     u_char   var_val_type,
2764     int      var_val_len,
2765     u_char   *statP,
2766     oid      *name,
2767     int      name_len)
2768 {
2769     return SNMP_ERR_NOERROR;
2770 }
2771
2772 static int
2773 write_protocolDirDescr_stub(int action,
2774     u_char   *var_val,
2775     u_char   var_val_type,
2776     int      var_val_len,
2777     u_char   *statP,
2778     oid      *name,
2779     int      name_len)
2780 {
2781     return SNMP_ERR_NOERROR;
2782 }
2783
2784 static int
2785 write_protocolDirAddressMapConfig_stub(int action,
2786     u_char   *var_val,
2787     u_char   var_val_type,
2788     int      var_val_len,
2789     u_char   *statP,
2790     oid      *name,
2791     int      name_len)
2792 {
2793     return SNMP_ERR_NOERROR;
2794 }
2795
2796 static int
2797 write_protocolDirHostConfig_stub(int action,
2798     u_char   *var_val,
2799     u_char   var_val_type,
2800     int      var_val_len,
2801     u_char   *statP,
2802     oid      *name,
2803     int      name_len)
2804 {
2805     return SNMP_ERR_NOERROR;
2806 }
2807
2808 static int
2809 write_protocolDirMatrixConfig_stub(int action,
2810     u_char   *var_val,
2811     u_char   var_val_type,
2812     int      var_val_len,
2813     u_char   *statP,
2814     oid      *name,
2815     int      name_len)
2816 {
2817     return SNMP_ERR_NOERROR;
2818 }
2819
2820 static int
2821 write_protocolDirOwner_stub(int action,
2822     u_char   *var_val,
2823     u_char   var_val_type,
2824     int      var_val_len,
2825     u_char   *statP,
2826     oid      *name,
2827     int      name_len)
2828 {
2829     return SNMP_ERR_NOERROR;
2830 }
2831
2832 static int
2833 write_protocolDirStatus_stub(int action,
2834     u_char   *var_val,
2835     u_char   var_val_type,
2836     int      var_val_len,
2837     u_char   *statP,
2838     oid      *name,
2839     int      name_len)
2840 {
2841     return SNMP_ERR_NOERROR;
2842 }
2843
2844 static int
2845 write_protocolDistControlDataSource_stub(int action,
2846     u_char   *var_val,
2847     u_char   var_val_type,
2848     int      var_val_len,
2849     u_char   *statP,
2850     oid      *name,
2851     int      name_len)
2852 {
2853     return SNMP_ERR_NOERROR;
2854 }
2855
2856 static int
2857 write_protocolDistControlOwner_stub(int action,
2858     u_char   *var_val,
2859     u_char   var_val_type,
2860     int      var_val_len,
2861     u_char   *statP,
2862     oid      *name,
2863     int      name_len)
2864 {
2865     return SNMP_ERR_NOERROR;
2866 }
2867
2868 static int
2869 write_protocolDistControlStatus_stub(int action,
2870     u_char   *var_val,
2871     u_char   var_val_type,
2872     int      var_val_len,
2873     u_char   *statP,
2874     oid      *name,
2875     int      name_len)
2876 {
2877     return SNMP_ERR_NOERROR;
2878 }
2879
2880 static int
2881 write_addressMapMaxDesiredEntries_stub(int action,
2882     u_char   *var_val,
2883     u_char   var_val_type,
2884     int      var_val_len,
2885     u_char   *statP,
2886     oid      *name,
2887     int      name_len)
2888 {
2889     return SNMP_ERR_NOERROR;
2890 }
2891
2892 static int
2893 write_addressMapControlDataSource_stub(int action,
2894     u_char   *var_val,
2895     u_char   var_val_type,
2896     int      var_val_len,
2897     u_char   *statP,
2898     oid      *name,
2899     int      name_len)
2900 {
2901     return SNMP_ERR_NOERROR;
2902 }
2903
2904 static int
2905 write_addressMapControlOwner_stub(int action,
2906     u_char   *var_val,
2907     u_char   var_val_type,
2908     int      var_val_len,
2909     u_char   *statP,
2910     oid      *name,
2911     int      name_len)
2912 {
2913     return SNMP_ERR_NOERROR;
2914 }
2915
2916 static int
2917 write_addressMapControlStatus_stub(int action,
2918     u_char   *var_val,
2919     u_char   var_val_type,
2920     int      var_val_len,
2921     u_char   *statP,
2922     oid      *name,
2923     int      name_len)
2924 {
2925     return SNMP_ERR_NOERROR;
2926 }
2927
2928 static int
2929 write_hlHostControlDataSource_stub(int action,
2930     u_char   *var_val,
2931     u_char   var_val_type,
2932     int      var_val_len,
2933     u_char   *statP,
2934     oid      *name,
2935     int      name_len)
2936 {
2937     return SNMP_ERR_NOERROR;
2938 }
2939
2940 static int
2941 write_hlHostControlNlMaxDesiredEntries_stub(int action,
2942     u_char   *var_val,
2943     u_char   var_val_type,
2944     int      var_val_len,
2945     u_char   *statP,
2946     oid      *name,
2947     int      name_len)
2948 {
2949     return SNMP_ERR_NOERROR;
2950 }
2951
2952 static int
2953 write_hlHostControlAlMaxDesiredEntries_stub(int action,
2954     u_char   *var_val,
2955     u_char   var_val_type,
2956     int      var_val_len,
2957     u_char   *statP,
2958     oid      *name,
2959     int      name_len)
2960 {
2961     return SNMP_ERR_NOERROR;
2962 }
2963
2964 static int
2965 write_hlHostControlOwner_stub(int action,
2966     u_char   *var_val,
2967     u_char   var_val_type,
2968     int      var_val_len,
2969     u_char   *statP,
2970     oid      *name,
2971     int      name_len)
2972 {
2973     return SNMP_ERR_NOERROR;
2974 }
2975
2976 static int
2977 write_hlHostControlStatus_stub(int action,
2978     u_char   *var_val,
2979     u_char   var_val_type,
2980     int      var_val_len,
2981     u_char   *statP,
2982     oid      *name,
2983     int      name_len)
2984 {
2985     return SNMP_ERR_NOERROR;
2986 }
2987
2988 static int
2989 write_hlMatrixControlDataSource_stub(int action,
2990     u_char   *var_val,
2991     u_char   var_val_type,
2992     int      var_val_len,
2993     u_char   *statP,
2994     oid      *name,
2995     int      name_len)
2996 {
2997     return SNMP_ERR_NOERROR;
2998 }
2999
3000 static int
3001 write_hlMatrixControlNlMaxDesiredEntries_stub(int action,
3002     u_char   *var_val,
3003     u_char   var_val_type,
3004     int      var_val_len,
3005     u_char   *statP,
3006     oid      *name,
3007     int      name_len)
3008 {
3009     return SNMP_ERR_NOERROR;
3010 }
3011
3012 static int
3013 write_hlMatrixControlAlMaxDesiredEntries_stub(int action,
3014     u_char   *var_val,
3015     u_char   var_val_type,
3016     int      var_val_len,
3017     u_char   *statP,
3018     oid      *name,
3019     int      name_len)
3020 {
3021     return SNMP_ERR_NOERROR;
3022 }
3023
3024 static int
3025 write_hlMatrixControlOwner_stub(int action,
3026     u_char   *var_val,
3027     u_char   var_val_type,
3028     int      var_val_len,
3029     u_char   *statP,
3030     oid      *name,
3031     int      name_len)
3032 {
3033     return SNMP_ERR_NOERROR;
3034 }
3035
3036 static int
3037 write_hlMatrixControlStatus_stub(int action,
3038     u_char   *var_val,
3039     u_char   var_val_type,
3040     int      var_val_len,
3041     u_char   *statP,
3042     oid      *name,
3043     int      name_len)
3044 {
3045     return SNMP_ERR_NOERROR;
3046 }
3047
3048 static int
3049 write_nlMatrixTopNControlMatrixIndex_stub(int action,
3050     u_char   *var_val,
3051     u_char   var_val_type,
3052     int      var_val_len,
3053     u_char   *statP,
3054     oid      *name,
3055     int      name_len)
3056 {
3057     return SNMP_ERR_NOERROR;
3058 }
3059
3060 static int
3061 write_nlMatrixTopNControlRateBase_stub(int action,
3062     u_char   *var_val,
3063     u_char   var_val_type,
3064     int      var_val_len,
3065     u_char   *statP,
3066     oid      *name,
3067     int      name_len)
3068 {
3069     return SNMP_ERR_NOERROR;
3070 }
3071
3072 static int
3073 write_nlMatrixTopNControlTimeRemaining_stub(int action,
3074     u_char   *var_val,
3075     u_char   var_val_type,
3076     int      var_val_len,
3077     u_char   *statP,
3078     oid      *name,
3079     int      name_len)
3080 {
3081     return SNMP_ERR_NOERROR;
3082 }
3083
3084 static int
3085 write_nlMatrixTopNControlRequestedSize_stub(int action,
3086     u_char   *var_val,
3087     u_char   var_val_type,
3088     int      var_val_len,
3089     u_char   *statP,
3090     oid      *name,
3091     int      name_len)
3092 {
3093     return SNMP_ERR_NOERROR;
3094 }
3095
3096 static int
3097 write_nlMatrixTopNControlOwner_stub(int action,
3098     u_char   *var_val,
3099     u_char   var_val_type,
3100     int      var_val_len,
3101     u_char   *statP,
3102     oid      *name,
3103     int      name_len)
3104 {
3105     return SNMP_ERR_NOERROR;
3106 }
3107
3108 static int
3109 write_nlMatrixTopNControlStatus_stub(int action,
3110     u_char   *var_val,
3111     u_char   var_val_type,
3112     int      var_val_len,
3113     u_char   *statP,
3114     oid      *name,
3115     int      name_len)
3116 {
3117     return SNMP_ERR_NOERROR;
3118 }
3119
3120 static int
3121 write_alMatrixTopNControlMatrixIndex_stub(int action,
3122     u_char   *var_val,
3123     u_char   var_val_type,
3124     int      var_val_len,
3125     u_char   *statP,
3126     oid      *name,
3127     int      name_len)
3128 {
3129     return SNMP_ERR_NOERROR;
3130 }
3131
3132 static int
3133 write_alMatrixTopNControlRateBase_stub(int action,
3134     u_char   *var_val,
3135     u_char   var_val_type,
3136     int      var_val_len,
3137     u_char   *statP,
3138     oid      *name,
3139     int      name_len)
3140 {
3141     return SNMP_ERR_NOERROR;
3142 }
3143
3144 static int
3145 write_alMatrixTopNControlTimeRemaining_stub(int action,
3146     u_char   *var_val,
3147     u_char   var_val_type,
3148     int      var_val_len,
3149     u_char   *statP,
3150     oid      *name,
3151     int      name_len)
3152 {
3153     return SNMP_ERR_NOERROR;
3154 }
3155
3156 static int
3157 write_alMatrixTopNControlRequestedSize_stub(int action,
3158     u_char   *var_val,
3159     u_char   var_val_type,
3160     int      var_val_len,
3161     u_char   *statP,
3162     oid      *name,
3163     int      name_len)
3164 {
3165     return SNMP_ERR_NOERROR;
3166 }
3167
3168 static int
3169 write_alMatrixTopNControlOwner_stub(int action,
3170     u_char   *var_val,
3171     u_char   var_val_type,
3172     int      var_val_len,
3173     u_char   *statP,
3174     oid      *name,
3175     int      name_len)
3176 {
3177     return SNMP_ERR_NOERROR;
3178 }
3179
3180 static int
3181 write_alMatrixTopNControlStatus_stub(int action,
3182     u_char   *var_val,
3183     u_char   var_val_type,
3184     int      var_val_len,
3185     u_char   *statP,
3186     oid      *name,
3187     int      name_len)
3188 {
3189     return SNMP_ERR_NOERROR;
3190 }
3191
3192 static int
3193 write_usrHistoryControlObjects_stub(int action,
3194     u_char   *var_val,
3195     u_char   var_val_type,
3196     int      var_val_len,
3197     u_char   *statP,
3198     oid      *name,
3199     int      name_len)
3200 {
3201     return SNMP_ERR_NOERROR;
3202 }
3203
3204 static int
3205 write_usrHistoryControlBucketsRequested_stub(int action,
3206     u_char   *var_val,
3207     u_char   var_val_type,
3208     int      var_val_len,
3209     u_char   *statP,
3210     oid      *name,
3211     int      name_len)
3212 {
3213     return SNMP_ERR_NOERROR;
3214 }
3215
3216 static int
3217 write_usrHistoryControlInterval_stub(int action,
3218     u_char   *var_val,
3219     u_char   var_val_type,
3220     int      var_val_len,
3221     u_char   *statP,
3222     oid      *name,
3223     int      name_len)
3224 {
3225     return SNMP_ERR_NOERROR;
3226 }
3227
3228 static int
3229 write_usrHistoryControlOwner_stub(int action,
3230     u_char   *var_val,
3231     u_char   var_val_type,
3232     int      var_val_len,
3233     u_char   *statP,
3234     oid      *name,
3235     int      name_len)
3236 {
3237     return SNMP_ERR_NOERROR;
3238 }
3239
3240 static int
3241 write_usrHistoryControlStatus_stub(int action,
3242     u_char   *var_val,
3243     u_char   var_val_type,
3244     int      var_val_len,
3245     u_char   *statP,
3246     oid      *name,
3247     int      name_len)
3248 {
3249     return SNMP_ERR_NOERROR;
3250 }
3251
3252 static int
3253 write_usrHistoryObjectVariable_stub(int action,
3254     u_char   *var_val,
3255     u_char   var_val_type,
3256     int      var_val_len,
3257     u_char   *statP,
3258     oid      *name,
3259     int      name_len)
3260 {
3261     return SNMP_ERR_NOERROR;
3262 }
3263
3264 static int
3265 write_usrHistoryObjectSampleType_stub(int action,
3266     u_char   *var_val,
3267     u_char   var_val_type,
3268     int      var_val_len,
3269     u_char   *statP,
3270     oid      *name,
3271     int      name_len)
3272 {
3273     return SNMP_ERR_NOERROR;
3274 }
3275
3276 static int
3277 write_probeDateTime_stub(int action,
3278     u_char   *var_val,
3279     u_char   var_val_type,
3280     int      var_val_len,
3281     u_char   *statP,
3282     oid      *name,
3283     int      name_len)
3284 {
3285     return SNMP_ERR_NOERROR;
3286 }
3287
3288 static int
3289 write_probeResetControl_stub(int action,
3290     u_char   *var_val,
3291     u_char   var_val_type,
3292     int      var_val_len,
3293     u_char   *statP,
3294     oid      *name,
3295     int      name_len)
3296 {
3297     return SNMP_ERR_NOERROR;
3298 }
3299
3300 static int
3301 write_probeDownloadFile_stub(int action,
3302     u_char   *var_val,
3303     u_char   var_val_type,
3304     int      var_val_len,
3305     u_char   *statP,
3306     oid      *name,
3307     int      name_len)
3308 {
3309     return SNMP_ERR_NOERROR;
3310 }
3311
3312 static int
3313 write_probeDownloadTFTPServer_stub(int action,
3314     u_char   *var_val,
3315     u_char   var_val_type,
3316     int      var_val_len,
3317     u_char   *statP,
3318     oid      *name,
3319     int      name_len)
3320 {
3321     return SNMP_ERR_NOERROR;
3322 }
3323
3324 static int
3325 write_probeDownloadAction_stub(int action,
3326     u_char   *var_val,
3327     u_char   var_val_type,
3328     int      var_val_len,
3329     u_char   *statP,
3330     oid      *name,
3331     int      name_len)
3332 {
3333     return SNMP_ERR_NOERROR;
3334 }
3335
3336 static int
3337 write_serialMode_stub(int action,
3338     u_char   *var_val,
3339     u_char   var_val_type,
3340     int      var_val_len,
3341     u_char   *statP,
3342     oid      *name,
3343     int      name_len)
3344 {
3345     return SNMP_ERR_NOERROR;
3346 }
3347
3348 static int
3349 write_serialProtocol_stub(int action,
3350     u_char   *var_val,
3351     u_char   var_val_type,
3352     int      var_val_len,
3353     u_char   *statP,
3354     oid      *name,
3355     int      name_len)
3356 {
3357     return SNMP_ERR_NOERROR;
3358 }
3359
3360 static int
3361 write_serialTimeout_stub(int action,
3362     u_char   *var_val,
3363     u_char   var_val_type,
3364     int      var_val_len,
3365     u_char   *statP,
3366     oid      *name,
3367     int      name_len)
3368 {
3369     return SNMP_ERR_NOERROR;
3370 }
3371
3372 static int
3373 write_serialModemInitString_stub(int action,
3374     u_char   *var_val,
3375     u_char   var_val_type,
3376     int      var_val_len,
3377     u_char   *statP,
3378     oid      *name,
3379     int      name_len)
3380 {
3381     return SNMP_ERR_NOERROR;
3382 }
3383
3384 static int
3385 write_serialModemHangUpString_stub(int action,
3386     u_char   *var_val,
3387     u_char   var_val_type,
3388     int      var_val_len,
3389     u_char   *statP,
3390     oid      *name,
3391     int      name_len)
3392 {
3393     return SNMP_ERR_NOERROR;
3394 }
3395
3396 static int
3397 write_serialModemConnectResp_stub(int action,
3398     u_char   *var_val,
3399     u_char   var_val_type,
3400     int      var_val_len,
3401     u_char   *statP,
3402     oid      *name,
3403     int      name_len)
3404 {
3405     return SNMP_ERR_NOERROR;
3406 }
3407
3408 static int
3409 write_serialModemNoConnectResp_stub(int action,
3410     u_char   *var_val,
3411     u_char   var_val_type,
3412     int      var_val_len,
3413     u_char   *statP,
3414     oid      *name,
3415     int      name_len)
3416 {
3417     return SNMP_ERR_NOERROR;
3418 }
3419
3420 static int
3421 write_serialDialoutTimeout_stub(int action,
3422     u_char   *var_val,
3423     u_char   var_val_type,
3424     int      var_val_len,
3425     u_char   *statP,
3426     oid      *name,
3427     int      name_len)
3428 {
3429     return SNMP_ERR_NOERROR;
3430 }
3431
3432 static int
3433 write_serialStatus_stub(int action,
3434     u_char   *var_val,
3435     u_char   var_val_type,
3436     int      var_val_len,
3437     u_char   *statP,
3438     oid      *name,
3439     int      name_len)
3440 {
3441     return SNMP_ERR_NOERROR;
3442 }
3443
3444 static int
3445 write_netConfigIPAddress_stub(int action,
3446     u_char   *var_val,
3447     u_char   var_val_type,
3448     int      var_val_len,
3449     u_char   *statP,
3450     oid      *name,
3451     int      name_len)
3452 {
3453     return SNMP_ERR_NOERROR;
3454 }
3455
3456 static int
3457 write_netConfigSubnetMask_stub(int action,
3458     u_char   *var_val,
3459     u_char   var_val_type,
3460     int      var_val_len,
3461     u_char   *statP,
3462     oid      *name,
3463     int      name_len)
3464 {
3465     return SNMP_ERR_NOERROR;
3466 }
3467
3468 static int
3469 write_netConfigStatus_stub(int action,
3470     u_char   *var_val,
3471     u_char   var_val_type,
3472     int      var_val_len,
3473     u_char   *statP,
3474     oid      *name,
3475     int      name_len)
3476 {
3477     return SNMP_ERR_NOERROR;
3478 }
3479
3480 static int
3481 write_netDefaultGateway_stub(int action,
3482     u_char   *var_val,
3483     u_char   var_val_type,
3484     int      var_val_len,
3485     u_char   *statP,
3486     oid      *name,
3487     int      name_len)
3488 {
3489     return SNMP_ERR_NOERROR;
3490 }
3491
3492 static int
3493 write_trapDestCommunity_stub(int action,
3494     u_char   *var_val,
3495     u_char   var_val_type,
3496     int      var_val_len,
3497     u_char   *statP,
3498     oid      *name,
3499     int      name_len)
3500 {
3501     return SNMP_ERR_NOERROR;
3502 }
3503
3504 static int
3505 write_trapDestProtocol_stub(int action,
3506     u_char   *var_val,
3507     u_char   var_val_type,
3508     int      var_val_len,
3509     u_char   *statP,
3510     oid      *name,
3511     int      name_len)
3512 {
3513     return SNMP_ERR_NOERROR;
3514 }
3515
3516 static int
3517 write_trapDestAddress_stub(int action,
3518     u_char   *var_val,
3519     u_char   var_val_type,
3520     int      var_val_len,
3521     u_char   *statP,
3522     oid      *name,
3523     int      name_len)
3524 {
3525     return SNMP_ERR_NOERROR;
3526 }
3527
3528 static int
3529 write_trapDestOwner_stub(int action,
3530     u_char   *var_val,
3531     u_char   var_val_type,
3532     int      var_val_len,
3533     u_char   *statP,
3534     oid      *name,
3535     int      name_len)
3536 {
3537     return SNMP_ERR_NOERROR;
3538 }
3539
3540 static int
3541 write_trapDestStatus_stub(int action,
3542     u_char   *var_val,
3543     u_char   var_val_type,
3544     int      var_val_len,
3545     u_char   *statP,
3546     oid      *name,
3547     int      name_len)
3548 {
3549     return SNMP_ERR_NOERROR;
3550 }
3551
3552 static int
3553 write_serialConnectDestIpAddress_stub(int action,
3554     u_char   *var_val,
3555     u_char   var_val_type,
3556     int      var_val_len,
3557     u_char   *statP,
3558     oid      *name,
3559     int      name_len)
3560 {
3561     return SNMP_ERR_NOERROR;
3562 }
3563
3564 static int
3565 write_serialConnectType_stub(int action,
3566     u_char   *var_val,
3567     u_char   var_val_type,
3568     int      var_val_len,
3569     u_char   *statP,
3570     oid      *name,
3571     int      name_len)
3572 {
3573     return SNMP_ERR_NOERROR;
3574 }
3575
3576 static int
3577 write_serialConnectDialString_stub(int action,
3578     u_char   *var_val,
3579     u_char   var_val_type,
3580     int      var_val_len,
3581     u_char   *statP,
3582     oid      *name,
3583     int      name_len)
3584 {
3585     return SNMP_ERR_NOERROR;
3586 }
3587
3588 static int
3589 write_serialConnectSwitchConnectSeq_stub(int action,
3590     u_char   *var_val,
3591     u_char   var_val_type,
3592     int      var_val_len,
3593     u_char   *statP,
3594     oid      *name,
3595     int      name_len)
3596 {
3597     return SNMP_ERR_NOERROR;
3598 }
3599
3600 static int
3601 write_serialConnectSwitchDisconnectSeq_stub(int action,
3602     u_char   *var_val,
3603     u_char   var_val_type,
3604     int      var_val_len,
3605     u_char   *statP,
3606     oid      *name,
3607     int      name_len)
3608 {
3609     return SNMP_ERR_NOERROR;
3610 }
3611
3612 static int
3613 write_serialConnectSwitchResetSeq_stub(int action,
3614     u_char   *var_val,
3615     u_char   var_val_type,
3616     int      var_val_len,
3617     u_char   *statP,
3618     oid      *name,
3619     int      name_len)
3620 {
3621     return SNMP_ERR_NOERROR;
3622 }
3623
3624 static int
3625 write_serialConnectOwner_stub(int action,
3626     u_char   *var_val,
3627     u_char   var_val_type,
3628     int      var_val_len,
3629     u_char   *statP,
3630     oid      *name,
3631     int      name_len)
3632 {
3633     return SNMP_ERR_NOERROR;
3634 }
3635
3636 static int
3637 write_serialConnectStatus_stub(int action,
3638     u_char   *var_val,
3639     u_char   var_val_type,
3640     int      var_val_len,
3641     u_char   *statP,
3642     oid      *name,
3643     int      name_len)
3644 {
3645     return SNMP_ERR_NOERROR;
3646 }
3647
3648