Debian Codegraph @

agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.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 IPSYSTEMSTATSTABLE_H
8 #define IPSYSTEMSTATSTABLE_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/ipstats.h>
21 #include <net-snmp/data_access/systemstats.h>
22
23 /*
24 * other required module components
25 */
26 /* *INDENT-OFF* */
27 config_require(ip-mib/data_access/systemstats);
28 config_require(ip-mib/ipSystemStatsTable/ipSystemStatsTable_interface);
29 config_require(ip-mib/ipSystemStatsTable/ipSystemStatsTable_data_access);
30 /* *INDENT-ON* */
31
32 /*
33 * OID, column number and enum definions for ipSystemStatsTable
34 */
35 #include "ipSystemStatsTable_constants.h"
36
37 /*
38 *********************************************************************
39 * function declarations
40 */
41 void init_ipSystemStatsTable(void);
42 void shutdown_ipSystemStatsTable(void);
43
44 /*
45 *********************************************************************
46 * Table declarations
47 */
48 /**********************************************************************
49 **********************************************************************
50 ***
51 *** Table ipSystemStatsTable
52 ***
53 **********************************************************************
54 **********************************************************************/
55 /*
56 * IP-MIB::ipSystemStatsTable is subid 1 of ipTrafficStats.
57 * Its status is Current.
58 * OID: .1.3.6.1.2.1.4.31.1, length: 9
59 */
60 /*
61 *********************************************************************
62 * When you register your mib, you get to provide a generic
63 * pointer that will be passed back to you for most of the
64 * functions calls.
65 *
66 * TODO:100:r: Review all context structures
67 */
68 /*
69 * TODO:101:o: |-> Review ipSystemStatsTable registration context.
70 */
71 typedef netsnmp_data_list ipSystemStatsTable_registration;
72
73 /**********************************************************************/
74 /*
75 * TODO:110:r: |-> Review ipSystemStatsTable data context structure.
76 * This structure is used to represent the data for ipSystemStatsTable.
77 */
78 typedef netsnmp_systemstats_entry ipSystemStatsTable_data;
79
80
81 /*
82 * TODO:120:r: |-> Review ipSystemStatsTable mib index.
83 * This structure is used to represent the index for ipSystemStatsTable.
84 */
85 typedef struct ipSystemStatsTable_mib_index_s {
86
87 /*
88 * ipSystemStatsIPVersion(1)/InetVersion/ASN_INTEGER/long(u_long)//l/a/w/E/r/d/h
89 */
90 u_long ipSystemStatsIPVersion;
91
92
93 } ipSystemStatsTable_mib_index;
94
95 /*
96 * TODO:121:r: | |-> Review ipSystemStatsTable max index length.
97 * If you KNOW that your indexes will never exceed a certain
98 * length, update this macro to that length.
99 */
100 #define MAX_ipSystemStatsTable_IDX_LEN 1
101
102
103 /*
104 *********************************************************************
105 * TODO:130:o: |-> Review ipSystemStatsTable Row request (rowreq) context.
106 * When your functions are called, you will be passed a
107 * ipSystemStatsTable_rowreq_ctx pointer.
108 */
109 typedef struct ipSystemStatsTable_rowreq_ctx_s {
110
111 /** this must be first for container compare to work */
112 netsnmp_index oid_idx;
113 oid oid_tmp[MAX_ipSystemStatsTable_IDX_LEN];
114
115 ipSystemStatsTable_mib_index tbl_idx;
116
117 ipSystemStatsTable_data *data;
118
119 /*
120 * flags per row. Currently, the first (lower) 8 bits are reserved
121 * for the user. See mfd.h for other flags.
122 */
123 u_int rowreq_flags;
124
125 /*
126 * TODO:131:o: | |-> Add useful data to ipSystemStatsTable rowreq context.
127 */
128 char known_missing;
129 uint32_t ipSystemStatsDiscontinuityTime;
130 uint32_t ipSystemStatsRefreshRate;
131
132 /*
133 * storage for future expansion
134 */
135 netsnmp_data_list *ipSystemStatsTable_data_list;
136
137 } ipSystemStatsTable_rowreq_ctx;
138
139 typedef struct ipSystemStatsTable_ref_rowreq_ctx_s {
140 ipSystemStatsTable_rowreq_ctx *rowreq_ctx;
141 } ipSystemStatsTable_ref_rowreq_ctx;
142
143 /*
144 *********************************************************************
145 * function prototypes
146 */
147 int ipSystemStatsTable_pre_request(ipSystemStatsTable_registration *
148 user_context);
149 int ipSystemStatsTable_post_request(ipSystemStatsTable_registration *
150 user_context, int rc);
151
152 int ipSystemStatsTable_rowreq_ctx_init(ipSystemStatsTable_rowreq_ctx *
153 rowreq_ctx,
154 void *user_init_ctx);
155 void
156 ipSystemStatsTable_rowreq_ctx_cleanup(ipSystemStatsTable_rowreq_ctx
157 * rowreq_ctx);
158
159 ipSystemStatsTable_data *ipSystemStatsTable_allocate_data(void);
160 void ipSystemStatsTable_release_data(ipSystemStatsTable_data
161 * data);
162 ipSystemStatsTable_rowreq_ctx
163 * ipSystemStatsTable_row_find_by_mib_index
164 (ipSystemStatsTable_mib_index * mib_idx);
165
166 extern const oid ipSystemStatsTable_oid[];
167 extern const int ipSystemStatsTable_oid_size;
168
169
170 #include "ipSystemStatsTable_interface.h"
171 #include "ipSystemStatsTable_data_access.h"
172 /*
173 *********************************************************************
174 * GET function declarations
175 */
176
177 /*
178 *********************************************************************
179 * GET Table declarations
180 */
181 /**********************************************************************
182 **********************************************************************
183 ***
184 *** Table ipSystemStatsTable
185 ***
186 **********************************************************************
187 **********************************************************************/
188 /*
189 * IP-MIB::ipSystemStatsTable is subid 1 of ipTrafficStats.
190 * Its status is Current.
191 * OID: .1.3.6.1.2.1.4.31.1, length: 9
192 */
193 /*
194 * indexes
195 */
196
197 int ipSystemStatsInReceives_get(ipSystemStatsTable_rowreq_ctx *
198 rowreq_ctx,
199 u_long *
200 ipSystemStatsInReceives_val_ptr);
201 int ipSystemStatsHCInReceives_get(ipSystemStatsTable_rowreq_ctx *
202 rowreq_ctx,
203 struct counter64 *
204 ipSystemStatsHCInReceives_val_ptr);
205 int ipSystemStatsInOctets_get(ipSystemStatsTable_rowreq_ctx
206 * rowreq_ctx,
207 u_long *
208 ipSystemStatsInOctets_val_ptr);
209 int ipSystemStatsHCInOctets_get(ipSystemStatsTable_rowreq_ctx *
210 rowreq_ctx,
211 struct counter64 *ipSystemStatsHCInOctets_val_ptr);
212 int ipSystemStatsInHdrErrors_get(ipSystemStatsTable_rowreq_ctx *
213 rowreq_ctx,
214 u_long *
215 ipSystemStatsInHdrErrors_val_ptr);
216 int ipSystemStatsInNoRoutes_get(ipSystemStatsTable_rowreq_ctx *
217 rowreq_ctx,
218 u_long *
219 ipSystemStatsInNoRoutes_val_ptr);
220 int ipSystemStatsInAddrErrors_get(ipSystemStatsTable_rowreq_ctx *
221 rowreq_ctx,
222 u_long *
223 ipSystemStatsInAddrErrors_val_ptr);
224 int ipSystemStatsInUnknownProtos_get(ipSystemStatsTable_rowreq_ctx *
225 rowreq_ctx,
226 u_long *
227 ipSystemStatsInUnknownProtos_val_ptr);
228 int ipSystemStatsInTruncatedPkts_get(ipSystemStatsTable_rowreq_ctx *
229 rowreq_ctx,
230 u_long *
231 ipSystemStatsInTruncatedPkts_val_ptr);
232 int ipSystemStatsInForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
233 rowreq_ctx,
234 u_long *
235 ipSystemStatsInForwDatagrams_val_ptr);
236 int ipSystemStatsHCInForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
237 rowreq_ctx,
238 struct counter64 *
239 ipSystemStatsHCInForwDatagrams_val_ptr);
240 int ipSystemStatsReasmReqds_get(ipSystemStatsTable_rowreq_ctx *
241 rowreq_ctx,
242 u_long *
243 ipSystemStatsReasmReqds_val_ptr);
244 int ipSystemStatsReasmOKs_get(ipSystemStatsTable_rowreq_ctx
245 * rowreq_ctx,
246 u_long *
247 ipSystemStatsReasmOKs_val_ptr);
248 int ipSystemStatsReasmFails_get(ipSystemStatsTable_rowreq_ctx *
249 rowreq_ctx,
250 u_long *
251 ipSystemStatsReasmFails_val_ptr);
252 int ipSystemStatsInDiscards_get(ipSystemStatsTable_rowreq_ctx *
253 rowreq_ctx,
254 u_long *
255 ipSystemStatsInDiscards_val_ptr);
256 int ipSystemStatsInDelivers_get(ipSystemStatsTable_rowreq_ctx *
257 rowreq_ctx,
258 u_long *
259 ipSystemStatsInDelivers_val_ptr);
260 int ipSystemStatsHCInDelivers_get(ipSystemStatsTable_rowreq_ctx *
261 rowreq_ctx,
262 struct counter64 *
263 ipSystemStatsHCInDelivers_val_ptr);
264 int ipSystemStatsOutRequests_get(ipSystemStatsTable_rowreq_ctx *
265 rowreq_ctx,
266 u_long *
267 ipSystemStatsOutRequests_val_ptr);
268 int ipSystemStatsHCOutRequests_get(ipSystemStatsTable_rowreq_ctx *
269 rowreq_ctx,
270 struct counter64 *
271 ipSystemStatsHCOutRequests_val_ptr);
272 int ipSystemStatsOutNoRoutes_get(ipSystemStatsTable_rowreq_ctx *
273 rowreq_ctx,
274 u_long *
275 ipSystemStatsOutNoRoutes_val_ptr);
276 int ipSystemStatsOutForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
277 rowreq_ctx,
278 u_long *
279 ipSystemStatsOutForwDatagrams_val_ptr);
280 int ipSystemStatsHCOutForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
281 rowreq_ctx,
282 struct counter64 *
283 ipSystemStatsHCOutForwDatagrams_val_ptr);
284 int ipSystemStatsOutDiscards_get(ipSystemStatsTable_rowreq_ctx *
285 rowreq_ctx,
286 u_long *
287 ipSystemStatsOutDiscards_val_ptr);
288 int ipSystemStatsOutFragReqds_get(ipSystemStatsTable_rowreq_ctx *
289 rowreq_ctx,
290 u_long *
291 ipSystemStatsOutFragReqds_val_ptr);
292 int ipSystemStatsOutFragOKs_get(ipSystemStatsTable_rowreq_ctx *
293 rowreq_ctx,
294 u_long *
295 ipSystemStatsOutFragOKs_val_ptr);
296 int ipSystemStatsOutFragFails_get(ipSystemStatsTable_rowreq_ctx *
297 rowreq_ctx,
298 u_long *
299 ipSystemStatsOutFragFails_val_ptr);
300 int ipSystemStatsOutFragCreates_get(ipSystemStatsTable_rowreq_ctx *
301 rowreq_ctx,
302 u_long *
303 ipSystemStatsOutFragCreates_val_ptr);
304 int ipSystemStatsOutTransmits_get(ipSystemStatsTable_rowreq_ctx *
305 rowreq_ctx,
306 u_long *
307 ipSystemStatsOutTransmits_val_ptr);
308 int ipSystemStatsHCOutTransmits_get(ipSystemStatsTable_rowreq_ctx *
309 rowreq_ctx,
310 struct counter64 *
311 ipSystemStatsHCOutTransmits_val_ptr);
312 int ipSystemStatsOutOctets_get(ipSystemStatsTable_rowreq_ctx *
313 rowreq_ctx,
314 u_long *
315 ipSystemStatsOutOctets_val_ptr);
316 int ipSystemStatsHCOutOctets_get(ipSystemStatsTable_rowreq_ctx *
317 rowreq_ctx,
318 struct counter64 *
319 ipSystemStatsHCOutOctets_val_ptr);
320 int ipSystemStatsInMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
321 rowreq_ctx,
322 u_long *
323 ipSystemStatsInMcastPkts_val_ptr);
324 int ipSystemStatsHCInMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
325 rowreq_ctx,
326 struct counter64 *
327 ipSystemStatsHCInMcastPkts_val_ptr);
328 int ipSystemStatsInMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
329 rowreq_ctx,
330 u_long *
331 ipSystemStatsInMcastOctets_val_ptr);
332 int ipSystemStatsHCInMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
333 rowreq_ctx,
334 struct counter64 *
335 ipSystemStatsHCInMcastOctets_val_ptr);
336 int ipSystemStatsOutMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
337 rowreq_ctx,
338 u_long *
339 ipSystemStatsOutMcastPkts_val_ptr);
340 int ipSystemStatsHCOutMcastPkts_get(ipSystemStatsTable_rowreq_ctx *
341 rowreq_ctx,
342 struct counter64 *
343 ipSystemStatsHCOutMcastPkts_val_ptr);
344 int ipSystemStatsOutMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
345 rowreq_ctx,
346 u_long *
347 ipSystemStatsOutMcastOctets_val_ptr);
348 int ipSystemStatsHCOutMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
349 rowreq_ctx,
350 struct counter64 *
351 ipSystemStatsHCOutMcastOctets_val_ptr);
352 int ipSystemStatsInBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
353 rowreq_ctx,
354 u_long *
355 ipSystemStatsInBcastPkts_val_ptr);
356 int ipSystemStatsHCInBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
357 rowreq_ctx,
358 struct counter64 *
359 ipSystemStatsHCInBcastPkts_val_ptr);
360 int ipSystemStatsOutBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
361 rowreq_ctx,
362 u_long *
363 ipSystemStatsOutBcastPkts_val_ptr);
364 int ipSystemStatsHCOutBcastPkts_get(ipSystemStatsTable_rowreq_ctx *
365 rowreq_ctx,
366 struct counter64 *
367 ipSystemStatsHCOutBcastPkts_val_ptr);
368 int ipSystemStatsDiscontinuityTime_get(ipSystemStatsTable_rowreq_ctx *
369 rowreq_ctx,
370 u_long *
371 ipSystemStatsDiscontinuityTime_val_ptr);
372 int ipSystemStatsRefreshRate_get(ipSystemStatsTable_rowreq_ctx *
373 rowreq_ctx,
374 u_long *
375 ipSystemStatsRefreshRate_val_ptr);
376 int ipSystemStatsTable_indexes_set_tbl_idx(ipSystemStatsTable_mib_index
377 * tbl_idx,
378 u_long
379 ipSystemStatsIPVersion_val);
380 int ipSystemStatsTable_indexes_set(ipSystemStatsTable_rowreq_ctx *
381 rowreq_ctx,
382 u_long ipSystemStatsIPVersion_val);
383
384 /*
385 *********************************************************************
386 * SET function declarations
387 */
388
389 /*
390 *********************************************************************
391 * SET Table declarations
392 */
393
394
395 /*
396 * DUMMY markers, ignore
397 *
398 * TODO:099:x: *************************************************************
399 * TODO:199:x: *************************************************************
400 * TODO:299:x: *************************************************************
401 * TODO:399:x: *************************************************************
402 * TODO:499:x: *************************************************************
403 */
404
405 #ifdef __cplusplus
406 }
407 #endif
408 #endif /* IPSYSTEMSTATSTABLE_H */
409 /** @} */
410