Debian Codegraph @

agent/mibgroup/if-mib/ifXTable/ifXTable.h

raw
1 /*
2 * Note: this file originally auto-generated by mib2c using
3 * version : 1.48 $ of : mfd-top.m2c,v $
4 *
5 * $Id$
6 */
7 #ifndef IFXTABLE_H
8 #define IFXTABLE_H
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14
15 /** @addtogroup misc misc: Miscellaneous routines
16 *
17 * @{
18 */
19 #include <net-snmp/library/asn1.h>
20 #include <net-snmp/data_access/interface.h>
21
22 #include "if-mib/ifTable/ifTable.h"
23
24 /*
25 * other required module components
26 */
27 /* *INDENT-OFF* */
28 config_require(if-mib/ifTable/ifTable);
29 config_require(if-mib/ifXTable/ifXTable_interface);
30 config_require(if-mib/ifXTable/ifXTable_data_access);
31 /* *INDENT-ON* */
32
33 /*
34 * OID, column number and enum definions for ifXTable
35 */
36 #include "ifXTable_constants.h"
37
38 /*
39 *********************************************************************
40 * function declarations
41 */
42 void init_ifXTable(void);
43 void initialize_table_ifXTable(void);
44 void shutdown_ifXTable(void);
45
46 /*
47 *********************************************************************
48 * Table declarations
49 */
50 /**********************************************************************
51 **********************************************************************
52 ***
53 *** Table ifXTable
54 ***
55 **********************************************************************
56 **********************************************************************/
57 /*
58 * IF-MIB::ifXTable is subid 1 of ifMIBObjects.
59 * Its status is Current.
60 * OID: .1.3.6.1.2.1.31.1.1, length: 9
61 *
62 * we share data structures (data too, in fact) with ifTable
63 */
64
65 typedef ifTable_registration ifXTable_registration;
66 typedef ifTable_data ifXTable_data;
67 typedef ifTable_undo_data ifXTable_undo_data;
68 typedef ifTable_mib_index ifXTable_mib_index;
69 typedef ifTable_rowreq_ctx ifXTable_rowreq_ctx;
70 typedef ifTable_ref_rowreq_ctx ifXTable_ref_rowreq_ctx;
71
72 #define ifXTable_data_list ifTable_data_list
73 #define ifXTable_reg ifTable_reg
74
75 /*
76 *********************************************************************
77 * function prototypes
78 */
79 int ifXTable_pre_request(ifXTable_registration *
80 user_context);
81 int ifXTable_post_request(ifXTable_registration *
82 user_context, int rc);
83
84 int ifXTable_rowreq_ctx_init(ifXTable_rowreq_ctx *
85 rowreq_ctx,
86 void *user_init_ctx);
87 void ifXTable_rowreq_ctx_cleanup(ifXTable_rowreq_ctx *
88 rowreq_ctx);
89
90 int ifXTable_check_dependencies(ifXTable_rowreq_ctx *
91 rowreq_ctx);
92 int ifXTable_commit(ifXTable_rowreq_ctx * rowreq_ctx);
93
94 ifXTable_rowreq_ctx *ifXTable_row_find_by_mib_index(ifXTable_mib_index
95 * mib_idx);
96
97 extern const oid ifXTable_oid[];
98 extern const int ifXTable_oid_size;
99
100
101 #include "ifXTable_interface.h"
102 #include "ifXTable_data_access.h"
103 /*
104 *********************************************************************
105 * GET function declarations
106 */
107
108 /*
109 *********************************************************************
110 * GET Table declarations
111 */
112 /**********************************************************************
113 **********************************************************************
114 ***
115 *** Table ifXTable
116 ***
117 **********************************************************************
118 **********************************************************************/
119 /*
120 * IF-MIB::ifXTable is subid 1 of ifMIBObjects.
121 * Its status is Current.
122 * OID: .1.3.6.1.2.1.31.1.1, length: 9
123 */
124 /*
125 * indexes
126 */
127
128 int ifName_get(ifXTable_rowreq_ctx * rowreq_ctx,
129 char **ifName_val_ptr_ptr,
130 size_t * ifName_val_ptr_len_ptr);
131 int ifInMulticastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
132 u_long *
133 ifInMulticastPkts_val_ptr);
134 int ifInBroadcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
135 u_long *
136 ifInBroadcastPkts_val_ptr);
137 int ifOutMulticastPkts_get(ifXTable_rowreq_ctx *
138 rowreq_ctx,
139 u_long *
140 ifOutMulticastPkts_val_ptr);
141 int ifOutBroadcastPkts_get(ifXTable_rowreq_ctx *
142 rowreq_ctx,
143 u_long *
144 ifOutBroadcastPkts_val_ptr);
145 int ifHCInOctets_get(ifXTable_rowreq_ctx * rowreq_ctx,
146 struct counter64 *ifHCInOctets_val_ptr);
147 int ifHCInUcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
148 struct counter64 *ifHCInUcastPkts_val_ptr);
149 int ifHCInMulticastPkts_get(ifXTable_rowreq_ctx *
150 rowreq_ctx,
151 struct counter64 *
152 ifHCInMulticastPkts_val_ptr);
153 int ifHCInBroadcastPkts_get(ifXTable_rowreq_ctx *
154 rowreq_ctx,
155 struct counter64 *
156 ifHCInBroadcastPkts_val_ptr);
157 int ifHCOutOctets_get(ifXTable_rowreq_ctx * rowreq_ctx,
158 struct counter64 *ifHCOutOctets_val_ptr);
159 int ifHCOutUcastPkts_get(ifXTable_rowreq_ctx * rowreq_ctx,
160 struct counter64 *ifHCOutUcastPkts_val_ptr);
161 int ifHCOutMulticastPkts_get(ifXTable_rowreq_ctx *
162 rowreq_ctx,
163 struct counter64 *
164 ifHCOutMulticastPkts_val_ptr);
165 int ifHCOutBroadcastPkts_get(ifXTable_rowreq_ctx *
166 rowreq_ctx,
167 struct counter64 *
168 ifHCOutBroadcastPkts_val_ptr);
169 int ifLinkUpDownTrapEnable_get(ifXTable_rowreq_ctx *
170 rowreq_ctx,
171 u_long *
172 ifLinkUpDownTrapEnable_val_ptr);
173 int ifHighSpeed_get(ifXTable_rowreq_ctx * rowreq_ctx,
174 u_long * ifHighSpeed_val_ptr);
175 int ifPromiscuousMode_get(ifXTable_rowreq_ctx * rowreq_ctx,
176 u_long *
177 ifPromiscuousMode_val_ptr);
178 int ifConnectorPresent_get(ifXTable_rowreq_ctx *
179 rowreq_ctx,
180 u_long *
181 ifConnectorPresent_val_ptr);
182 int ifAlias_get(ifXTable_rowreq_ctx * rowreq_ctx,
183 char **ifAlias_val_ptr_ptr,
184 size_t * ifAlias_val_ptr_len_ptr);
185 int ifCounterDiscontinuityTime_get(ifXTable_rowreq_ctx *
186 rowreq_ctx,
187 u_long *
188 ifCounterDiscontinuityTime_val_ptr);
189
190
191 int ifXTable_indexes_set_tbl_idx(ifXTable_mib_index *
192 tbl_idx,
193 long ifIndex_val);
194 int ifXTable_indexes_set(ifXTable_rowreq_ctx * rowreq_ctx,
195 long ifIndex_val);
196
197
198
199 /*
200 *********************************************************************
201 * SET function declarations
202 */
203
204 /*
205 *********************************************************************
206 * SET Table declarations
207 */
208 /**********************************************************************
209 **********************************************************************
210 ***
211 *** Table ifXTable
212 ***
213 **********************************************************************
214 **********************************************************************/
215 /*
216 * IF-MIB::ifXTable is subid 1 of ifMIBObjects.
217 * Its status is Current.
218 * OID: .1.3.6.1.2.1.31.1.1, length: 9
219 */
220
221 #ifndef NETSNMP_NO_WRITE_SUPPORT
222 int ifXTable_undo_setup(ifXTable_rowreq_ctx * rowreq_ctx);
223 int ifXTable_undo_cleanup(ifXTable_rowreq_ctx *
224 rowreq_ctx);
225 int ifXTable_undo(ifXTable_rowreq_ctx * rowreq_ctx);
226 int ifXTable_undo_commit(ifXTable_rowreq_ctx * rowreq_ctx);
227
228
229 int ifName_check_value(ifXTable_rowreq_ctx * rowreq_ctx,
230 char *ifName_val_ptr,
231 size_t ifName_val_ptr_len);
232 int ifName_undo_setup(ifXTable_rowreq_ctx * rowreq_ctx);
233 int ifName_set(ifXTable_rowreq_ctx * rowreq_ctx,
234 char *ifName_val_ptr,
235 size_t ifName_val_ptr_len);
236 int ifName_undo(ifXTable_rowreq_ctx * rowreq_ctx);
237
238 int ifInMulticastPkts_check_value(ifXTable_rowreq_ctx *
239 rowreq_ctx,
240 u_long
241 ifInMulticastPkts_val);
242 int ifInMulticastPkts_undo_setup(ifXTable_rowreq_ctx *
243 rowreq_ctx);
244 int ifInMulticastPkts_set(ifXTable_rowreq_ctx * rowreq_ctx,
245 u_long ifInMulticastPkts_val);
246 int ifInMulticastPkts_undo(ifXTable_rowreq_ctx *
247 rowreq_ctx);
248
249 int ifInBroadcastPkts_check_value(ifXTable_rowreq_ctx *
250 rowreq_ctx,
251 u_long
252 ifInBroadcastPkts_val);
253 int ifInBroadcastPkts_undo_setup(ifXTable_rowreq_ctx *
254 rowreq_ctx);
255 int ifInBroadcastPkts_set(ifXTable_rowreq_ctx * rowreq_ctx,
256 u_long ifInBroadcastPkts_val);
257 int ifInBroadcastPkts_undo(ifXTable_rowreq_ctx *
258 rowreq_ctx);
259
260 int ifOutMulticastPkts_check_value(ifXTable_rowreq_ctx *
261 rowreq_ctx,
262 u_long
263 ifOutMulticastPkts_val);
264 int ifOutMulticastPkts_undo_setup(ifXTable_rowreq_ctx *
265 rowreq_ctx);
266 int ifOutMulticastPkts_set(ifXTable_rowreq_ctx *
267 rowreq_ctx,
268 u_long ifOutMulticastPkts_val);
269 int ifOutMulticastPkts_undo(ifXTable_rowreq_ctx *
270 rowreq_ctx);
271
272 int ifOutBroadcastPkts_check_value(ifXTable_rowreq_ctx *
273 rowreq_ctx,
274 u_long
275 ifOutBroadcastPkts_val);
276 int ifOutBroadcastPkts_undo_setup(ifXTable_rowreq_ctx *
277 rowreq_ctx);
278 int ifOutBroadcastPkts_set(ifXTable_rowreq_ctx *
279 rowreq_ctx,
280 u_long ifOutBroadcastPkts_val);
281 int ifOutBroadcastPkts_undo(ifXTable_rowreq_ctx *
282 rowreq_ctx);
283
284 int ifHCInOctets_check_value(ifXTable_rowreq_ctx *
285 rowreq_ctx,
286 struct counter64 ifHCInOctets_val);
287 int ifHCInOctets_undo_setup(ifXTable_rowreq_ctx *
288 rowreq_ctx);
289 int ifHCInOctets_set(ifXTable_rowreq_ctx * rowreq_ctx,
290 struct counter64 ifHCInOctets_val);
291 int ifHCInOctets_undo(ifXTable_rowreq_ctx * rowreq_ctx);
292
293 int ifHCInUcastPkts_check_value(ifXTable_rowreq_ctx *
294 rowreq_ctx,
295 struct counter64 ifHCInUcastPkts_val);
296 int ifHCInUcastPkts_undo_setup(ifXTable_rowreq_ctx *
297 rowreq_ctx);
298 int ifHCInUcastPkts_set(ifXTable_rowreq_ctx * rowreq_ctx,
299 struct counter64 ifHCInUcastPkts_val);
300 int ifHCInUcastPkts_undo(ifXTable_rowreq_ctx * rowreq_ctx);
301
302 int ifHCInMulticastPkts_check_value(ifXTable_rowreq_ctx *
303 rowreq_ctx,
304 struct counter64
305 ifHCInMulticastPkts_val);
306 int ifHCInMulticastPkts_undo_setup(ifXTable_rowreq_ctx *
307 rowreq_ctx);
308 int ifHCInMulticastPkts_set(ifXTable_rowreq_ctx *
309 rowreq_ctx,
310 struct counter64 ifHCInMulticastPkts_val);
311 int ifHCInMulticastPkts_undo(ifXTable_rowreq_ctx *
312 rowreq_ctx);
313
314 int ifHCInBroadcastPkts_check_value(ifXTable_rowreq_ctx *
315 rowreq_ctx,
316 struct counter64
317 ifHCInBroadcastPkts_val);
318 int ifHCInBroadcastPkts_undo_setup(ifXTable_rowreq_ctx *
319 rowreq_ctx);
320 int ifHCInBroadcastPkts_set(ifXTable_rowreq_ctx *
321 rowreq_ctx,
322 struct counter64 ifHCInBroadcastPkts_val);
323 int ifHCInBroadcastPkts_undo(ifXTable_rowreq_ctx *
324 rowreq_ctx);
325
326 int ifHCOutOctets_check_value(ifXTable_rowreq_ctx *
327 rowreq_ctx,
328 struct counter64 ifHCOutOctets_val);
329 int ifHCOutOctets_undo_setup(ifXTable_rowreq_ctx *
330 rowreq_ctx);
331 int ifHCOutOctets_set(ifXTable_rowreq_ctx * rowreq_ctx,
332 struct counter64 ifHCOutOctets_val);
333 int ifHCOutOctets_undo(ifXTable_rowreq_ctx * rowreq_ctx);
334
335 int ifHCOutUcastPkts_check_value(ifXTable_rowreq_ctx *
336 rowreq_ctx,
337 struct counter64 ifHCOutUcastPkts_val);
338 int ifHCOutUcastPkts_undo_setup(ifXTable_rowreq_ctx *
339 rowreq_ctx);
340 int ifHCOutUcastPkts_set(ifXTable_rowreq_ctx * rowreq_ctx,
341 struct counter64 ifHCOutUcastPkts_val);
342 int ifHCOutUcastPkts_undo(ifXTable_rowreq_ctx *
343 rowreq_ctx);
344
345 int ifHCOutMulticastPkts_check_value(ifXTable_rowreq_ctx *
346 rowreq_ctx,
347 struct counter64
348 ifHCOutMulticastPkts_val);
349 int ifHCOutMulticastPkts_undo_setup(ifXTable_rowreq_ctx *
350 rowreq_ctx);
351 int ifHCOutMulticastPkts_set(ifXTable_rowreq_ctx *
352 rowreq_ctx,
353 struct counter64 ifHCOutMulticastPkts_val);
354 int ifHCOutMulticastPkts_undo(ifXTable_rowreq_ctx *
355 rowreq_ctx);
356
357 int ifHCOutBroadcastPkts_check_value(ifXTable_rowreq_ctx *
358 rowreq_ctx,
359 struct counter64
360 ifHCOutBroadcastPkts_val);
361 int ifHCOutBroadcastPkts_undo_setup(ifXTable_rowreq_ctx *
362 rowreq_ctx);
363 int ifHCOutBroadcastPkts_set(ifXTable_rowreq_ctx *
364 rowreq_ctx,
365 struct counter64 ifHCOutBroadcastPkts_val);
366 int ifHCOutBroadcastPkts_undo(ifXTable_rowreq_ctx *
367 rowreq_ctx);
368
369 int ifLinkUpDownTrapEnable_check_value(ifXTable_rowreq_ctx
370 * rowreq_ctx,
371 u_long
372 ifLinkUpDownTrapEnable_val);
373 int ifLinkUpDownTrapEnable_undo_setup(ifXTable_rowreq_ctx *
374 rowreq_ctx);
375 int ifLinkUpDownTrapEnable_set(ifXTable_rowreq_ctx *
376 rowreq_ctx,
377 u_long
378 ifLinkUpDownTrapEnable_val);
379 int ifLinkUpDownTrapEnable_undo(ifXTable_rowreq_ctx *
380 rowreq_ctx);
381
382 int ifHighSpeed_check_value(ifXTable_rowreq_ctx *
383 rowreq_ctx,
384 u_long ifHighSpeed_val);
385 int ifHighSpeed_undo_setup(ifXTable_rowreq_ctx *
386 rowreq_ctx);
387 int ifHighSpeed_set(ifXTable_rowreq_ctx * rowreq_ctx,
388 u_long ifHighSpeed_val);
389 int ifHighSpeed_undo(ifXTable_rowreq_ctx * rowreq_ctx);
390
391 int ifPromiscuousMode_check_value(ifXTable_rowreq_ctx *
392 rowreq_ctx,
393 u_long
394 ifPromiscuousMode_val);
395 int ifPromiscuousMode_undo_setup(ifXTable_rowreq_ctx *
396 rowreq_ctx);
397 int ifPromiscuousMode_set(ifXTable_rowreq_ctx * rowreq_ctx,
398 u_long ifPromiscuousMode_val);
399 int ifPromiscuousMode_undo(ifXTable_rowreq_ctx *
400 rowreq_ctx);
401
402 int ifConnectorPresent_check_value(ifXTable_rowreq_ctx *
403 rowreq_ctx,
404 u_long
405 ifConnectorPresent_val);
406 int ifConnectorPresent_undo_setup(ifXTable_rowreq_ctx *
407 rowreq_ctx);
408 int ifConnectorPresent_set(ifXTable_rowreq_ctx *
409 rowreq_ctx,
410 u_long ifConnectorPresent_val);
411 int ifConnectorPresent_undo(ifXTable_rowreq_ctx *
412 rowreq_ctx);
413
414 int ifAlias_check_value(ifXTable_rowreq_ctx * rowreq_ctx,
415 char *ifAlias_val_ptr,
416 size_t ifAlias_val_ptr_len);
417 int ifAlias_undo_setup(ifXTable_rowreq_ctx * rowreq_ctx);
418 int ifAlias_set(ifXTable_rowreq_ctx * rowreq_ctx,
419 char *ifAlias_val_ptr,
420 size_t ifAlias_val_ptr_len);
421 int ifAlias_undo(ifXTable_rowreq_ctx * rowreq_ctx);
422
423 int
424 ifCounterDiscontinuityTime_check_value(ifXTable_rowreq_ctx *
425 rowreq_ctx,
426 u_long
427 ifCounterDiscontinuityTime_val);
428 int
429 ifCounterDiscontinuityTime_undo_setup(ifXTable_rowreq_ctx *
430 rowreq_ctx);
431 int ifCounterDiscontinuityTime_set(ifXTable_rowreq_ctx *
432 rowreq_ctx,
433 u_long
434 ifCounterDiscontinuityTime_val);
435 int ifCounterDiscontinuityTime_undo(ifXTable_rowreq_ctx *
436 rowreq_ctx);
437 #endif /* !NETSNMP_NO_WRITE_SUPPORT */
438
439 /*
440 * DUMMY markers, ignore
441 *
442 * TODO:099:x: *************************************************************
443 * TODO:199:x: *************************************************************
444 * TODO:299:x: *************************************************************
445 * TODO:399:x: *************************************************************
446 * TODO:499:x: *************************************************************
447 */
448
449 #ifdef __cplusplus
450 }
451 #endif
452 #endif /* IFXTABLE_H */
453 /** @} */
454