Debian Codegraph @

agent/mibgroup/ip-mib/inetNetToMediaTable/inetNetToMediaTable.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 INETNETTOMEDIATABLE_H
8 #define INETNETTOMEDIATABLE_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/arp.h>
21
22 /*
23 * other required module components
24 */
25 /* *INDENT-OFF* */
26 config_require(ip-mib/data_access/arp);
27 config_require(ip-mib/inetNetToMediaTable/inetNetToMediaTable_interface);
28 config_require(ip-mib/inetNetToMediaTable/inetNetToMediaTable_data_access);
29 /* *INDENT-ON* */
30
31 /*
32 * OID, column number and enum definions for inetNetToMediaTable
33 */
34 #include "inetNetToMediaTable_constants.h"
35
36 /*
37 *********************************************************************
38 * function declarations
39 */
40 void init_inetNetToMediaTable(void);
41 void shutdown_inetNetToMediaTable(void);
42
43 /*
44 *********************************************************************
45 * Table declarations
46 */
47 /**********************************************************************
48 **********************************************************************
49 ***
50 *** Table inetNetToMediaTable
51 ***
52 **********************************************************************
53 **********************************************************************/
54 /*
55 * IP-MIB::inetNetToMediaTable is subid 35 of ip.
56 * Its status is Current.
57 * OID: .1.3.6.1.2.1.4.35, length: 8
58 */
59 /*
60 *********************************************************************
61 * When you register your mib, you get to provide a generic
62 * pointer that will be passed back to you for most of the
63 * functions calls.
64 *
65 * TODO:100:r: Review all context structures
66 */
67 /*
68 * TODO:101:o: |-> Review inetNetToMediaTable registration context.
69 */
70 typedef netsnmp_data_list inetNetToMediaTable_registration;
71
72 /**********************************************************************/
73 /*
74 * TODO:110:r: |-> Review inetNetToMediaTable data context structure.
75 * This structure is used to represent the data for inetNetToMediaTable.
76 */
77 typedef netsnmp_arp_entry inetNetToMediaTable_data;
78
79
80 /*
81 *********************************************************************
82 * TODO:115:o: |-> Review inetNetToMediaTable undo context.
83 * We're just going to use the same data structure for our
84 * undo_context. If you want to do something more efficent,
85 * define your typedef here.
86 */
87 typedef inetNetToMediaTable_data inetNetToMediaTable_undo_data;
88
89 /*
90 * TODO:120:r: |-> Review inetNetToMediaTable mib index.
91 * This structure is used to represent the index for inetNetToMediaTable.
92 */
93 typedef struct inetNetToMediaTable_mib_index_s {
94
95 /*
96 * inetNetToMediaIfIndex(1)/InterfaceIndex/ASN_INTEGER/long(long)//l/a/w/e/R/d/H
97 */
98 long inetNetToMediaIfIndex;
99
100 /*
101 * inetNetToMediaNetAddressType(2)/InetAddressType/ASN_INTEGER/long(u_long)//l/a/w/E/r/d/h
102 */
103 u_long inetNetToMediaNetAddressType;
104
105 /*
106 * inetNetToMediaNetAddress(3)/InetAddress/ASN_OCTET_STR/char(char)//L/a/w/e/R/d/h
107 */
108 /** 128 - 2(other indexes) - oid length(10) = 115 */
109 char inetNetToMediaNetAddress[115];
110 size_t inetNetToMediaNetAddress_len;
111
112
113 } inetNetToMediaTable_mib_index;
114
115 /*
116 * TODO:121:r: | |-> Review inetNetToMediaTable max index length.
117 * If you KNOW that your indexes will never exceed a certain
118 * length, update this macro to that length.
119 *
120 * BE VERY CAREFUL TO TAKE INTO ACCOUNT THE MAXIMUM
121 * POSSIBLE LENGHT FOR EVERY VARIABLE LENGTH INDEX!
122 * Guessing 128 - col/entry(2) - oid len(8)
123 */
124 #define MAX_inetNetToMediaTable_IDX_LEN 118
125
126
127 /*
128 *********************************************************************
129 * TODO:130:o: |-> Review inetNetToMediaTable Row request (rowreq) context.
130 * When your functions are called, you will be passed a
131 * inetNetToMediaTable_rowreq_ctx pointer.
132 */
133 typedef struct inetNetToMediaTable_rowreq_ctx_s {
134
135 /** this must be first for container compare to work */
136 netsnmp_index oid_idx;
137 oid oid_tmp[MAX_inetNetToMediaTable_IDX_LEN];
138
139 inetNetToMediaTable_mib_index tbl_idx;
140
141 inetNetToMediaTable_data *data;
142 inetNetToMediaTable_undo_data *undo;
143 unsigned int column_set_flags; /* flags for set columns */
144
145
146 /*
147 * flags per row. Currently, the first (lower) 8 bits are reserved
148 * for the user. See mfd.h for other flags.
149 */
150 u_int rowreq_flags;
151
152 /*
153 * TODO:131:o: | |-> Add useful data to inetNetToMediaTable rowreq context.
154 */
155 int inetNetToMediaRowStatus,
156 inetNetToMediaRowStatus_undo;
157
158 /*
159 * storage for future expansion
160 */
161 netsnmp_data_list *inetNetToMediaTable_data_list;
162
163 } inetNetToMediaTable_rowreq_ctx;
164
165 typedef struct inetNetToMediaTable_ref_rowreq_ctx_s {
166 inetNetToMediaTable_rowreq_ctx *rowreq_ctx;
167 } inetNetToMediaTable_ref_rowreq_ctx;
168
169 /*
170 *********************************************************************
171 * function prototypes
172 */
173 int
174 inetNetToMediaTable_pre_request(inetNetToMediaTable_registration *
175 user_context);
176 int
177 inetNetToMediaTable_post_request(inetNetToMediaTable_registration *
178 user_context, int rc);
179
180 int
181 inetNetToMediaTable_rowreq_ctx_init(inetNetToMediaTable_rowreq_ctx
182 * rowreq_ctx,
183 void *user_init_ctx);
184 void
185 inetNetToMediaTable_rowreq_ctx_cleanup
186 (inetNetToMediaTable_rowreq_ctx * rowreq_ctx);
187
188 inetNetToMediaTable_data *inetNetToMediaTable_allocate_data(void);
189 void
190 inetNetToMediaTable_release_data(inetNetToMediaTable_data * data);
191
192 int
193 inetNetToMediaTable_check_dependencies
194 (inetNetToMediaTable_rowreq_ctx * rowreq_ctx);
195
196 inetNetToMediaTable_rowreq_ctx *
197 inetNetToMediaTable_row_find_by_mib_index
198 (inetNetToMediaTable_mib_index * mib_idx);
199
200 extern const oid inetNetToMediaTable_oid[];
201 extern const int inetNetToMediaTable_oid_size;
202
203
204 #include "inetNetToMediaTable_interface.h"
205 #include "inetNetToMediaTable_data_access.h"
206 /*
207 *********************************************************************
208 * GET function declarations
209 */
210
211 /*
212 *********************************************************************
213 * GET Table declarations
214 */
215 /**********************************************************************
216 **********************************************************************
217 ***
218 *** Table inetNetToMediaTable
219 ***
220 **********************************************************************
221 **********************************************************************/
222 /*
223 * IP-MIB::inetNetToMediaTable is subid 35 of ip.
224 * Its status is Current.
225 * OID: .1.3.6.1.2.1.4.35, length: 8
226 */
227 /*
228 * indexes
229 */
230
231 int
232 inetNetToMediaPhysAddress_get(inetNetToMediaTable_rowreq_ctx *
233 rowreq_ctx, char
234 **inetNetToMediaPhysAddress_val_ptr_ptr,
235 size_t *
236 inetNetToMediaPhysAddress_val_ptr_len_ptr);
237 int
238 inetNetToMediaLastUpdated_get(inetNetToMediaTable_rowreq_ctx *
239 rowreq_ctx,
240 u_long *
241 inetNetToMediaLastUpdated_val_ptr);
242 int inetNetToMediaType_get(inetNetToMediaTable_rowreq_ctx *
243 rowreq_ctx,
244 u_long *
245 inetNetToMediaType_val_ptr);
246 int inetNetToMediaState_get(inetNetToMediaTable_rowreq_ctx
247 * rowreq_ctx,
248 u_long *
249 inetNetToMediaState_val_ptr);
250
251 int
252 inetNetToMediaRowStatus_get(inetNetToMediaTable_rowreq_ctx *
253 rowreq_ctx,
254 u_long *
255 inetNetToMediaRowStatus_val_ptr);
256
257 int
258 inetNetToMediaRowStatus_set(inetNetToMediaTable_rowreq_ctx *
259 rowreq_ctx,
260 u_long
261 inetNetToMediaRowStatus_val);
262
263
264 int
265 inetNetToMediaTable_indexes_set_tbl_idx
266 (inetNetToMediaTable_mib_index * tbl_idx,
267 long inetNetToMediaIfIndex_val,
268 u_long inetNetToMediaNetAddressType_val,
269 char *inetNetToMediaNetAddress_val_ptr,
270 size_t inetNetToMediaNetAddress_val_ptr_len);
271 int
272 inetNetToMediaTable_indexes_set(inetNetToMediaTable_rowreq_ctx *
273 rowreq_ctx,
274 long inetNetToMediaIfIndex_val,
275 u_long
276 inetNetToMediaNetAddressType_val,
277 char
278 *inetNetToMediaNetAddress_val_ptr,
279 size_t
280 inetNetToMediaNetAddress_val_ptr_len);
281
282
283
284 /*
285 *********************************************************************
286 * SET function declarations
287 */
288
289 /*
290 *********************************************************************
291 * SET Table declarations
292 */
293 /**********************************************************************
294 **********************************************************************
295 ***
296 *** Table inetNetToMediaTable
297 ***
298 **********************************************************************
299 **********************************************************************/
300 /*
301 * IP-MIB::inetNetToMediaTable is subid 35 of ip.
302 * Its status is Current.
303 * OID: .1.3.6.1.2.1.4.35, length: 8
304 */
305
306
307 int
308 inetNetToMediaTable_undo_setup(inetNetToMediaTable_rowreq_ctx *
309 rowreq_ctx);
310 int
311 inetNetToMediaTable_undo_cleanup(inetNetToMediaTable_rowreq_ctx *
312 rowreq_ctx);
313 int inetNetToMediaTable_undo(inetNetToMediaTable_rowreq_ctx
314 * rowreq_ctx);
315 int
316 inetNetToMediaTable_commit(inetNetToMediaTable_rowreq_ctx *
317 rowreq_ctx);
318 int
319 inetNetToMediaTable_undo_commit(inetNetToMediaTable_rowreq_ctx *
320 rowreq_ctx);
321
322
323 int
324 inetNetToMediaPhysAddress_check_value
325 (inetNetToMediaTable_rowreq_ctx * rowreq_ctx,
326 char *inetNetToMediaPhysAddress_val_ptr,
327 size_t inetNetToMediaPhysAddress_val_ptr_len);
328 int
329 inetNetToMediaPhysAddress_undo_setup(inetNetToMediaTable_rowreq_ctx
330 * rowreq_ctx);
331 int
332 inetNetToMediaPhysAddress_set(inetNetToMediaTable_rowreq_ctx *
333 rowreq_ctx, char
334 *inetNetToMediaPhysAddress_val_ptr,
335 size_t
336 inetNetToMediaPhysAddress_val_ptr_len);
337 int
338 inetNetToMediaPhysAddress_undo(inetNetToMediaTable_rowreq_ctx *
339 rowreq_ctx);
340
341 int
342 inetNetToMediaLastUpdated_check_value
343 (inetNetToMediaTable_rowreq_ctx * rowreq_ctx,
344 u_long inetNetToMediaLastUpdated_val);
345 int
346 inetNetToMediaLastUpdated_undo_setup(inetNetToMediaTable_rowreq_ctx
347 * rowreq_ctx);
348 int
349 inetNetToMediaLastUpdated_set(inetNetToMediaTable_rowreq_ctx *
350 rowreq_ctx,
351 u_long
352 inetNetToMediaLastUpdated_val);
353 int
354 inetNetToMediaLastUpdated_undo(inetNetToMediaTable_rowreq_ctx *
355 rowreq_ctx);
356
357 int
358 inetNetToMediaType_check_value(inetNetToMediaTable_rowreq_ctx *
359 rowreq_ctx,
360 u_long inetNetToMediaType_val);
361 int
362 inetNetToMediaType_undo_setup(inetNetToMediaTable_rowreq_ctx *
363 rowreq_ctx);
364 int inetNetToMediaType_set(inetNetToMediaTable_rowreq_ctx *
365 rowreq_ctx,
366 u_long inetNetToMediaType_val);
367 int inetNetToMediaType_undo(inetNetToMediaTable_rowreq_ctx
368 * rowreq_ctx);
369
370 int
371 inetNetToMediaState_check_value(inetNetToMediaTable_rowreq_ctx *
372 rowreq_ctx,
373 u_long inetNetToMediaState_val);
374 int
375 inetNetToMediaState_undo_setup(inetNetToMediaTable_rowreq_ctx *
376 rowreq_ctx);
377 int inetNetToMediaState_set(inetNetToMediaTable_rowreq_ctx
378 * rowreq_ctx,
379 u_long
380 inetNetToMediaState_val);
381 int inetNetToMediaState_undo(inetNetToMediaTable_rowreq_ctx
382 * rowreq_ctx);
383
384 int
385 inetNetToMediaRowStatus_check_value(inetNetToMediaTable_rowreq_ctx
386 * rowreq_ctx,
387 u_long
388 inetNetToMediaRowStatus_val);
389 int
390 inetNetToMediaRowStatus_undo_setup(inetNetToMediaTable_rowreq_ctx *
391 rowreq_ctx);
392 int
393 inetNetToMediaRowStatus_undo(inetNetToMediaTable_rowreq_ctx *
394 rowreq_ctx);
395
396 /*
397 * DUMMY markers, ignore
398 *
399 * TODO:099:x: *************************************************************
400 * TODO:199:x: *************************************************************
401 * TODO:299:x: *************************************************************
402 * TODO:399:x: *************************************************************
403 * TODO:499:x: *************************************************************
404 */
405
406 #ifdef __cplusplus
407 }
408 #endif
409 #endif /* INETNETTOMEDIATABLE_H */
410 /** @} */
411