Debian Codegraph @

agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.c

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 /** \page MFD helper for ipSystemStatsTable
8 *
9 * \section intro Introduction
10 * Introductory text.
11 *
12 */
13 /*
14 * standard Net-SNMP includes
15 */
16 #include <net-snmp/net-snmp-config.h>
17 #include <net-snmp/net-snmp-includes.h>
18 #include <net-snmp/agent/net-snmp-agent-includes.h>
19
20 /*
21 * include our parent header
22 */
23 #include "ipSystemStatsTable.h"
24
25 #include <net-snmp/agent/mib_modules.h>
26
27 #include "ipSystemStatsTable_interface.h"
28
29 const oid ipSystemStatsTable_oid[] = { IPSYSTEMSTATSTABLE_OID };
30 const int ipSystemStatsTable_oid_size =
31 OID_LENGTH(ipSystemStatsTable_oid);
32
33 ipSystemStatsTable_registration ipSystemStatsTable_user_context;
34 static ipSystemStatsTable_registration *ipSystemStatsTable_user_context_p;
35
36 void initialize_table_ipSystemStatsTable(void);
37 void shutdown_table_ipSystemStatsTable(void);
38
39
40 /**
41 * Initializes the ipSystemStatsTable module
42 */
43 void
44 init_ipSystemStatsTable(void)
45 {
46 DEBUGMSGTL(("verbose:ipSystemStatsTable:init_ipSystemStatsTable",
47 "called\n"));
48
49 /*
50 * TODO:300:o: Perform ipSystemStatsTable one-time module initialization.
51 */
52
53 /*
54 * here we initialize all the tables we're planning on supporting
55 */
56 if (should_init("ipSystemStatsTable"))
57 initialize_table_ipSystemStatsTable();
58
59 } /* init_ipSystemStatsTable */
60
61 /**
62 * Shut-down the ipSystemStatsTable module (agent is exiting)
63 */
64 void
65 shutdown_ipSystemStatsTable(void)
66 {
67 if (should_init("ipSystemStatsTable"))
68 shutdown_table_ipSystemStatsTable();
69
70 }
71
72 /**
73 * Initialize the table ipSystemStatsTable
74 * (Define its contents and how it's structured)
75 */
76 void
77 initialize_table_ipSystemStatsTable(void)
78 {
79 u_long flags;
80
81 DEBUGMSGTL(("verbose:ipSystemStatsTable:initialize_table_ipSystemStatsTable", "called\n"));
82
83 /*
84 * TODO:301:o: Perform ipSystemStatsTable one-time table initialization.
85 */
86
87 /*
88 * TODO:302:o: |->Initialize ipSystemStatsTable user context
89 * if you'd like to pass in a pointer to some data for this
90 * table, allocate or set it up here.
91 */
92 /*
93 * a netsnmp_data_list is a simple way to store void pointers. A simple
94 * string token is used to add, find or remove pointers.
95 */
96 ipSystemStatsTable_user_context_p =
97 netsnmp_create_data_list("ipSystemStatsTable", NULL, NULL);
98
99 /*
100 * No support for any flags yet, but in the future you would
101 * set any flags here.
102 */
103 flags = 0;
104
105 /*
106 * call interface initialization code
107 */
108 _ipSystemStatsTable_initialize_interface
109 (ipSystemStatsTable_user_context_p, flags);
110 } /* initialize_table_ipSystemStatsTable */
111
112 /**
113 * Shutdown the table ipSystemStatsTable
114 */
115 void
116 shutdown_table_ipSystemStatsTable(void)
117 {
118 /*
119 * call interface shutdown code
120 */
121 _ipSystemStatsTable_shutdown_interface
122 (ipSystemStatsTable_user_context_p);
123 netsnmp_free_all_list_data(ipSystemStatsTable_user_context_p);
124 ipSystemStatsTable_user_context_p = NULL;
125 }
126
127 /**
128 * extra context initialization (eg default values)
129 *
130 * @param rowreq_ctx : row request context
131 * @param user_init_ctx : void pointer for user (parameter to rowreq_ctx_allocate)
132 *
133 * @retval MFD_SUCCESS : no errors
134 * @retval MFD_ERROR : error (context allocate will fail)
135 */
136 int
137 ipSystemStatsTable_rowreq_ctx_init(ipSystemStatsTable_rowreq_ctx *
138 rowreq_ctx, void *user_init_ctx)
139 {
140 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsTable_rowreq_ctx_init", "called\n"));
141
142 netsnmp_assert(NULL != rowreq_ctx);
143
144 /*
145 * TODO:210:o: |-> Perform extra ipSystemStatsTable rowreq initialization. (eg DEFVALS)
146 */
147
148 return MFD_SUCCESS;
149 } /* ipSystemStatsTable_rowreq_ctx_init */
150
151 /**
152 * extra context cleanup
153 *
154 */
155 void
156 ipSystemStatsTable_rowreq_ctx_cleanup(ipSystemStatsTable_rowreq_ctx *
157 rowreq_ctx)
158 {
159 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsTable_rowreq_ctx_cleanup", "called\n"));
160
161 netsnmp_assert(NULL != rowreq_ctx);
162
163 /*
164 * TODO:211:o: |-> Perform extra ipSystemStatsTable rowreq cleanup.
165 */
166 netsnmp_access_systemstats_entry_free(rowreq_ctx->data);
167 rowreq_ctx->data = NULL;
168 } /* ipSystemStatsTable_rowreq_ctx_cleanup */
169
170 /**
171 * pre-request callback
172 *
173 * @param user_context
174 *
175 * @retval MFD_SUCCESS : success.
176 * @retval MFD_ERROR : other error
177 */
178 int
179 ipSystemStatsTable_pre_request(ipSystemStatsTable_registration *
180 user_context)
181 {
182 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsTable_pre_request", "called\n"));
183
184 /*
185 * TODO:510:o: Perform ipSystemStatsTable pre-request actions.
186 */
187
188 return MFD_SUCCESS;
189 } /* ipSystemStatsTable_pre_request */
190
191 /**
192 * post-request callback
193 *
194 * Note:
195 * New rows have been inserted into the container, and
196 * deleted rows have been removed from the container and
197 * released.
198 * @param user_context
199 * @param rc : MFD_SUCCESS if all requests succeeded
200 *
201 * @retval MFD_SUCCESS : success.
202 * @retval MFD_ERROR : other error (ignored)
203 */
204 int
205 ipSystemStatsTable_post_request(ipSystemStatsTable_registration *
206 user_context, int rc)
207 {
208 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsTable_post_request", "called\n"));
209
210 /*
211 * TODO:511:o: Perform ipSystemStatsTable post-request actions.
212 */
213
214 return MFD_SUCCESS;
215 } /* ipSystemStatsTable_post_request */
216
217
218 /**********************************************************************
219 **********************************************************************
220 ***
221 *** Table ipSystemStatsTable
222 ***
223 **********************************************************************
224 **********************************************************************/
225 /*
226 * IP-MIB::ipSystemStatsTable is subid 1 of ipTrafficStats.
227 * Its status is Current.
228 * OID: .1.3.6.1.2.1.4.31.1, length: 9
229 */
230
231 /*
232 * ---------------------------------------------------------------------
233 * * TODO:200:r: Implement ipSystemStatsTable data context functions.
234 */
235 /*
236 * ipSystemStatsTable_allocate_data
237 *
238 * Purpose: create new ipSystemStatsTable_data.
239 */
240 ipSystemStatsTable_data *
241 ipSystemStatsTable_allocate_data(void)
242 {
243 /*
244 * TODO:201:r: |-> allocate memory for the ipSystemStatsTable data context.
245 */
246 ipSystemStatsTable_data *rtn =
247 SNMP_MALLOC_TYPEDEF(ipSystemStatsTable_data);
248
249 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsTable_allocate_data", "called\n"));
250
251 if (NULL == rtn) {
252 snmp_log(LOG_ERR, "unable to malloc memory for new "
253 "ipSystemStatsTable_data.\n");
254 }
255
256 return rtn;
257 } /* ipSystemStatsTable_allocate_data */
258
259 /*
260 * ipSystemStatsTable_release_data
261 *
262 * Purpose: release ipSystemStatsTable data.
263 */
264 void
265 ipSystemStatsTable_release_data(ipSystemStatsTable_data * data)
266 {
267 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsTable_release_data", "called\n"));
268
269 /*
270 * TODO:202:r: |-> release memory for the ipSystemStatsTable data context.
271 */
272 free(data);
273 } /* ipSystemStatsTable_release_data */
274
275
276
277 /**
278 * set mib index(es)
279 *
280 * @param tbl_idx mib index structure
281 * @param ipSystemStatsIPVersion_val
282 *
283 * @retval MFD_SUCCESS : success.
284 * @retval MFD_ERROR : other error.
285 *
286 * @remark
287 * This convenience function is useful for setting all the MIB index
288 * components with a single function call. It is assume that the C values
289 * have already been mapped from their native/rawformat to the MIB format.
290 */
291 int
292 ipSystemStatsTable_indexes_set_tbl_idx(ipSystemStatsTable_mib_index *
293 tbl_idx,
294 u_long ipSystemStatsIPVersion_val)
295 {
296 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsTable_indexes_set_tbl_idx", "called\n"));
297
298 /*
299 * ipSystemStatsIPVersion(1)/InetVersion/ASN_INTEGER/long(u_long)//l/a/w/E/r/d/h
300 */
301 /** WARNING: this code might not work for netsnmp_systemstats_entry */
302 tbl_idx->ipSystemStatsIPVersion = ipSystemStatsIPVersion_val;
303
304
305 return MFD_SUCCESS;
306 } /* ipSystemStatsTable_indexes_set_tbl_idx */
307
308 /**
309 * @internal
310 * set row context indexes
311 *
312 * @param reqreq_ctx the row context that needs updated indexes
313 *
314 * @retval MFD_SUCCESS : success.
315 * @retval MFD_ERROR : other error.
316 *
317 * @remark
318 * This function sets the mib indexs, then updates the oid indexs
319 * from the mib index.
320 */
321 int
322 ipSystemStatsTable_indexes_set(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
323 u_long ipSystemStatsIPVersion_val)
324 {
325 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsTable_indexes_set", "called\n"));
326
327 if (MFD_SUCCESS !=
328 ipSystemStatsTable_indexes_set_tbl_idx(&rowreq_ctx->tbl_idx,
329 ipSystemStatsIPVersion_val))
330 return MFD_ERROR;
331
332 /*
333 * convert mib index to oid index
334 */
335 rowreq_ctx->oid_idx.len = sizeof(rowreq_ctx->oid_tmp) / sizeof(oid);
336 if (0 != ipSystemStatsTable_index_to_oid(&rowreq_ctx->oid_idx,
337 &rowreq_ctx->tbl_idx)) {
338 return MFD_ERROR;
339 }
340
341 return MFD_SUCCESS;
342 } /* ipSystemStatsTable_indexes_set */
343
344
345 /*---------------------------------------------------------------------
346 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInReceives
347 * ipSystemStatsInReceives is subid 3 of ipSystemStatsEntry.
348 * Its status is Current, and its access level is ReadOnly.
349 * OID: .1.3.6.1.2.1.4.31.1.1.3
350 * Description:
351 The total number of input IP datagrams received, including
352 those received in error.
353
354
355 Discontinuities in the value of this counter can occur at
356 re-initialization of the management system, and at other
357 times as indicated by the value of
358 ipSystemStatsDiscontinuityTime.
359 *
360 * Attributes:
361 * accessible 1 isscalar 0 enums 0 hasdefval 0
362 * readable 1 iscolumn 1 ranges 0 hashint 0
363 * settable 0
364 *
365 *
366 * Its syntax is COUNTER (based on perltype COUNTER)
367 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
368 */
369 /**
370 * Extract the current value of the ipSystemStatsInReceives data.
371 *
372 * Set a value using the data context for the row.
373 *
374 * @param rowreq_ctx
375 * Pointer to the row request context.
376 * @param ipSystemStatsInReceives_val_ptr
377 * Pointer to storage for a u_long variable
378 *
379 * @retval MFD_SUCCESS : success
380 * @retval MFD_SKIP : skip this node (no value for now)
381 * @retval MFD_ERROR : Any other error
382 */
383 int
384 ipSystemStatsInReceives_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
385 u_long * ipSystemStatsInReceives_val_ptr)
386 {
387 /** we should have a non-NULL pointer */
388 netsnmp_assert(NULL != ipSystemStatsInReceives_val_ptr);
389
390
391 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInReceives_get",
392 "called\n"));
393
394 netsnmp_assert(NULL != rowreq_ctx);
395
396 /*
397 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInReceives data.
398 * copy (* ipSystemStatsInReceives_val_ptr ) from rowreq_ctx->data
399 */
400 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINRECEIVES])
401 return MFD_SKIP;
402
403 (*ipSystemStatsInReceives_val_ptr) =
404 rowreq_ctx->data->stats.HCInReceives.low;
405
406 return MFD_SUCCESS;
407 } /* ipSystemStatsInReceives_get */
408
409 /*---------------------------------------------------------------------
410 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCInReceives
411 * ipSystemStatsHCInReceives is subid 4 of ipSystemStatsEntry.
412 * Its status is Current, and its access level is ReadOnly.
413 * OID: .1.3.6.1.2.1.4.31.1.1.4
414 * Description:
415 The total number of input IP datagrams received, including
416 those received in error. This object counts the same
417 datagrams as ipSystemStatsInReceives but allows for larger
418
419
420
421
422 values.
423
424
425 Discontinuities in the value of this counter can occur at
426 re-initialization of the management system, and at other
427 times as indicated by the value of
428 ipSystemStatsDiscontinuityTime.
429 *
430 * Attributes:
431 * accessible 1 isscalar 0 enums 0 hasdefval 0
432 * readable 1 iscolumn 1 ranges 0 hashint 0
433 * settable 0
434 *
435 *
436 * Its syntax is COUNTER64 (based on perltype COUNTER64)
437 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
438 */
439 /**
440 * Extract the current value of the ipSystemStatsHCInReceives data.
441 *
442 * Set a value using the data context for the row.
443 *
444 * @param rowreq_ctx
445 * Pointer to the row request context.
446 * @param ipSystemStatsHCInReceives_val_ptr
447 * Pointer to storage for a struct counter64 variable
448 *
449 * @retval MFD_SUCCESS : success
450 * @retval MFD_SKIP : skip this node (no value for now)
451 * @retval MFD_ERROR : Any other error
452 */
453 int
454 ipSystemStatsHCInReceives_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
455 struct counter64 *ipSystemStatsHCInReceives_val_ptr)
456 {
457 /** we should have a non-NULL pointer */
458 netsnmp_assert(NULL != ipSystemStatsHCInReceives_val_ptr);
459
460 /*
461 * TODO:231:o: |-> copy ipSystemStatsHCInReceives data.
462 * get (* ipSystemStatsHCInReceives_val_ptr ).low and (* ipSystemStatsHCInReceives_val_ptr ).high from rowreq_ctx->data
463 */
464 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINRECEIVES])
465 return MFD_SKIP;
466
467 (*ipSystemStatsHCInReceives_val_ptr).low =
468 rowreq_ctx->data->stats.HCInReceives.low;
469 (*ipSystemStatsHCInReceives_val_ptr).high =
470 rowreq_ctx->data->stats.HCInReceives.high;
471
472 return MFD_SUCCESS;
473 } /* ipSystemStatsHCInReceives_get */
474
475 /*---------------------------------------------------------------------
476 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInOctets
477 * ipSystemStatsInOctets is subid 5 of ipSystemStatsEntry.
478 * Its status is Current, and its access level is ReadOnly.
479 * OID: .1.3.6.1.2.1.4.31.1.1.5
480 * Description:
481 The total number of octets received in input IP datagrams,
482 including those received in error. Octets from datagrams
483 counted in ipSystemStatsInReceives MUST be counted here.
484
485
486 Discontinuities in the value of this counter can occur at
487 re-initialization of the management system, and at other
488 times as indicated by the value of
489 ipSystemStatsDiscontinuityTime.
490 *
491 * Attributes:
492 * accessible 1 isscalar 0 enums 0 hasdefval 0
493 * readable 1 iscolumn 1 ranges 0 hashint 0
494 * settable 0
495 *
496 *
497 * Its syntax is COUNTER (based on perltype COUNTER)
498 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
499 */
500 /**
501 * Extract the current value of the ipSystemStatsInOctets data.
502 *
503 * Set a value using the data context for the row.
504 *
505 * @param rowreq_ctx
506 * Pointer to the row request context.
507 * @param ipSystemStatsInOctets_val_ptr
508 * Pointer to storage for a u_long variable
509 *
510 * @retval MFD_SUCCESS : success
511 * @retval MFD_SKIP : skip this node (no value for now)
512 * @retval MFD_ERROR : Any other error
513 */
514 int
515 ipSystemStatsInOctets_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
516 u_long * ipSystemStatsInOctets_val_ptr)
517 {
518 /** we should have a non-NULL pointer */
519 netsnmp_assert(NULL != ipSystemStatsInOctets_val_ptr);
520
521
522 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInOctets_get",
523 "called\n"));
524
525 netsnmp_assert(NULL != rowreq_ctx);
526
527 /*
528 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInOctets data.
529 * copy (* ipSystemStatsInOctets_val_ptr ) from rowreq_ctx->data
530 */
531 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINOCTETS])
532 return MFD_SKIP;
533
534 (*ipSystemStatsInOctets_val_ptr) =
535 rowreq_ctx->data->stats.HCInOctets.low;
536
537 return MFD_SUCCESS;
538 } /* ipSystemStatsInOctets_get */
539
540 /*---------------------------------------------------------------------
541 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCInOctets
542 * ipSystemStatsHCInOctets is subid 6 of ipSystemStatsEntry.
543 * Its status is Current, and its access level is ReadOnly.
544 * OID: .1.3.6.1.2.1.4.31.1.1.6
545 * Description:
546 The total number of octets received in input IP datagrams,
547 including those received in error. This object counts the
548 same octets as ipSystemStatsInOctets but allows for larger
549 values.
550
551
552 Discontinuities in the value of this counter can occur at
553 re-initialization of the management system, and at other
554 times as indicated by the value of
555 ipSystemStatsDiscontinuityTime.
556 *
557 * Attributes:
558 * accessible 1 isscalar 0 enums 0 hasdefval 0
559 * readable 1 iscolumn 1 ranges 0 hashint 0
560 * settable 0
561 *
562 *
563 * Its syntax is COUNTER64 (based on perltype COUNTER64)
564 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
565 */
566 /**
567 * Extract the current value of the ipSystemStatsHCInOctets data.
568 *
569 * Set a value using the data context for the row.
570 *
571 * @param rowreq_ctx
572 * Pointer to the row request context.
573 * @param ipSystemStatsHCInOctets_val_ptr
574 * Pointer to storage for a struct counter64 variable
575 *
576 * @retval MFD_SUCCESS : success
577 * @retval MFD_SKIP : skip this node (no value for now)
578 * @retval MFD_ERROR : Any other error
579 */
580 int
581 ipSystemStatsHCInOctets_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
582 struct counter64 *ipSystemStatsHCInOctets_val_ptr)
583 {
584 /** we should have a non-NULL pointer */
585 netsnmp_assert(NULL != ipSystemStatsHCInOctets_val_ptr);
586
587 /*
588 * TODO:231:o: |-> copy ipSystemStatsHCInOctets data.
589 * get (* ipSystemStatsHCInOctets_val_ptr ).low and (* ipSystemStatsHCInOctets_val_ptr ).high from rowreq_ctx->data
590 */
591 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINOCTETS])
592 return MFD_SKIP;
593
594 (*ipSystemStatsHCInOctets_val_ptr).low =
595 rowreq_ctx->data->stats.HCInOctets.low;
596 (*ipSystemStatsHCInOctets_val_ptr).high =
597 rowreq_ctx->data->stats.HCInOctets.high;
598
599 return MFD_SUCCESS;
600 } /* ipSystemStatsHCInOctets_get */
601
602 /*---------------------------------------------------------------------
603 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInHdrErrors
604 * ipSystemStatsInHdrErrors is subid 7 of ipSystemStatsEntry.
605 * Its status is Current, and its access level is ReadOnly.
606 * OID: .1.3.6.1.2.1.4.31.1.1.7
607 * Description:
608 The number of input IP datagrams discarded due to errors in
609 their IP headers, including version number mismatch, other
610 format errors, hop count exceeded, errors discovered in
611 processing their IP options, etc.
612
613
614
615
616 Discontinuities in the value of this counter can occur at
617 re-initialization of the management system, and at other
618 times as indicated by the value of
619 ipSystemStatsDiscontinuityTime.
620 *
621 * Attributes:
622 * accessible 1 isscalar 0 enums 0 hasdefval 0
623 * readable 1 iscolumn 1 ranges 0 hashint 0
624 * settable 0
625 *
626 *
627 * Its syntax is COUNTER (based on perltype COUNTER)
628 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
629 */
630 /**
631 * Extract the current value of the ipSystemStatsInHdrErrors data.
632 *
633 * Set a value using the data context for the row.
634 *
635 * @param rowreq_ctx
636 * Pointer to the row request context.
637 * @param ipSystemStatsInHdrErrors_val_ptr
638 * Pointer to storage for a u_long variable
639 *
640 * @retval MFD_SUCCESS : success
641 * @retval MFD_SKIP : skip this node (no value for now)
642 * @retval MFD_ERROR : Any other error
643 */
644 int
645 ipSystemStatsInHdrErrors_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
646 u_long * ipSystemStatsInHdrErrors_val_ptr)
647 {
648 /** we should have a non-NULL pointer */
649 netsnmp_assert(NULL != ipSystemStatsInHdrErrors_val_ptr);
650
651
652 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInHdrErrors_get",
653 "called\n"));
654
655 netsnmp_assert(NULL != rowreq_ctx);
656
657 /*
658 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInHdrErrors data.
659 * copy (* ipSystemStatsInHdrErrors_val_ptr ) from rowreq_ctx->data
660 */
661 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_INHDRERRORS])
662 return MFD_SKIP;
663
664 (*ipSystemStatsInHdrErrors_val_ptr) =
665 rowreq_ctx->data->stats.InHdrErrors;
666
667 return MFD_SUCCESS;
668 } /* ipSystemStatsInHdrErrors_get */
669
670 /*---------------------------------------------------------------------
671 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInNoRoutes
672 * ipSystemStatsInNoRoutes is subid 8 of ipSystemStatsEntry.
673 * Its status is Current, and its access level is ReadOnly.
674 * OID: .1.3.6.1.2.1.4.31.1.1.8
675 * Description:
676 The number of input IP datagrams discarded because no route
677 could be found to transmit them to their destination.
678
679
680 Discontinuities in the value of this counter can occur at
681 re-initialization of the management system, and at other
682 times as indicated by the value of
683 ipSystemStatsDiscontinuityTime.
684 *
685 * Attributes:
686 * accessible 1 isscalar 0 enums 0 hasdefval 0
687 * readable 1 iscolumn 1 ranges 0 hashint 0
688 * settable 0
689 *
690 *
691 * Its syntax is COUNTER (based on perltype COUNTER)
692 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
693 */
694 /**
695 * Extract the current value of the ipSystemStatsInNoRoutes data.
696 *
697 * Set a value using the data context for the row.
698 *
699 * @param rowreq_ctx
700 * Pointer to the row request context.
701 * @param ipSystemStatsInNoRoutes_val_ptr
702 * Pointer to storage for a u_long variable
703 *
704 * @retval MFD_SUCCESS : success
705 * @retval MFD_SKIP : skip this node (no value for now)
706 * @retval MFD_ERROR : Any other error
707 */
708 int
709 ipSystemStatsInNoRoutes_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
710 u_long * ipSystemStatsInNoRoutes_val_ptr)
711 {
712 /** we should have a non-NULL pointer */
713 netsnmp_assert(NULL != ipSystemStatsInNoRoutes_val_ptr);
714
715
716 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInNoRoutes_get",
717 "called\n"));
718
719 netsnmp_assert(NULL != rowreq_ctx);
720
721 /*
722 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInNoRoutes data.
723 * copy (* ipSystemStatsInNoRoutes_val_ptr ) from rowreq_ctx->data
724 */
725 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINNOROUTES])
726 return MFD_SKIP;
727
728 (*ipSystemStatsInNoRoutes_val_ptr) =
729 rowreq_ctx->data->stats.HCInNoRoutes.low;
730
731 return MFD_SUCCESS;
732 } /* ipSystemStatsInNoRoutes_get */
733
734 /*---------------------------------------------------------------------
735 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInAddrErrors
736 * ipSystemStatsInAddrErrors is subid 9 of ipSystemStatsEntry.
737 * Its status is Current, and its access level is ReadOnly.
738 * OID: .1.3.6.1.2.1.4.31.1.1.9
739 * Description:
740 The number of input IP datagrams discarded because the IP
741 address in their IP header's destination field was not a
742 valid address to be received at this entity. This count
743 includes invalid addresses (e.g., ::0) and unsupported
744 addresses (e.g., addresses with unallocated prefixes). For
745 entities which are not IP routers and therefore do not
746 forward datagrams, this counter includes datagrams discarded
747 because the destination address was not a local address.
748
749
750 Discontinuities in the value of this counter can occur at
751 re-initialization of the management system, and at other
752 times as indicated by the value of
753 ipSystemStatsDiscontinuityTime.
754 *
755 * Attributes:
756 * accessible 1 isscalar 0 enums 0 hasdefval 0
757 * readable 1 iscolumn 1 ranges 0 hashint 0
758 * settable 0
759 *
760 *
761 * Its syntax is COUNTER (based on perltype COUNTER)
762 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
763 */
764 /**
765 * Extract the current value of the ipSystemStatsInAddrErrors data.
766 *
767 * Set a value using the data context for the row.
768 *
769 * @param rowreq_ctx
770 * Pointer to the row request context.
771 * @param ipSystemStatsInAddrErrors_val_ptr
772 * Pointer to storage for a u_long variable
773 *
774 * @retval MFD_SUCCESS : success
775 * @retval MFD_SKIP : skip this node (no value for now)
776 * @retval MFD_ERROR : Any other error
777 */
778 int
779 ipSystemStatsInAddrErrors_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
780 u_long * ipSystemStatsInAddrErrors_val_ptr)
781 {
782 /** we should have a non-NULL pointer */
783 netsnmp_assert(NULL != ipSystemStatsInAddrErrors_val_ptr);
784
785
786 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInAddrErrors_get",
787 "called\n"));
788
789 netsnmp_assert(NULL != rowreq_ctx);
790
791 /*
792 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInAddrErrors data.
793 * copy (* ipSystemStatsInAddrErrors_val_ptr ) from rowreq_ctx->data
794 */
795 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_INADDRERRORS])
796 return MFD_SKIP;
797
798 (*ipSystemStatsInAddrErrors_val_ptr) =
799 rowreq_ctx->data->stats.InAddrErrors;
800
801 return MFD_SUCCESS;
802 } /* ipSystemStatsInAddrErrors_get */
803
804 /*---------------------------------------------------------------------
805 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInUnknownProtos
806 * ipSystemStatsInUnknownProtos is subid 10 of ipSystemStatsEntry.
807 * Its status is Current, and its access level is ReadOnly.
808 * OID: .1.3.6.1.2.1.4.31.1.1.10
809 * Description:
810 The number of locally-addressed IP datagrams received
811 successfully but discarded because of an unknown or
812 unsupported protocol.
813
814
815
816
817 When tracking interface statistics the counter of the
818 interface to which these datagrams were addressed is
819 incremented. This interface might not be the same as the
820 input interface for some of the datagrams.
821
822
823 Discontinuities in the value of this counter can occur at
824 re-initialization of the management system, and at other
825 times as indicated by the value of
826 ipSystemStatsDiscontinuityTime.
827 *
828 * Attributes:
829 * accessible 1 isscalar 0 enums 0 hasdefval 0
830 * readable 1 iscolumn 1 ranges 0 hashint 0
831 * settable 0
832 *
833 *
834 * Its syntax is COUNTER (based on perltype COUNTER)
835 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
836 */
837 /**
838 * Extract the current value of the ipSystemStatsInUnknownProtos data.
839 *
840 * Set a value using the data context for the row.
841 *
842 * @param rowreq_ctx
843 * Pointer to the row request context.
844 * @param ipSystemStatsInUnknownProtos_val_ptr
845 * Pointer to storage for a u_long variable
846 *
847 * @retval MFD_SUCCESS : success
848 * @retval MFD_SKIP : skip this node (no value for now)
849 * @retval MFD_ERROR : Any other error
850 */
851 int
852 ipSystemStatsInUnknownProtos_get(ipSystemStatsTable_rowreq_ctx *
853 rowreq_ctx,
854 u_long *
855 ipSystemStatsInUnknownProtos_val_ptr)
856 {
857 /** we should have a non-NULL pointer */
858 netsnmp_assert(NULL != ipSystemStatsInUnknownProtos_val_ptr);
859
860
861 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInUnknownProtos_get", "called\n"));
862
863 netsnmp_assert(NULL != rowreq_ctx);
864
865 /*
866 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInUnknownProtos data.
867 * copy (* ipSystemStatsInUnknownProtos_val_ptr ) from rowreq_ctx->data
868 */
869 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_INUNKNOWNPROTOS])
870 return MFD_SKIP;
871
872 (*ipSystemStatsInUnknownProtos_val_ptr) =
873 rowreq_ctx->data->stats.InUnknownProtos;
874
875 return MFD_SUCCESS;
876 } /* ipSystemStatsInUnknownProtos_get */
877
878 /*---------------------------------------------------------------------
879 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInTruncatedPkts
880 * ipSystemStatsInTruncatedPkts is subid 11 of ipSystemStatsEntry.
881 * Its status is Current, and its access level is ReadOnly.
882 * OID: .1.3.6.1.2.1.4.31.1.1.11
883 * Description:
884 The number of input IP datagrams discarded because the
885 datagram frame didn't carry enough data.
886
887
888 Discontinuities in the value of this counter can occur at
889 re-initialization of the management system, and at other
890 times as indicated by the value of
891 ipSystemStatsDiscontinuityTime.
892 *
893 * Attributes:
894 * accessible 1 isscalar 0 enums 0 hasdefval 0
895 * readable 1 iscolumn 1 ranges 0 hashint 0
896 * settable 0
897 *
898 *
899 * Its syntax is COUNTER (based on perltype COUNTER)
900 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
901 */
902 /**
903 * Extract the current value of the ipSystemStatsInTruncatedPkts data.
904 *
905 * Set a value using the data context for the row.
906 *
907 * @param rowreq_ctx
908 * Pointer to the row request context.
909 * @param ipSystemStatsInTruncatedPkts_val_ptr
910 * Pointer to storage for a u_long variable
911 *
912 * @retval MFD_SUCCESS : success
913 * @retval MFD_SKIP : skip this node (no value for now)
914 * @retval MFD_ERROR : Any other error
915 */
916 int
917 ipSystemStatsInTruncatedPkts_get(ipSystemStatsTable_rowreq_ctx *
918 rowreq_ctx,
919 u_long *
920 ipSystemStatsInTruncatedPkts_val_ptr)
921 {
922 /** we should have a non-NULL pointer */
923 netsnmp_assert(NULL != ipSystemStatsInTruncatedPkts_val_ptr);
924
925
926 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInTruncatedPkts_get", "called\n"));
927
928 netsnmp_assert(NULL != rowreq_ctx);
929
930 /*
931 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInTruncatedPkts data.
932 * copy (* ipSystemStatsInTruncatedPkts_val_ptr ) from rowreq_ctx->data
933 */
934 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_INTRUNCATEDPKTS])
935 return MFD_SKIP;
936
937 (*ipSystemStatsInTruncatedPkts_val_ptr) =
938 rowreq_ctx->data->stats.InTruncatedPkts;
939
940 return MFD_SUCCESS;
941 } /* ipSystemStatsInTruncatedPkts_get */
942
943 /*---------------------------------------------------------------------
944 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInForwDatagrams
945 * ipSystemStatsInForwDatagrams is subid 12 of ipSystemStatsEntry.
946 * Its status is Current, and its access level is ReadOnly.
947 * OID: .1.3.6.1.2.1.4.31.1.1.12
948 * Description:
949 The number of input datagrams for which this entity was not
950 their final IP destination and for which this entity
951 attempted to find a route to forward them to that final
952 destination. In entities which do not act as IP routers,
953 this counter will include only those datagrams which were
954 Source-Routed via this entity, and the Source-Route
955 processing was successful.
956
957
958 When tracking interface statistics the counter of the
959 incoming interface is incremented for each datagram.
960
961
962 Discontinuities in the value of this counter can occur at
963 re-initialization of the management system, and at other
964 times as indicated by the value of
965 ipSystemStatsDiscontinuityTime.
966 *
967 * Attributes:
968 * accessible 1 isscalar 0 enums 0 hasdefval 0
969 * readable 1 iscolumn 1 ranges 0 hashint 0
970 * settable 0
971 *
972 *
973 * Its syntax is COUNTER (based on perltype COUNTER)
974 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
975 */
976 /**
977 * Extract the current value of the ipSystemStatsInForwDatagrams data.
978 *
979 * Set a value using the data context for the row.
980 *
981 * @param rowreq_ctx
982 * Pointer to the row request context.
983 * @param ipSystemStatsInForwDatagrams_val_ptr
984 * Pointer to storage for a u_long variable
985 *
986 * @retval MFD_SUCCESS : success
987 * @retval MFD_SKIP : skip this node (no value for now)
988 * @retval MFD_ERROR : Any other error
989 */
990 int
991 ipSystemStatsInForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
992 rowreq_ctx,
993 u_long *
994 ipSystemStatsInForwDatagrams_val_ptr)
995 {
996 /** we should have a non-NULL pointer */
997 netsnmp_assert(NULL != ipSystemStatsInForwDatagrams_val_ptr);
998
999
1000 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInForwDatagrams_get", "called\n"));
1001
1002 netsnmp_assert(NULL != rowreq_ctx);
1003
1004 /*
1005 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInForwDatagrams data.
1006 * copy (* ipSystemStatsInForwDatagrams_val_ptr ) from rowreq_ctx->data
1007 */
1008 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINFORWDATAGRAMS])
1009 return MFD_SKIP;
1010
1011 (*ipSystemStatsInForwDatagrams_val_ptr) =
1012 rowreq_ctx->data->stats.HCInForwDatagrams.low;
1013
1014 return MFD_SUCCESS;
1015 } /* ipSystemStatsInForwDatagrams_get */
1016
1017 /*---------------------------------------------------------------------
1018 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCInForwDatagrams
1019 * ipSystemStatsHCInForwDatagrams is subid 13 of ipSystemStatsEntry.
1020 * Its status is Current, and its access level is ReadOnly.
1021 * OID: .1.3.6.1.2.1.4.31.1.1.13
1022 * Description:
1023 The number of input datagrams for which this entity was not
1024 their final IP destination and for which this entity
1025 attempted to find a route to forward them to that final
1026 destination. This object counts the same packets as
1027 ipSystemStatsInForwDatagrams but allows for larger values.
1028
1029
1030 Discontinuities in the value of this counter can occur at
1031 re-initialization of the management system, and at other
1032 times as indicated by the value of
1033 ipSystemStatsDiscontinuityTime.
1034 *
1035 * Attributes:
1036 * accessible 1 isscalar 0 enums 0 hasdefval 0
1037 * readable 1 iscolumn 1 ranges 0 hashint 0
1038 * settable 0
1039 *
1040 *
1041 * Its syntax is COUNTER64 (based on perltype COUNTER64)
1042 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
1043 */
1044 /**
1045 * Extract the current value of the ipSystemStatsHCInForwDatagrams data.
1046 *
1047 * Set a value using the data context for the row.
1048 *
1049 * @param rowreq_ctx
1050 * Pointer to the row request context.
1051 * @param ipSystemStatsHCInForwDatagrams_val_ptr
1052 * Pointer to storage for a struct counter64 variable
1053 *
1054 * @retval MFD_SUCCESS : success
1055 * @retval MFD_SKIP : skip this node (no value for now)
1056 * @retval MFD_ERROR : Any other error
1057 */
1058 int
1059 ipSystemStatsHCInForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
1060 rowreq_ctx,
1061 struct counter64 *
1062 ipSystemStatsHCInForwDatagrams_val_ptr)
1063 {
1064 /** we should have a non-NULL pointer */
1065 netsnmp_assert(NULL != ipSystemStatsHCInForwDatagrams_val_ptr);
1066
1067 /*
1068 * TODO:231:o: |-> copy ipSystemStatsHCInForwDatagrams data.
1069 * get (* ipSystemStatsHCInForwDatagrams_val_ptr ).low and (* ipSystemStatsHCInForwDatagrams_val_ptr ).high from rowreq_ctx->data
1070 */
1071 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINFORWDATAGRAMS])
1072 return MFD_SKIP;
1073
1074 (*ipSystemStatsHCInForwDatagrams_val_ptr).low =
1075 rowreq_ctx->data->stats.HCInForwDatagrams.low;
1076 (*ipSystemStatsHCInForwDatagrams_val_ptr).high =
1077 rowreq_ctx->data->stats.HCInForwDatagrams.high;
1078
1079 return MFD_SUCCESS;
1080 } /* ipSystemStatsHCInForwDatagrams_get */
1081
1082 /*---------------------------------------------------------------------
1083 * IP-MIB::ipSystemStatsEntry.ipSystemStatsReasmReqds
1084 * ipSystemStatsReasmReqds is subid 14 of ipSystemStatsEntry.
1085 * Its status is Current, and its access level is ReadOnly.
1086 * OID: .1.3.6.1.2.1.4.31.1.1.14
1087 * Description:
1088 The number of IP fragments received which needed to be
1089 reassembled at this interface.
1090
1091
1092 When tracking interface statistics the counter of the
1093 interface to which these fragments were addressed is
1094 incremented. This interface might not be the same as the
1095 input interface for some of the fragments.
1096
1097
1098 Discontinuities in the value of this counter can occur at
1099 re-initialization of the management system, and at other
1100 times as indicated by the value of
1101 ipSystemStatsDiscontinuityTime.
1102 *
1103 * Attributes:
1104 * accessible 1 isscalar 0 enums 0 hasdefval 0
1105 * readable 1 iscolumn 1 ranges 0 hashint 0
1106 * settable 0
1107 *
1108 *
1109 * Its syntax is COUNTER (based on perltype COUNTER)
1110 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
1111 */
1112 /**
1113 * Extract the current value of the ipSystemStatsReasmReqds data.
1114 *
1115 * Set a value using the data context for the row.
1116 *
1117 * @param rowreq_ctx
1118 * Pointer to the row request context.
1119 * @param ipSystemStatsReasmReqds_val_ptr
1120 * Pointer to storage for a u_long variable
1121 *
1122 * @retval MFD_SUCCESS : success
1123 * @retval MFD_SKIP : skip this node (no value for now)
1124 * @retval MFD_ERROR : Any other error
1125 */
1126 int
1127 ipSystemStatsReasmReqds_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
1128 u_long * ipSystemStatsReasmReqds_val_ptr)
1129 {
1130 /** we should have a non-NULL pointer */
1131 netsnmp_assert(NULL != ipSystemStatsReasmReqds_val_ptr);
1132
1133
1134 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsReasmReqds_get",
1135 "called\n"));
1136
1137 netsnmp_assert(NULL != rowreq_ctx);
1138
1139 /*
1140 * TODO:231:o: |-> Extract the current value of the ipSystemStatsReasmReqds data.
1141 * copy (* ipSystemStatsReasmReqds_val_ptr ) from rowreq_ctx->data
1142 */
1143 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_REASMREQDS])
1144 return MFD_SKIP;
1145
1146 (*ipSystemStatsReasmReqds_val_ptr) =
1147 rowreq_ctx->data->stats.ReasmReqds;
1148
1149 return MFD_SUCCESS;
1150 } /* ipSystemStatsReasmReqds_get */
1151
1152 /*---------------------------------------------------------------------
1153 * IP-MIB::ipSystemStatsEntry.ipSystemStatsReasmOKs
1154 * ipSystemStatsReasmOKs is subid 15 of ipSystemStatsEntry.
1155 * Its status is Current, and its access level is ReadOnly.
1156 * OID: .1.3.6.1.2.1.4.31.1.1.15
1157 * Description:
1158 The number of IP datagrams successfully reassembled.
1159
1160
1161 When tracking interface statistics the counter of the
1162 interface to which these datagrams were addressed is
1163 incremented. This interface might not be the same as the
1164 input interface for some of the datagrams.
1165
1166
1167 Discontinuities in the value of this counter can occur at
1168
1169
1170
1171
1172 re-initialization of the management system, and at other
1173 times as indicated by the value of
1174 ipSystemStatsDiscontinuityTime.
1175 *
1176 * Attributes:
1177 * accessible 1 isscalar 0 enums 0 hasdefval 0
1178 * readable 1 iscolumn 1 ranges 0 hashint 0
1179 * settable 0
1180 *
1181 *
1182 * Its syntax is COUNTER (based on perltype COUNTER)
1183 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
1184 */
1185 /**
1186 * Extract the current value of the ipSystemStatsReasmOKs data.
1187 *
1188 * Set a value using the data context for the row.
1189 *
1190 * @param rowreq_ctx
1191 * Pointer to the row request context.
1192 * @param ipSystemStatsReasmOKs_val_ptr
1193 * Pointer to storage for a u_long variable
1194 *
1195 * @retval MFD_SUCCESS : success
1196 * @retval MFD_SKIP : skip this node (no value for now)
1197 * @retval MFD_ERROR : Any other error
1198 */
1199 int
1200 ipSystemStatsReasmOKs_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
1201 u_long * ipSystemStatsReasmOKs_val_ptr)
1202 {
1203 /** we should have a non-NULL pointer */
1204 netsnmp_assert(NULL != ipSystemStatsReasmOKs_val_ptr);
1205
1206
1207 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsReasmOKs_get",
1208 "called\n"));
1209
1210 netsnmp_assert(NULL != rowreq_ctx);
1211
1212 /*
1213 * TODO:231:o: |-> Extract the current value of the ipSystemStatsReasmOKs data.
1214 * copy (* ipSystemStatsReasmOKs_val_ptr ) from rowreq_ctx->data
1215 */
1216 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_REASMOKS])
1217 return MFD_SKIP;
1218
1219 (*ipSystemStatsReasmOKs_val_ptr) = rowreq_ctx->data->stats.ReasmOKs;
1220
1221 return MFD_SUCCESS;
1222 } /* ipSystemStatsReasmOKs_get */
1223
1224 /*---------------------------------------------------------------------
1225 * IP-MIB::ipSystemStatsEntry.ipSystemStatsReasmFails
1226 * ipSystemStatsReasmFails is subid 16 of ipSystemStatsEntry.
1227 * Its status is Current, and its access level is ReadOnly.
1228 * OID: .1.3.6.1.2.1.4.31.1.1.16
1229 * Description:
1230 The number of failures detected by the IP re-assembly
1231 algorithm (for whatever reason: timed out, errors, etc.).
1232 Note that this is not necessarily a count of discarded IP
1233 fragments since some algorithms (notably the algorithm in
1234 RFC 815) can lose track of the number of fragments by
1235 combining them as they are received.
1236
1237
1238 When tracking interface statistics the counter of the
1239 interface to which these fragments were addressed is
1240 incremented. This interface might not be the same as the
1241 input interface for some of the fragments.
1242
1243
1244 Discontinuities in the value of this counter can occur at
1245 re-initialization of the management system, and at other
1246 times as indicated by the value of
1247 ipSystemStatsDiscontinuityTime.
1248 *
1249 * Attributes:
1250 * accessible 1 isscalar 0 enums 0 hasdefval 0
1251 * readable 1 iscolumn 1 ranges 0 hashint 0
1252 * settable 0
1253 *
1254 *
1255 * Its syntax is COUNTER (based on perltype COUNTER)
1256 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
1257 */
1258 /**
1259 * Extract the current value of the ipSystemStatsReasmFails data.
1260 *
1261 * Set a value using the data context for the row.
1262 *
1263 * @param rowreq_ctx
1264 * Pointer to the row request context.
1265 * @param ipSystemStatsReasmFails_val_ptr
1266 * Pointer to storage for a u_long variable
1267 *
1268 * @retval MFD_SUCCESS : success
1269 * @retval MFD_SKIP : skip this node (no value for now)
1270 * @retval MFD_ERROR : Any other error
1271 */
1272 int
1273 ipSystemStatsReasmFails_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
1274 u_long * ipSystemStatsReasmFails_val_ptr)
1275 {
1276 /** we should have a non-NULL pointer */
1277 netsnmp_assert(NULL != ipSystemStatsReasmFails_val_ptr);
1278
1279
1280 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsReasmFails_get",
1281 "called\n"));
1282
1283 netsnmp_assert(NULL != rowreq_ctx);
1284
1285 /*
1286 * TODO:231:o: |-> Extract the current value of the ipSystemStatsReasmFails data.
1287 * copy (* ipSystemStatsReasmFails_val_ptr ) from rowreq_ctx->data
1288 */
1289 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_REASMFAILS])
1290 return MFD_SKIP;
1291
1292 (*ipSystemStatsReasmFails_val_ptr) =
1293 rowreq_ctx->data->stats.ReasmFails;
1294
1295 return MFD_SUCCESS;
1296 } /* ipSystemStatsReasmFails_get */
1297
1298 /*---------------------------------------------------------------------
1299 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInDiscards
1300 * ipSystemStatsInDiscards is subid 17 of ipSystemStatsEntry.
1301 * Its status is Current, and its access level is ReadOnly.
1302 * OID: .1.3.6.1.2.1.4.31.1.1.17
1303 * Description:
1304 The number of input IP datagrams for which no problems were
1305 encountered to prevent their continued processing, but which
1306 were discarded (e.g., for lack of buffer space). Note that
1307 this counter does not include any datagrams discarded while
1308 awaiting re-assembly.
1309
1310
1311 Discontinuities in the value of this counter can occur at
1312 re-initialization of the management system, and at other
1313 times as indicated by the value of
1314 ipSystemStatsDiscontinuityTime.
1315 *
1316 * Attributes:
1317 * accessible 1 isscalar 0 enums 0 hasdefval 0
1318 * readable 1 iscolumn 1 ranges 0 hashint 0
1319 * settable 0
1320 *
1321 *
1322 * Its syntax is COUNTER (based on perltype COUNTER)
1323 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
1324 */
1325 /**
1326 * Extract the current value of the ipSystemStatsInDiscards data.
1327 *
1328 * Set a value using the data context for the row.
1329 *
1330 * @param rowreq_ctx
1331 * Pointer to the row request context.
1332 * @param ipSystemStatsInDiscards_val_ptr
1333 * Pointer to storage for a u_long variable
1334 *
1335 * @retval MFD_SUCCESS : success
1336 * @retval MFD_SKIP : skip this node (no value for now)
1337 * @retval MFD_ERROR : Any other error
1338 */
1339 int
1340 ipSystemStatsInDiscards_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
1341 u_long * ipSystemStatsInDiscards_val_ptr)
1342 {
1343 /** we should have a non-NULL pointer */
1344 netsnmp_assert(NULL != ipSystemStatsInDiscards_val_ptr);
1345
1346
1347 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInDiscards_get",
1348 "called\n"));
1349
1350 netsnmp_assert(NULL != rowreq_ctx);
1351
1352 /*
1353 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInDiscards data.
1354 * copy (* ipSystemStatsInDiscards_val_ptr ) from rowreq_ctx->data
1355 */
1356 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_INDISCARDS])
1357 return MFD_SKIP;
1358
1359 (*ipSystemStatsInDiscards_val_ptr) =
1360 rowreq_ctx->data->stats.InDiscards;
1361
1362 return MFD_SUCCESS;
1363 } /* ipSystemStatsInDiscards_get */
1364
1365 /*---------------------------------------------------------------------
1366 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInDelivers
1367 * ipSystemStatsInDelivers is subid 18 of ipSystemStatsEntry.
1368 * Its status is Current, and its access level is ReadOnly.
1369 * OID: .1.3.6.1.2.1.4.31.1.1.18
1370 * Description:
1371 The total number of datagrams successfully delivered to IP
1372 user-protocols (including ICMP).
1373
1374
1375 When tracking interface statistics the counter of the
1376 interface to which these datagrams were addressed is
1377 incremented. This interface might not be the same as the
1378 input interface for some of the datagrams.
1379
1380
1381 Discontinuities in the value of this counter can occur at
1382 re-initialization of the management system, and at other
1383 times as indicated by the value of
1384 ipSystemStatsDiscontinuityTime.
1385 *
1386 * Attributes:
1387 * accessible 1 isscalar 0 enums 0 hasdefval 0
1388 * readable 1 iscolumn 1 ranges 0 hashint 0
1389 * settable 0
1390 *
1391 *
1392 * Its syntax is COUNTER (based on perltype COUNTER)
1393 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
1394 */
1395 /**
1396 * Extract the current value of the ipSystemStatsInDelivers data.
1397 *
1398 * Set a value using the data context for the row.
1399 *
1400 * @param rowreq_ctx
1401 * Pointer to the row request context.
1402 * @param ipSystemStatsInDelivers_val_ptr
1403 * Pointer to storage for a u_long variable
1404 *
1405 * @retval MFD_SUCCESS : success
1406 * @retval MFD_SKIP : skip this node (no value for now)
1407 * @retval MFD_ERROR : Any other error
1408 */
1409 int
1410 ipSystemStatsInDelivers_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
1411 u_long * ipSystemStatsInDelivers_val_ptr)
1412 {
1413 /** we should have a non-NULL pointer */
1414 netsnmp_assert(NULL != ipSystemStatsInDelivers_val_ptr);
1415
1416
1417 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInDelivers_get",
1418 "called\n"));
1419
1420 netsnmp_assert(NULL != rowreq_ctx);
1421
1422 /*
1423 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInDelivers data.
1424 * copy (* ipSystemStatsInDelivers_val_ptr ) from rowreq_ctx->data
1425 */
1426 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINDELIVERS])
1427 return MFD_SKIP;
1428
1429 (*ipSystemStatsInDelivers_val_ptr) =
1430 rowreq_ctx->data->stats.HCInDelivers.low;
1431
1432 return MFD_SUCCESS;
1433 } /* ipSystemStatsInDelivers_get */
1434
1435 /*---------------------------------------------------------------------
1436 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCInDelivers
1437 * ipSystemStatsHCInDelivers is subid 19 of ipSystemStatsEntry.
1438 * Its status is Current, and its access level is ReadOnly.
1439 * OID: .1.3.6.1.2.1.4.31.1.1.19
1440 * Description:
1441 The total number of datagrams successfully delivered to IP
1442 user-protocols (including ICMP). This object counts the
1443 same packets as ipSystemStatsInDelivers but allows for
1444 larger values.
1445
1446
1447 Discontinuities in the value of this counter can occur at
1448 re-initialization of the management system, and at other
1449 times as indicated by the value of
1450 ipSystemStatsDiscontinuityTime.
1451 *
1452 * Attributes:
1453 * accessible 1 isscalar 0 enums 0 hasdefval 0
1454 * readable 1 iscolumn 1 ranges 0 hashint 0
1455 * settable 0
1456 *
1457 *
1458 * Its syntax is COUNTER64 (based on perltype COUNTER64)
1459 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
1460 */
1461 /**
1462 * Extract the current value of the ipSystemStatsHCInDelivers data.
1463 *
1464 * Set a value using the data context for the row.
1465 *
1466 * @param rowreq_ctx
1467 * Pointer to the row request context.
1468 * @param ipSystemStatsHCInDelivers_val_ptr
1469 * Pointer to storage for a struct counter64 variable
1470 *
1471 * @retval MFD_SUCCESS : success
1472 * @retval MFD_SKIP : skip this node (no value for now)
1473 * @retval MFD_ERROR : Any other error
1474 */
1475 int
1476 ipSystemStatsHCInDelivers_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
1477 struct counter64 *ipSystemStatsHCInDelivers_val_ptr)
1478 {
1479 /** we should have a non-NULL pointer */
1480 netsnmp_assert(NULL != ipSystemStatsHCInDelivers_val_ptr);
1481
1482 /*
1483 * TODO:231:o: |-> copy ipSystemStatsHCInDelivers data.
1484 * get (* ipSystemStatsHCInDelivers_val_ptr ).low and (* ipSystemStatsHCInDelivers_val_ptr ).high from rowreq_ctx->data
1485 */
1486 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINDELIVERS])
1487 return MFD_SKIP;
1488
1489 (*ipSystemStatsHCInDelivers_val_ptr).low =
1490 rowreq_ctx->data->stats.HCInDelivers.low;
1491 (*ipSystemStatsHCInDelivers_val_ptr).high =
1492 rowreq_ctx->data->stats.HCInDelivers.high;
1493
1494 return MFD_SUCCESS;
1495 } /* ipSystemStatsHCInDelivers_get */
1496
1497 /*---------------------------------------------------------------------
1498 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutRequests
1499 * ipSystemStatsOutRequests is subid 20 of ipSystemStatsEntry.
1500 * Its status is Current, and its access level is ReadOnly.
1501 * OID: .1.3.6.1.2.1.4.31.1.1.20
1502 * Description:
1503 The total number of IP datagrams which local IP user-
1504 protocols (including ICMP) supplied to IP in requests for
1505 transmission. Note that this counter does not include any
1506 datagrams counted in ipSystemStatsOutForwDatagrams.
1507
1508
1509 Discontinuities in the value of this counter can occur at
1510 re-initialization of the management system, and at other
1511 times as indicated by the value of
1512 ipSystemStatsDiscontinuityTime.
1513 *
1514 * Attributes:
1515 * accessible 1 isscalar 0 enums 0 hasdefval 0
1516 * readable 1 iscolumn 1 ranges 0 hashint 0
1517 * settable 0
1518 *
1519 *
1520 * Its syntax is COUNTER (based on perltype COUNTER)
1521 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
1522 */
1523 /**
1524 * Extract the current value of the ipSystemStatsOutRequests data.
1525 *
1526 * Set a value using the data context for the row.
1527 *
1528 * @param rowreq_ctx
1529 * Pointer to the row request context.
1530 * @param ipSystemStatsOutRequests_val_ptr
1531 * Pointer to storage for a u_long variable
1532 *
1533 * @retval MFD_SUCCESS : success
1534 * @retval MFD_SKIP : skip this node (no value for now)
1535 * @retval MFD_ERROR : Any other error
1536 */
1537 int
1538 ipSystemStatsOutRequests_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
1539 u_long * ipSystemStatsOutRequests_val_ptr)
1540 {
1541 /** we should have a non-NULL pointer */
1542 netsnmp_assert(NULL != ipSystemStatsOutRequests_val_ptr);
1543
1544
1545 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutRequests_get",
1546 "called\n"));
1547
1548 netsnmp_assert(NULL != rowreq_ctx);
1549
1550 /*
1551 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutRequests data.
1552 * copy (* ipSystemStatsOutRequests_val_ptr ) from rowreq_ctx->data
1553 */
1554 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTREQUESTS])
1555 return MFD_SKIP;
1556
1557 (*ipSystemStatsOutRequests_val_ptr) =
1558 rowreq_ctx->data->stats.HCOutRequests.low;
1559
1560 return MFD_SUCCESS;
1561 } /* ipSystemStatsOutRequests_get */
1562
1563 /*---------------------------------------------------------------------
1564 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCOutRequests
1565 * ipSystemStatsHCOutRequests is subid 21 of ipSystemStatsEntry.
1566 * Its status is Current, and its access level is ReadOnly.
1567 * OID: .1.3.6.1.2.1.4.31.1.1.21
1568 * Description:
1569 The total number of IP datagrams which local IP user-
1570 protocols (including ICMP) supplied to IP in requests for
1571 transmission. This object counts the same packets as
1572 ipSystemStatsHCOutRequests but allows for larger values.
1573
1574
1575 Discontinuities in the value of this counter can occur at
1576 re-initialization of the management system, and at other
1577 times as indicated by the value of
1578 ipSystemStatsDiscontinuityTime.
1579 *
1580 * Attributes:
1581 * accessible 1 isscalar 0 enums 0 hasdefval 0
1582 * readable 1 iscolumn 1 ranges 0 hashint 0
1583 * settable 0
1584 *
1585 *
1586 * Its syntax is COUNTER64 (based on perltype COUNTER64)
1587 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
1588 */
1589 /**
1590 * Extract the current value of the ipSystemStatsHCOutRequests data.
1591 *
1592 * Set a value using the data context for the row.
1593 *
1594 * @param rowreq_ctx
1595 * Pointer to the row request context.
1596 * @param ipSystemStatsHCOutRequests_val_ptr
1597 * Pointer to storage for a struct counter64 variable
1598 *
1599 * @retval MFD_SUCCESS : success
1600 * @retval MFD_SKIP : skip this node (no value for now)
1601 * @retval MFD_ERROR : Any other error
1602 */
1603 int
1604 ipSystemStatsHCOutRequests_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
1605 struct counter64 *ipSystemStatsHCOutRequests_val_ptr)
1606 {
1607 /** we should have a non-NULL pointer */
1608 netsnmp_assert(NULL != ipSystemStatsHCOutRequests_val_ptr);
1609
1610 /*
1611 * TODO:231:o: |-> copy ipSystemStatsHCOutRequests data.
1612 * get (* ipSystemStatsHCOutRequests_val_ptr ).low and (* ipSystemStatsHCOutRequests_val_ptr ).high from rowreq_ctx->data
1613 */
1614 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTREQUESTS])
1615 return MFD_SKIP;
1616
1617 (*ipSystemStatsHCOutRequests_val_ptr).low =
1618 rowreq_ctx->data->stats.HCOutRequests.low;
1619 (*ipSystemStatsHCOutRequests_val_ptr).high =
1620 rowreq_ctx->data->stats.HCOutRequests.high;
1621
1622 return MFD_SUCCESS;
1623 } /* ipSystemStatsHCOutRequests_get */
1624
1625 /*---------------------------------------------------------------------
1626 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutNoRoutes
1627 * ipSystemStatsOutNoRoutes is subid 22 of ipSystemStatsEntry.
1628 * Its status is Current, and its access level is ReadOnly.
1629 * OID: .1.3.6.1.2.1.4.31.1.1.22
1630 * Description:
1631 The number of locally generated IP datagrams discarded
1632 because no route could be found to transmit them to their
1633 destination.
1634
1635
1636 Discontinuities in the value of this counter can occur at
1637 re-initialization of the management system, and at other
1638 times as indicated by the value of
1639 ipSystemStatsDiscontinuityTime.
1640 *
1641 * Attributes:
1642 * accessible 1 isscalar 0 enums 0 hasdefval 0
1643 * readable 1 iscolumn 1 ranges 0 hashint 0
1644 * settable 0
1645 *
1646 *
1647 * Its syntax is COUNTER (based on perltype COUNTER)
1648 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
1649 */
1650 /**
1651 * Extract the current value of the ipSystemStatsOutNoRoutes data.
1652 *
1653 * Set a value using the data context for the row.
1654 *
1655 * @param rowreq_ctx
1656 * Pointer to the row request context.
1657 * @param ipSystemStatsOutNoRoutes_val_ptr
1658 * Pointer to storage for a u_long variable
1659 *
1660 * @retval MFD_SUCCESS : success
1661 * @retval MFD_SKIP : skip this node (no value for now)
1662 * @retval MFD_ERROR : Any other error
1663 */
1664 int
1665 ipSystemStatsOutNoRoutes_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
1666 u_long * ipSystemStatsOutNoRoutes_val_ptr)
1667 {
1668 /** we should have a non-NULL pointer */
1669 netsnmp_assert(NULL != ipSystemStatsOutNoRoutes_val_ptr);
1670
1671
1672 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutNoRoutes_get",
1673 "called\n"));
1674
1675 netsnmp_assert(NULL != rowreq_ctx);
1676
1677 /*
1678 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutNoRoutes data.
1679 * copy (* ipSystemStatsOutNoRoutes_val_ptr ) from rowreq_ctx->data
1680 */
1681 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTNOROUTES])
1682 return MFD_SKIP;
1683
1684 (*ipSystemStatsOutNoRoutes_val_ptr) =
1685 rowreq_ctx->data->stats.HCOutNoRoutes.low;
1686
1687 return MFD_SUCCESS;
1688 } /* ipSystemStatsOutNoRoutes_get */
1689
1690 /*---------------------------------------------------------------------
1691 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutForwDatagrams
1692 * ipSystemStatsOutForwDatagrams is subid 23 of ipSystemStatsEntry.
1693 * Its status is Current, and its access level is ReadOnly.
1694 * OID: .1.3.6.1.2.1.4.31.1.1.23
1695 * Description:
1696 The number of datagrams for which this entity was not their
1697 final IP destination and for which it was successful in
1698 finding a path to their final destination. In entities
1699 which do not act as IP routers, this counter will include
1700 only those datagrams which were Source-Routed via this
1701 entity, and the Source-Route processing was successful.
1702
1703
1704 When tracking interface statistics the counter of the
1705 outgoing interface is incremented for a successfully
1706 forwarded datagram.
1707
1708
1709 Discontinuities in the value of this counter can occur at
1710
1711
1712
1713
1714 re-initialization of the management system, and at other
1715 times as indicated by the value of
1716 ipSystemStatsDiscontinuityTime.
1717 *
1718 * Attributes:
1719 * accessible 1 isscalar 0 enums 0 hasdefval 0
1720 * readable 1 iscolumn 1 ranges 0 hashint 0
1721 * settable 0
1722 *
1723 *
1724 * Its syntax is COUNTER (based on perltype COUNTER)
1725 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
1726 */
1727 /**
1728 * Extract the current value of the ipSystemStatsOutForwDatagrams data.
1729 *
1730 * Set a value using the data context for the row.
1731 *
1732 * @param rowreq_ctx
1733 * Pointer to the row request context.
1734 * @param ipSystemStatsOutForwDatagrams_val_ptr
1735 * Pointer to storage for a u_long variable
1736 *
1737 * @retval MFD_SUCCESS : success
1738 * @retval MFD_SKIP : skip this node (no value for now)
1739 * @retval MFD_ERROR : Any other error
1740 */
1741 int
1742 ipSystemStatsOutForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
1743 rowreq_ctx,
1744 u_long *
1745 ipSystemStatsOutForwDatagrams_val_ptr)
1746 {
1747 /** we should have a non-NULL pointer */
1748 netsnmp_assert(NULL != ipSystemStatsOutForwDatagrams_val_ptr);
1749
1750
1751 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutForwDatagrams_get", "called\n"));
1752
1753 netsnmp_assert(NULL != rowreq_ctx);
1754
1755 /*
1756 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutForwDatagrams data.
1757 * copy (* ipSystemStatsOutForwDatagrams_val_ptr ) from rowreq_ctx->data
1758 */
1759 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTFORWDATAGRAMS])
1760 return MFD_SKIP;
1761
1762 (*ipSystemStatsOutForwDatagrams_val_ptr) =
1763 rowreq_ctx->data->stats.HCOutForwDatagrams.low;
1764
1765 return MFD_SUCCESS;
1766 } /* ipSystemStatsOutForwDatagrams_get */
1767
1768 /*---------------------------------------------------------------------
1769 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCOutForwDatagrams
1770 * ipSystemStatsHCOutForwDatagrams is subid 24 of ipSystemStatsEntry.
1771 * Its status is Current, and its access level is ReadOnly.
1772 * OID: .1.3.6.1.2.1.4.31.1.1.24
1773 * Description:
1774 The number of datagrams for which this entity was not their
1775 final IP destination and for which it was successful in
1776 finding a path to their final destination. This object
1777 counts the same packets as ipSystemStatsOutForwDatagrams but
1778 allows for larger values.
1779
1780
1781 Discontinuities in the value of this counter can occur at
1782 re-initialization of the management system, and at other
1783 times as indicated by the value of
1784 ipSystemStatsDiscontinuityTime.
1785 *
1786 * Attributes:
1787 * accessible 1 isscalar 0 enums 0 hasdefval 0
1788 * readable 1 iscolumn 1 ranges 0 hashint 0
1789 * settable 0
1790 *
1791 *
1792 * Its syntax is COUNTER64 (based on perltype COUNTER64)
1793 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
1794 */
1795 /**
1796 * Extract the current value of the ipSystemStatsHCOutForwDatagrams data.
1797 *
1798 * Set a value using the data context for the row.
1799 *
1800 * @param rowreq_ctx
1801 * Pointer to the row request context.
1802 * @param ipSystemStatsHCOutForwDatagrams_val_ptr
1803 * Pointer to storage for a struct counter64 variable
1804 *
1805 * @retval MFD_SUCCESS : success
1806 * @retval MFD_SKIP : skip this node (no value for now)
1807 * @retval MFD_ERROR : Any other error
1808 */
1809 int
1810 ipSystemStatsHCOutForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *
1811 rowreq_ctx,
1812 struct counter64 *
1813 ipSystemStatsHCOutForwDatagrams_val_ptr)
1814 {
1815 /** we should have a non-NULL pointer */
1816 netsnmp_assert(NULL != ipSystemStatsHCOutForwDatagrams_val_ptr);
1817
1818 /*
1819 * TODO:231:o: |-> copy ipSystemStatsHCOutForwDatagrams data.
1820 * get (* ipSystemStatsHCOutForwDatagrams_val_ptr ).low and (* ipSystemStatsHCOutForwDatagrams_val_ptr ).high from rowreq_ctx->data
1821 */
1822 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTFORWDATAGRAMS])
1823 return MFD_SKIP;
1824
1825 (*ipSystemStatsHCOutForwDatagrams_val_ptr).low =
1826 rowreq_ctx->data->stats.HCOutForwDatagrams.low;
1827 (*ipSystemStatsHCOutForwDatagrams_val_ptr).high =
1828 rowreq_ctx->data->stats.HCOutForwDatagrams.high;
1829
1830 return MFD_SUCCESS;
1831 } /* ipSystemStatsHCOutForwDatagrams_get */
1832
1833 /*---------------------------------------------------------------------
1834 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutDiscards
1835 * ipSystemStatsOutDiscards is subid 25 of ipSystemStatsEntry.
1836 * Its status is Current, and its access level is ReadOnly.
1837 * OID: .1.3.6.1.2.1.4.31.1.1.25
1838 * Description:
1839 The number of output IP datagrams for which no problem was
1840 encountered to prevent their transmission to their
1841 destination, but which were discarded (e.g., for lack of
1842 buffer space). Note that this counter would include
1843 datagrams counted in ipSystemStatsOutForwDatagrams if any
1844 such datagrams met this (discretionary) discard criterion.
1845
1846
1847 Discontinuities in the value of this counter can occur at
1848 re-initialization of the management system, and at other
1849 times as indicated by the value of
1850 ipSystemStatsDiscontinuityTime.
1851 *
1852 * Attributes:
1853 * accessible 1 isscalar 0 enums 0 hasdefval 0
1854 * readable 1 iscolumn 1 ranges 0 hashint 0
1855 * settable 0
1856 *
1857 *
1858 * Its syntax is COUNTER (based on perltype COUNTER)
1859 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
1860 */
1861 /**
1862 * Extract the current value of the ipSystemStatsOutDiscards data.
1863 *
1864 * Set a value using the data context for the row.
1865 *
1866 * @param rowreq_ctx
1867 * Pointer to the row request context.
1868 * @param ipSystemStatsOutDiscards_val_ptr
1869 * Pointer to storage for a u_long variable
1870 *
1871 * @retval MFD_SUCCESS : success
1872 * @retval MFD_SKIP : skip this node (no value for now)
1873 * @retval MFD_ERROR : Any other error
1874 */
1875 int
1876 ipSystemStatsOutDiscards_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
1877 u_long * ipSystemStatsOutDiscards_val_ptr)
1878 {
1879 /** we should have a non-NULL pointer */
1880 netsnmp_assert(NULL != ipSystemStatsOutDiscards_val_ptr);
1881
1882
1883 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutDiscards_get",
1884 "called\n"));
1885
1886 netsnmp_assert(NULL != rowreq_ctx);
1887
1888 /*
1889 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutDiscards data.
1890 * copy (* ipSystemStatsOutDiscards_val_ptr ) from rowreq_ctx->data
1891 */
1892 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTDISCARDS])
1893 return MFD_SKIP;
1894
1895 (*ipSystemStatsOutDiscards_val_ptr) =
1896 rowreq_ctx->data->stats.HCOutDiscards.low;
1897
1898 return MFD_SUCCESS;
1899 } /* ipSystemStatsOutDiscards_get */
1900
1901 /*---------------------------------------------------------------------
1902 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutFragReqds
1903 * ipSystemStatsOutFragReqds is subid 26 of ipSystemStatsEntry.
1904 * Its status is Current, and its access level is ReadOnly.
1905 * OID: .1.3.6.1.2.1.4.31.1.1.26
1906 * Description:
1907 The number of IP datagrams that would require fragmentation
1908 in order to be transmitted.
1909
1910
1911
1912
1913
1914 When tracking interface statistics the counter of the
1915 outgoing interface is incremented for a successfully
1916 fragmented datagram.
1917
1918
1919 Discontinuities in the value of this counter can occur at
1920 re-initialization of the management system, and at other
1921 times as indicated by the value of
1922 ipSystemStatsDiscontinuityTime.
1923 *
1924 * Attributes:
1925 * accessible 1 isscalar 0 enums 0 hasdefval 0
1926 * readable 1 iscolumn 1 ranges 0 hashint 0
1927 * settable 0
1928 *
1929 *
1930 * Its syntax is COUNTER (based on perltype COUNTER)
1931 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
1932 */
1933 /**
1934 * Extract the current value of the ipSystemStatsOutFragReqds data.
1935 *
1936 * Set a value using the data context for the row.
1937 *
1938 * @param rowreq_ctx
1939 * Pointer to the row request context.
1940 * @param ipSystemStatsOutFragReqds_val_ptr
1941 * Pointer to storage for a u_long variable
1942 *
1943 * @retval MFD_SUCCESS : success
1944 * @retval MFD_SKIP : skip this node (no value for now)
1945 * @retval MFD_ERROR : Any other error
1946 */
1947 int
1948 ipSystemStatsOutFragReqds_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
1949 u_long * ipSystemStatsOutFragReqds_val_ptr)
1950 {
1951 /** we should have a non-NULL pointer */
1952 netsnmp_assert(NULL != ipSystemStatsOutFragReqds_val_ptr);
1953
1954
1955 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutFragReqds_get",
1956 "called\n"));
1957
1958 netsnmp_assert(NULL != rowreq_ctx);
1959
1960 /*
1961 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutFragReqds data.
1962 * copy (* ipSystemStatsOutFragReqds_val_ptr ) from rowreq_ctx->data
1963 */
1964 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTFRAGREQDS])
1965 return MFD_SKIP;
1966
1967 (*ipSystemStatsOutFragReqds_val_ptr) =
1968 rowreq_ctx->data->stats.HCOutFragReqds.low;
1969
1970 return MFD_SUCCESS;
1971 } /* ipSystemStatsOutFragReqds_get */
1972
1973 /*---------------------------------------------------------------------
1974 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutFragOKs
1975 * ipSystemStatsOutFragOKs is subid 27 of ipSystemStatsEntry.
1976 * Its status is Current, and its access level is ReadOnly.
1977 * OID: .1.3.6.1.2.1.4.31.1.1.27
1978 * Description:
1979 The number of IP datagrams that have been successfully
1980 fragmented.
1981
1982
1983 When tracking interface statistics the counter of the
1984 outgoing interface is incremented for a successfully
1985 fragmented datagram.
1986
1987
1988 Discontinuities in the value of this counter can occur at
1989 re-initialization of the management system, and at other
1990 times as indicated by the value of
1991 ipSystemStatsDiscontinuityTime.
1992 *
1993 * Attributes:
1994 * accessible 1 isscalar 0 enums 0 hasdefval 0
1995 * readable 1 iscolumn 1 ranges 0 hashint 0
1996 * settable 0
1997 *
1998 *
1999 * Its syntax is COUNTER (based on perltype COUNTER)
2000 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
2001 */
2002 /**
2003 * Extract the current value of the ipSystemStatsOutFragOKs data.
2004 *
2005 * Set a value using the data context for the row.
2006 *
2007 * @param rowreq_ctx
2008 * Pointer to the row request context.
2009 * @param ipSystemStatsOutFragOKs_val_ptr
2010 * Pointer to storage for a u_long variable
2011 *
2012 * @retval MFD_SUCCESS : success
2013 * @retval MFD_SKIP : skip this node (no value for now)
2014 * @retval MFD_ERROR : Any other error
2015 */
2016 int
2017 ipSystemStatsOutFragOKs_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2018 u_long * ipSystemStatsOutFragOKs_val_ptr)
2019 {
2020 /** we should have a non-NULL pointer */
2021 netsnmp_assert(NULL != ipSystemStatsOutFragOKs_val_ptr);
2022
2023
2024 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutFragOKs_get",
2025 "called\n"));
2026
2027 netsnmp_assert(NULL != rowreq_ctx);
2028
2029 /*
2030 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutFragOKs data.
2031 * copy (* ipSystemStatsOutFragOKs_val_ptr ) from rowreq_ctx->data
2032 */
2033 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTFRAGOKS])
2034 return MFD_SKIP;
2035
2036 (*ipSystemStatsOutFragOKs_val_ptr) =
2037 rowreq_ctx->data->stats.HCOutFragOKs.low;
2038
2039 return MFD_SUCCESS;
2040 } /* ipSystemStatsOutFragOKs_get */
2041
2042 /*---------------------------------------------------------------------
2043 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutFragFails
2044 * ipSystemStatsOutFragFails is subid 28 of ipSystemStatsEntry.
2045 * Its status is Current, and its access level is ReadOnly.
2046 * OID: .1.3.6.1.2.1.4.31.1.1.28
2047 * Description:
2048 The number of IP datagrams that have been discarded because
2049 they needed to be fragmented but could not be. This
2050 includes IPv4 packets that have the DF bit set and IPv6
2051 packets that are being forwarded and exceed the outgoing
2052 link MTU.
2053
2054
2055 When tracking interface statistics the counter of the
2056 outgoing interface is incremented for an unsuccessfully
2057 fragmented datagram.
2058
2059
2060 Discontinuities in the value of this counter can occur at
2061 re-initialization of the management system, and at other
2062 times as indicated by the value of
2063 ipSystemStatsDiscontinuityTime.
2064 *
2065 * Attributes:
2066 * accessible 1 isscalar 0 enums 0 hasdefval 0
2067 * readable 1 iscolumn 1 ranges 0 hashint 0
2068 * settable 0
2069 *
2070 *
2071 * Its syntax is COUNTER (based on perltype COUNTER)
2072 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
2073 */
2074 /**
2075 * Extract the current value of the ipSystemStatsOutFragFails data.
2076 *
2077 * Set a value using the data context for the row.
2078 *
2079 * @param rowreq_ctx
2080 * Pointer to the row request context.
2081 * @param ipSystemStatsOutFragFails_val_ptr
2082 * Pointer to storage for a u_long variable
2083 *
2084 * @retval MFD_SUCCESS : success
2085 * @retval MFD_SKIP : skip this node (no value for now)
2086 * @retval MFD_ERROR : Any other error
2087 */
2088 int
2089 ipSystemStatsOutFragFails_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2090 u_long * ipSystemStatsOutFragFails_val_ptr)
2091 {
2092 /** we should have a non-NULL pointer */
2093 netsnmp_assert(NULL != ipSystemStatsOutFragFails_val_ptr);
2094
2095
2096 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutFragFails_get",
2097 "called\n"));
2098
2099 netsnmp_assert(NULL != rowreq_ctx);
2100
2101 /*
2102 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutFragFails data.
2103 * copy (* ipSystemStatsOutFragFails_val_ptr ) from rowreq_ctx->data
2104 */
2105 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTFRAGFAILS])
2106 return MFD_SKIP;
2107
2108 (*ipSystemStatsOutFragFails_val_ptr) =
2109 rowreq_ctx->data->stats.HCOutFragFails.low;
2110
2111 return MFD_SUCCESS;
2112 } /* ipSystemStatsOutFragFails_get */
2113
2114 /*---------------------------------------------------------------------
2115 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutFragCreates
2116 * ipSystemStatsOutFragCreates is subid 29 of ipSystemStatsEntry.
2117 * Its status is Current, and its access level is ReadOnly.
2118 * OID: .1.3.6.1.2.1.4.31.1.1.29
2119 * Description:
2120 The number of output datagram fragments that have been
2121 generated as a result of IP fragmentation.
2122
2123
2124 When tracking interface statistics the counter of the
2125 outgoing interface is incremented for a successfully
2126 fragmented datagram.
2127
2128
2129 Discontinuities in the value of this counter can occur at
2130 re-initialization of the management system, and at other
2131 times as indicated by the value of
2132 ipSystemStatsDiscontinuityTime.
2133 *
2134 * Attributes:
2135 * accessible 1 isscalar 0 enums 0 hasdefval 0
2136 * readable 1 iscolumn 1 ranges 0 hashint 0
2137 * settable 0
2138 *
2139 *
2140 * Its syntax is COUNTER (based on perltype COUNTER)
2141 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
2142 */
2143 /**
2144 * Extract the current value of the ipSystemStatsOutFragCreates data.
2145 *
2146 * Set a value using the data context for the row.
2147 *
2148 * @param rowreq_ctx
2149 * Pointer to the row request context.
2150 * @param ipSystemStatsOutFragCreates_val_ptr
2151 * Pointer to storage for a u_long variable
2152 *
2153 * @retval MFD_SUCCESS : success
2154 * @retval MFD_SKIP : skip this node (no value for now)
2155 * @retval MFD_ERROR : Any other error
2156 */
2157 int
2158 ipSystemStatsOutFragCreates_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2159 u_long *
2160 ipSystemStatsOutFragCreates_val_ptr)
2161 {
2162 /** we should have a non-NULL pointer */
2163 netsnmp_assert(NULL != ipSystemStatsOutFragCreates_val_ptr);
2164
2165
2166 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutFragCreates_get", "called\n"));
2167
2168 netsnmp_assert(NULL != rowreq_ctx);
2169
2170 /*
2171 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutFragCreates data.
2172 * copy (* ipSystemStatsOutFragCreates_val_ptr ) from rowreq_ctx->data
2173 */
2174 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTFRAGCREATES])
2175 return MFD_SKIP;
2176
2177 (*ipSystemStatsOutFragCreates_val_ptr) =
2178 rowreq_ctx->data->stats.HCOutFragCreates.low;
2179
2180 return MFD_SUCCESS;
2181 } /* ipSystemStatsOutFragCreates_get */
2182
2183 /*---------------------------------------------------------------------
2184 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutTransmits
2185 * ipSystemStatsOutTransmits is subid 30 of ipSystemStatsEntry.
2186 * Its status is Current, and its access level is ReadOnly.
2187 * OID: .1.3.6.1.2.1.4.31.1.1.30
2188 * Description:
2189 The total number of IP datagrams that this entity supplied
2190 to the lower layers for transmission. This includes
2191 datagrams generated local and those forwarded by this
2192 entity.
2193
2194
2195 Discontinuities in the value of this counter can occur at
2196 re-initialization of the management system, and at other
2197 times as indicated by the value of
2198 ipSystemStatsDiscontinuityTime.
2199 *
2200 * Attributes:
2201 * accessible 1 isscalar 0 enums 0 hasdefval 0
2202 * readable 1 iscolumn 1 ranges 0 hashint 0
2203 * settable 0
2204 *
2205 *
2206 * Its syntax is COUNTER (based on perltype COUNTER)
2207 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
2208 */
2209 /**
2210 * Extract the current value of the ipSystemStatsOutTransmits data.
2211 *
2212 * Set a value using the data context for the row.
2213 *
2214 * @param rowreq_ctx
2215 * Pointer to the row request context.
2216 * @param ipSystemStatsOutTransmits_val_ptr
2217 * Pointer to storage for a u_long variable
2218 *
2219 * @retval MFD_SUCCESS : success
2220 * @retval MFD_SKIP : skip this node (no value for now)
2221 * @retval MFD_ERROR : Any other error
2222 */
2223 int
2224 ipSystemStatsOutTransmits_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2225 u_long * ipSystemStatsOutTransmits_val_ptr)
2226 {
2227 /** we should have a non-NULL pointer */
2228 netsnmp_assert(NULL != ipSystemStatsOutTransmits_val_ptr);
2229
2230
2231 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutTransmits_get",
2232 "called\n"));
2233
2234 netsnmp_assert(NULL != rowreq_ctx);
2235
2236 /*
2237 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutTransmits data.
2238 * copy (* ipSystemStatsOutTransmits_val_ptr ) from rowreq_ctx->data
2239 */
2240 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTTRANSMITS])
2241 return MFD_SKIP;
2242
2243 (*ipSystemStatsOutTransmits_val_ptr) =
2244 rowreq_ctx->data->stats.HCOutTransmits.low;
2245
2246 return MFD_SUCCESS;
2247 } /* ipSystemStatsOutTransmits_get */
2248
2249 /*---------------------------------------------------------------------
2250 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCOutTransmits
2251 * ipSystemStatsHCOutTransmits is subid 31 of ipSystemStatsEntry.
2252 * Its status is Current, and its access level is ReadOnly.
2253 * OID: .1.3.6.1.2.1.4.31.1.1.31
2254 * Description:
2255 The total number of IP datagrams that this entity supplied
2256 to the lower layers for transmission. This object counts
2257 the same datagrams as ipSystemStatsOutTransmits but allows
2258 for larger values.
2259
2260
2261 Discontinuities in the value of this counter can occur at
2262 re-initialization of the management system, and at other
2263 times as indicated by the value of
2264 ipSystemStatsDiscontinuityTime.
2265 *
2266 * Attributes:
2267 * accessible 1 isscalar 0 enums 0 hasdefval 0
2268 * readable 1 iscolumn 1 ranges 0 hashint 0
2269 * settable 0
2270 *
2271 *
2272 * Its syntax is COUNTER64 (based on perltype COUNTER64)
2273 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
2274 */
2275 /**
2276 * Extract the current value of the ipSystemStatsHCOutTransmits data.
2277 *
2278 * Set a value using the data context for the row.
2279 *
2280 * @param rowreq_ctx
2281 * Pointer to the row request context.
2282 * @param ipSystemStatsHCOutTransmits_val_ptr
2283 * Pointer to storage for a struct counter64 variable
2284 *
2285 * @retval MFD_SUCCESS : success
2286 * @retval MFD_SKIP : skip this node (no value for now)
2287 * @retval MFD_ERROR : Any other error
2288 */
2289 int
2290 ipSystemStatsHCOutTransmits_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2291 struct counter64 *ipSystemStatsHCOutTransmits_val_ptr)
2292 {
2293 /** we should have a non-NULL pointer */
2294 netsnmp_assert(NULL != ipSystemStatsHCOutTransmits_val_ptr);
2295
2296 /*
2297 * TODO:231:o: |-> copy ipSystemStatsHCOutTransmits data.
2298 * get (* ipSystemStatsHCOutTransmits_val_ptr ).low and (* ipSystemStatsHCOutTransmits_val_ptr ).high from rowreq_ctx->data
2299 */
2300 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTTRANSMITS])
2301 return MFD_SKIP;
2302
2303 (*ipSystemStatsHCOutTransmits_val_ptr).low =
2304 rowreq_ctx->data->stats.HCOutTransmits.low;
2305 (*ipSystemStatsHCOutTransmits_val_ptr).high =
2306 rowreq_ctx->data->stats.HCOutTransmits.high;
2307
2308 return MFD_SUCCESS;
2309 } /* ipSystemStatsHCOutTransmits_get */
2310
2311 /*---------------------------------------------------------------------
2312 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutOctets
2313 * ipSystemStatsOutOctets is subid 32 of ipSystemStatsEntry.
2314 * Its status is Current, and its access level is ReadOnly.
2315 * OID: .1.3.6.1.2.1.4.31.1.1.32
2316 * Description:
2317 The total number of octets in IP datagrams delivered to the
2318 lower layers for transmission. Octets from datagrams
2319 counted in ipSystemStatsOutTransmits MUST be counted here.
2320
2321
2322 Discontinuities in the value of this counter can occur at
2323 re-initialization of the management system, and at other
2324 times as indicated by the value of
2325 ipSystemStatsDiscontinuityTime.
2326 *
2327 * Attributes:
2328 * accessible 1 isscalar 0 enums 0 hasdefval 0
2329 * readable 1 iscolumn 1 ranges 0 hashint 0
2330 * settable 0
2331 *
2332 *
2333 * Its syntax is COUNTER (based on perltype COUNTER)
2334 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
2335 */
2336 /**
2337 * Extract the current value of the ipSystemStatsOutOctets data.
2338 *
2339 * Set a value using the data context for the row.
2340 *
2341 * @param rowreq_ctx
2342 * Pointer to the row request context.
2343 * @param ipSystemStatsOutOctets_val_ptr
2344 * Pointer to storage for a u_long variable
2345 *
2346 * @retval MFD_SUCCESS : success
2347 * @retval MFD_SKIP : skip this node (no value for now)
2348 * @retval MFD_ERROR : Any other error
2349 */
2350 int
2351 ipSystemStatsOutOctets_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2352 u_long * ipSystemStatsOutOctets_val_ptr)
2353 {
2354 /** we should have a non-NULL pointer */
2355 netsnmp_assert(NULL != ipSystemStatsOutOctets_val_ptr);
2356
2357
2358 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutOctets_get",
2359 "called\n"));
2360
2361 netsnmp_assert(NULL != rowreq_ctx);
2362
2363 /*
2364 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutOctets data.
2365 * copy (* ipSystemStatsOutOctets_val_ptr ) from rowreq_ctx->data
2366 */
2367 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTOCTETS])
2368 return MFD_SKIP;
2369
2370 (*ipSystemStatsOutOctets_val_ptr) =
2371 rowreq_ctx->data->stats.HCOutOctets.low;
2372
2373 return MFD_SUCCESS;
2374 } /* ipSystemStatsOutOctets_get */
2375
2376 /*---------------------------------------------------------------------
2377 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCOutOctets
2378 * ipSystemStatsHCOutOctets is subid 33 of ipSystemStatsEntry.
2379 * Its status is Current, and its access level is ReadOnly.
2380 * OID: .1.3.6.1.2.1.4.31.1.1.33
2381 * Description:
2382 The total number of octets in IP datagrams delivered to the
2383 lower layers for transmission. This objects counts the same
2384 octets as ipSystemStatsOutOctets but allows for larger
2385 values.
2386
2387
2388 Discontinuities in the value of this counter can occur at
2389 re-initialization of the management system, and at other
2390 times as indicated by the value of
2391 ipSystemStatsDiscontinuityTime.
2392 *
2393 * Attributes:
2394 * accessible 1 isscalar 0 enums 0 hasdefval 0
2395 * readable 1 iscolumn 1 ranges 0 hashint 0
2396 * settable 0
2397 *
2398 *
2399 * Its syntax is COUNTER64 (based on perltype COUNTER64)
2400 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
2401 */
2402 /**
2403 * Extract the current value of the ipSystemStatsHCOutOctets data.
2404 *
2405 * Set a value using the data context for the row.
2406 *
2407 * @param rowreq_ctx
2408 * Pointer to the row request context.
2409 * @param ipSystemStatsHCOutOctets_val_ptr
2410 * Pointer to storage for a struct counter64 variable
2411 *
2412 * @retval MFD_SUCCESS : success
2413 * @retval MFD_SKIP : skip this node (no value for now)
2414 * @retval MFD_ERROR : Any other error
2415 */
2416 int
2417 ipSystemStatsHCOutOctets_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2418 struct counter64 *ipSystemStatsHCOutOctets_val_ptr)
2419 {
2420 /** we should have a non-NULL pointer */
2421 netsnmp_assert(NULL != ipSystemStatsHCOutOctets_val_ptr);
2422
2423 /*
2424 * TODO:231:o: |-> copy ipSystemStatsHCOutOctets data.
2425 * get (* ipSystemStatsHCOutOctets_val_ptr ).low and (* ipSystemStatsHCOutOctets_val_ptr ).high from rowreq_ctx->data
2426 */
2427 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTOCTETS])
2428 return MFD_SKIP;
2429
2430 (*ipSystemStatsHCOutOctets_val_ptr).low =
2431 rowreq_ctx->data->stats.HCOutOctets.low;
2432 (*ipSystemStatsHCOutOctets_val_ptr).high =
2433 rowreq_ctx->data->stats.HCOutOctets.high;
2434
2435 return MFD_SUCCESS;
2436 } /* ipSystemStatsHCOutOctets_get */
2437
2438 /*---------------------------------------------------------------------
2439 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInMcastPkts
2440 * ipSystemStatsInMcastPkts is subid 34 of ipSystemStatsEntry.
2441 * Its status is Current, and its access level is ReadOnly.
2442 * OID: .1.3.6.1.2.1.4.31.1.1.34
2443 * Description:
2444 The number of IP multicast datagrams received.
2445
2446
2447 Discontinuities in the value of this counter can occur at
2448 re-initialization of the management system, and at other
2449 times as indicated by the value of
2450 ipSystemStatsDiscontinuityTime.
2451 *
2452 * Attributes:
2453 * accessible 1 isscalar 0 enums 0 hasdefval 0
2454 * readable 1 iscolumn 1 ranges 0 hashint 0
2455 * settable 0
2456 *
2457 *
2458 * Its syntax is COUNTER (based on perltype COUNTER)
2459 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
2460 */
2461 /**
2462 * Extract the current value of the ipSystemStatsInMcastPkts data.
2463 *
2464 * Set a value using the data context for the row.
2465 *
2466 * @param rowreq_ctx
2467 * Pointer to the row request context.
2468 * @param ipSystemStatsInMcastPkts_val_ptr
2469 * Pointer to storage for a u_long variable
2470 *
2471 * @retval MFD_SUCCESS : success
2472 * @retval MFD_SKIP : skip this node (no value for now)
2473 * @retval MFD_ERROR : Any other error
2474 */
2475 int
2476 ipSystemStatsInMcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2477 u_long * ipSystemStatsInMcastPkts_val_ptr)
2478 {
2479 /** we should have a non-NULL pointer */
2480 netsnmp_assert(NULL != ipSystemStatsInMcastPkts_val_ptr);
2481
2482
2483 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInMcastPkts_get",
2484 "called\n"));
2485
2486 netsnmp_assert(NULL != rowreq_ctx);
2487
2488 /*
2489 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInMcastPkts data.
2490 * copy (* ipSystemStatsInMcastPkts_val_ptr ) from rowreq_ctx->data
2491 */
2492 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINMCASTPKTS])
2493 return MFD_SKIP;
2494
2495 (*ipSystemStatsInMcastPkts_val_ptr) =
2496 rowreq_ctx->data->stats.HCInMcastPkts.low;
2497
2498 return MFD_SUCCESS;
2499 } /* ipSystemStatsInMcastPkts_get */
2500
2501 /*---------------------------------------------------------------------
2502 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCInMcastPkts
2503 * ipSystemStatsHCInMcastPkts is subid 35 of ipSystemStatsEntry.
2504 * Its status is Current, and its access level is ReadOnly.
2505 * OID: .1.3.6.1.2.1.4.31.1.1.35
2506 * Description:
2507 The number of IP multicast datagrams received. This object
2508 counts the same datagrams as ipSystemStatsInMcastPkts but
2509 allows for larger values.
2510
2511
2512 Discontinuities in the value of this counter can occur at
2513 re-initialization of the management system, and at other
2514 times as indicated by the value of
2515 ipSystemStatsDiscontinuityTime.
2516 *
2517 * Attributes:
2518 * accessible 1 isscalar 0 enums 0 hasdefval 0
2519 * readable 1 iscolumn 1 ranges 0 hashint 0
2520 * settable 0
2521 *
2522 *
2523 * Its syntax is COUNTER64 (based on perltype COUNTER64)
2524 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
2525 */
2526 /**
2527 * Extract the current value of the ipSystemStatsHCInMcastPkts data.
2528 *
2529 * Set a value using the data context for the row.
2530 *
2531 * @param rowreq_ctx
2532 * Pointer to the row request context.
2533 * @param ipSystemStatsHCInMcastPkts_val_ptr
2534 * Pointer to storage for a struct counter64 variable
2535 *
2536 * @retval MFD_SUCCESS : success
2537 * @retval MFD_SKIP : skip this node (no value for now)
2538 * @retval MFD_ERROR : Any other error
2539 */
2540 int
2541 ipSystemStatsHCInMcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2542 struct counter64 *ipSystemStatsHCInMcastPkts_val_ptr)
2543 {
2544 /** we should have a non-NULL pointer */
2545 netsnmp_assert(NULL != ipSystemStatsHCInMcastPkts_val_ptr);
2546
2547 /*
2548 * TODO:231:o: |-> copy ipSystemStatsHCInMcastPkts data.
2549 * get (* ipSystemStatsHCInMcastPkts_val_ptr ).low and (* ipSystemStatsHCInMcastPkts_val_ptr ).high from rowreq_ctx->data
2550 */
2551 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINMCASTPKTS])
2552 return MFD_SKIP;
2553
2554 (*ipSystemStatsHCInMcastPkts_val_ptr).low =
2555 rowreq_ctx->data->stats.HCInMcastPkts.low;
2556 (*ipSystemStatsHCInMcastPkts_val_ptr).high =
2557 rowreq_ctx->data->stats.HCInMcastPkts.high;
2558
2559 return MFD_SUCCESS;
2560 } /* ipSystemStatsHCInMcastPkts_get */
2561
2562 /*---------------------------------------------------------------------
2563 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInMcastOctets
2564 * ipSystemStatsInMcastOctets is subid 36 of ipSystemStatsEntry.
2565 * Its status is Current, and its access level is ReadOnly.
2566 * OID: .1.3.6.1.2.1.4.31.1.1.36
2567 * Description:
2568 The total number of octets received in IP multicast
2569 datagrams. Octets from datagrams counted in
2570 ipSystemStatsOutMcastPkts MUST be counted here.
2571
2572
2573 Discontinuities in the value of this counter can occur at
2574 re-initialization of the management system, and at other
2575 times as indicated by the value of
2576 ipSystemStatsDiscontinuityTime.
2577 *
2578 * Attributes:
2579 * accessible 1 isscalar 0 enums 0 hasdefval 0
2580 * readable 1 iscolumn 1 ranges 0 hashint 0
2581 * settable 0
2582 *
2583 *
2584 * Its syntax is COUNTER (based on perltype COUNTER)
2585 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
2586 */
2587 /**
2588 * Extract the current value of the ipSystemStatsInMcastOctets data.
2589 *
2590 * Set a value using the data context for the row.
2591 *
2592 * @param rowreq_ctx
2593 * Pointer to the row request context.
2594 * @param ipSystemStatsInMcastOctets_val_ptr
2595 * Pointer to storage for a u_long variable
2596 *
2597 * @retval MFD_SUCCESS : success
2598 * @retval MFD_SKIP : skip this node (no value for now)
2599 * @retval MFD_ERROR : Any other error
2600 */
2601 int
2602 ipSystemStatsInMcastOctets_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2603 u_long * ipSystemStatsInMcastOctets_val_ptr)
2604 {
2605 /** we should have a non-NULL pointer */
2606 netsnmp_assert(NULL != ipSystemStatsInMcastOctets_val_ptr);
2607
2608
2609 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInMcastOctets_get", "called\n"));
2610
2611 netsnmp_assert(NULL != rowreq_ctx);
2612
2613 /*
2614 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInMcastOctets data.
2615 * copy (* ipSystemStatsInMcastOctets_val_ptr ) from rowreq_ctx->data
2616 */
2617 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINMCASTOCTETS])
2618 return MFD_SKIP;
2619
2620 (*ipSystemStatsInMcastOctets_val_ptr) =
2621 rowreq_ctx->data->stats.HCInMcastOctets.low;
2622
2623 return MFD_SUCCESS;
2624 } /* ipSystemStatsInMcastOctets_get */
2625
2626 /*---------------------------------------------------------------------
2627 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCInMcastOctets
2628 * ipSystemStatsHCInMcastOctets is subid 37 of ipSystemStatsEntry.
2629 * Its status is Current, and its access level is ReadOnly.
2630 * OID: .1.3.6.1.2.1.4.31.1.1.37
2631 * Description:
2632 The total number of octets received in IP multicast
2633 datagrams. This object counts the same octets as
2634 ipSystemStatsInMcastOctets but allows for larger values.
2635
2636
2637 Discontinuities in the value of this counter can occur at
2638 re-initialization of the management system, and at other
2639 times as indicated by the value of
2640 ipSystemStatsDiscontinuityTime.
2641 *
2642 * Attributes:
2643 * accessible 1 isscalar 0 enums 0 hasdefval 0
2644 * readable 1 iscolumn 1 ranges 0 hashint 0
2645 * settable 0
2646 *
2647 *
2648 * Its syntax is COUNTER64 (based on perltype COUNTER64)
2649 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
2650 */
2651 /**
2652 * Extract the current value of the ipSystemStatsHCInMcastOctets data.
2653 *
2654 * Set a value using the data context for the row.
2655 *
2656 * @param rowreq_ctx
2657 * Pointer to the row request context.
2658 * @param ipSystemStatsHCInMcastOctets_val_ptr
2659 * Pointer to storage for a struct counter64 variable
2660 *
2661 * @retval MFD_SUCCESS : success
2662 * @retval MFD_SKIP : skip this node (no value for now)
2663 * @retval MFD_ERROR : Any other error
2664 */
2665 int
2666 ipSystemStatsHCInMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
2667 rowreq_ctx,
2668 struct counter64 *
2669 ipSystemStatsHCInMcastOctets_val_ptr)
2670 {
2671 /** we should have a non-NULL pointer */
2672 netsnmp_assert(NULL != ipSystemStatsHCInMcastOctets_val_ptr);
2673
2674 /*
2675 * TODO:231:o: |-> copy ipSystemStatsHCInMcastOctets data.
2676 * get (* ipSystemStatsHCInMcastOctets_val_ptr ).low and (* ipSystemStatsHCInMcastOctets_val_ptr ).high from rowreq_ctx->data
2677 */
2678 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINMCASTOCTETS])
2679 return MFD_SKIP;
2680
2681 (*ipSystemStatsHCInMcastOctets_val_ptr).low =
2682 rowreq_ctx->data->stats.HCInMcastOctets.low;
2683 (*ipSystemStatsHCInMcastOctets_val_ptr).high =
2684 rowreq_ctx->data->stats.HCInMcastOctets.high;
2685
2686 return MFD_SUCCESS;
2687 } /* ipSystemStatsHCInMcastOctets_get */
2688
2689 /*---------------------------------------------------------------------
2690 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutMcastPkts
2691 * ipSystemStatsOutMcastPkts is subid 38 of ipSystemStatsEntry.
2692 * Its status is Current, and its access level is ReadOnly.
2693 * OID: .1.3.6.1.2.1.4.31.1.1.38
2694 * Description:
2695 The number of IP multicast datagrams transmitted.
2696
2697
2698 Discontinuities in the value of this counter can occur at
2699 re-initialization of the management system, and at other
2700 times as indicated by the value of
2701 ipSystemStatsDiscontinuityTime.
2702 *
2703 * Attributes:
2704 * accessible 1 isscalar 0 enums 0 hasdefval 0
2705 * readable 1 iscolumn 1 ranges 0 hashint 0
2706 * settable 0
2707 *
2708 *
2709 * Its syntax is COUNTER (based on perltype COUNTER)
2710 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
2711 */
2712 /**
2713 * Extract the current value of the ipSystemStatsOutMcastPkts data.
2714 *
2715 * Set a value using the data context for the row.
2716 *
2717 * @param rowreq_ctx
2718 * Pointer to the row request context.
2719 * @param ipSystemStatsOutMcastPkts_val_ptr
2720 * Pointer to storage for a u_long variable
2721 *
2722 * @retval MFD_SUCCESS : success
2723 * @retval MFD_SKIP : skip this node (no value for now)
2724 * @retval MFD_ERROR : Any other error
2725 */
2726 int
2727 ipSystemStatsOutMcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2728 u_long * ipSystemStatsOutMcastPkts_val_ptr)
2729 {
2730 /** we should have a non-NULL pointer */
2731 netsnmp_assert(NULL != ipSystemStatsOutMcastPkts_val_ptr);
2732
2733
2734 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutMcastPkts_get",
2735 "called\n"));
2736
2737 netsnmp_assert(NULL != rowreq_ctx);
2738
2739 /*
2740 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutMcastPkts data.
2741 * copy (* ipSystemStatsOutMcastPkts_val_ptr ) from rowreq_ctx->data
2742 */
2743 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTMCASTPKTS])
2744 return MFD_SKIP;
2745
2746 (*ipSystemStatsOutMcastPkts_val_ptr) =
2747 rowreq_ctx->data->stats.HCOutMcastPkts.low;
2748
2749 return MFD_SUCCESS;
2750 } /* ipSystemStatsOutMcastPkts_get */
2751
2752 /*---------------------------------------------------------------------
2753 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCOutMcastPkts
2754 * ipSystemStatsHCOutMcastPkts is subid 39 of ipSystemStatsEntry.
2755 * Its status is Current, and its access level is ReadOnly.
2756 * OID: .1.3.6.1.2.1.4.31.1.1.39
2757 * Description:
2758 The number of IP multicast datagrams transmitted. This
2759 object counts the same datagrams as
2760 ipSystemStatsOutMcastPkts but allows for larger values.
2761
2762
2763 Discontinuities in the value of this counter can occur at
2764 re-initialization of the management system, and at other
2765 times as indicated by the value of
2766 ipSystemStatsDiscontinuityTime.
2767 *
2768 * Attributes:
2769 * accessible 1 isscalar 0 enums 0 hasdefval 0
2770 * readable 1 iscolumn 1 ranges 0 hashint 0
2771 * settable 0
2772 *
2773 *
2774 * Its syntax is COUNTER64 (based on perltype COUNTER64)
2775 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
2776 */
2777 /**
2778 * Extract the current value of the ipSystemStatsHCOutMcastPkts data.
2779 *
2780 * Set a value using the data context for the row.
2781 *
2782 * @param rowreq_ctx
2783 * Pointer to the row request context.
2784 * @param ipSystemStatsHCOutMcastPkts_val_ptr
2785 * Pointer to storage for a struct counter64 variable
2786 *
2787 * @retval MFD_SUCCESS : success
2788 * @retval MFD_SKIP : skip this node (no value for now)
2789 * @retval MFD_ERROR : Any other error
2790 */
2791 int
2792 ipSystemStatsHCOutMcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2793 struct counter64 *ipSystemStatsHCOutMcastPkts_val_ptr)
2794 {
2795 /** we should have a non-NULL pointer */
2796 netsnmp_assert(NULL != ipSystemStatsHCOutMcastPkts_val_ptr);
2797
2798 /*
2799 * TODO:231:o: |-> copy ipSystemStatsHCOutMcastPkts data.
2800 * get (* ipSystemStatsHCOutMcastPkts_val_ptr ).low and (* ipSystemStatsHCOutMcastPkts_val_ptr ).high from rowreq_ctx->data
2801 */
2802 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTMCASTPKTS])
2803 return MFD_SKIP;
2804
2805 (*ipSystemStatsHCOutMcastPkts_val_ptr).low =
2806 rowreq_ctx->data->stats.HCOutMcastPkts.low;
2807 (*ipSystemStatsHCOutMcastPkts_val_ptr).high =
2808 rowreq_ctx->data->stats.HCOutMcastPkts.high;
2809
2810 return MFD_SUCCESS;
2811 } /* ipSystemStatsHCOutMcastPkts_get */
2812
2813 /*---------------------------------------------------------------------
2814 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutMcastOctets
2815 * ipSystemStatsOutMcastOctets is subid 40 of ipSystemStatsEntry.
2816 * Its status is Current, and its access level is ReadOnly.
2817 * OID: .1.3.6.1.2.1.4.31.1.1.40
2818 * Description:
2819 The total number of octets transmitted in IP multicast
2820 datagrams. Octets from datagrams counted in
2821 ipSystemStatsInMcastPkts MUST be counted here.
2822
2823
2824 Discontinuities in the value of this counter can occur at
2825 re-initialization of the management system, and at other
2826 times as indicated by the value of
2827 ipSystemStatsDiscontinuityTime.
2828 *
2829 * Attributes:
2830 * accessible 1 isscalar 0 enums 0 hasdefval 0
2831 * readable 1 iscolumn 1 ranges 0 hashint 0
2832 * settable 0
2833 *
2834 *
2835 * Its syntax is COUNTER (based on perltype COUNTER)
2836 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
2837 */
2838 /**
2839 * Extract the current value of the ipSystemStatsOutMcastOctets data.
2840 *
2841 * Set a value using the data context for the row.
2842 *
2843 * @param rowreq_ctx
2844 * Pointer to the row request context.
2845 * @param ipSystemStatsOutMcastOctets_val_ptr
2846 * Pointer to storage for a u_long variable
2847 *
2848 * @retval MFD_SUCCESS : success
2849 * @retval MFD_SKIP : skip this node (no value for now)
2850 * @retval MFD_ERROR : Any other error
2851 */
2852 int
2853 ipSystemStatsOutMcastOctets_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2854 u_long *
2855 ipSystemStatsOutMcastOctets_val_ptr)
2856 {
2857 /** we should have a non-NULL pointer */
2858 netsnmp_assert(NULL != ipSystemStatsOutMcastOctets_val_ptr);
2859
2860
2861 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutMcastOctets_get", "called\n"));
2862
2863 netsnmp_assert(NULL != rowreq_ctx);
2864
2865 /*
2866 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutMcastOctets data.
2867 * copy (* ipSystemStatsOutMcastOctets_val_ptr ) from rowreq_ctx->data
2868 */
2869 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTMCASTOCTETS])
2870 return MFD_SKIP;
2871
2872 (*ipSystemStatsOutMcastOctets_val_ptr) =
2873 rowreq_ctx->data->stats.HCOutMcastOctets.low;
2874
2875 return MFD_SUCCESS;
2876 } /* ipSystemStatsOutMcastOctets_get */
2877
2878 /*---------------------------------------------------------------------
2879 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCOutMcastOctets
2880 * ipSystemStatsHCOutMcastOctets is subid 41 of ipSystemStatsEntry.
2881 * Its status is Current, and its access level is ReadOnly.
2882 * OID: .1.3.6.1.2.1.4.31.1.1.41
2883 * Description:
2884 The total number of octets transmitted in IP multicast
2885 datagrams. This object counts the same octets as
2886 ipSystemStatsOutMcastOctets but allows for larger values.
2887
2888
2889 Discontinuities in the value of this counter can occur at
2890
2891
2892
2893
2894 re-initialization of the management system, and at other
2895 times as indicated by the value of
2896 ipSystemStatsDiscontinuityTime.
2897 *
2898 * Attributes:
2899 * accessible 1 isscalar 0 enums 0 hasdefval 0
2900 * readable 1 iscolumn 1 ranges 0 hashint 0
2901 * settable 0
2902 *
2903 *
2904 * Its syntax is COUNTER64 (based on perltype COUNTER64)
2905 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
2906 */
2907 /**
2908 * Extract the current value of the ipSystemStatsHCOutMcastOctets data.
2909 *
2910 * Set a value using the data context for the row.
2911 *
2912 * @param rowreq_ctx
2913 * Pointer to the row request context.
2914 * @param ipSystemStatsHCOutMcastOctets_val_ptr
2915 * Pointer to storage for a struct counter64 variable
2916 *
2917 * @retval MFD_SUCCESS : success
2918 * @retval MFD_SKIP : skip this node (no value for now)
2919 * @retval MFD_ERROR : Any other error
2920 */
2921 int
2922 ipSystemStatsHCOutMcastOctets_get(ipSystemStatsTable_rowreq_ctx *
2923 rowreq_ctx,
2924 struct counter64 *
2925 ipSystemStatsHCOutMcastOctets_val_ptr)
2926 {
2927 /** we should have a non-NULL pointer */
2928 netsnmp_assert(NULL != ipSystemStatsHCOutMcastOctets_val_ptr);
2929
2930 /*
2931 * TODO:231:o: |-> copy ipSystemStatsHCOutMcastOctets data.
2932 * get (* ipSystemStatsHCOutMcastOctets_val_ptr ).low and (* ipSystemStatsHCOutMcastOctets_val_ptr ).high from rowreq_ctx->data
2933 */
2934 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTMCASTOCTETS])
2935 return MFD_SKIP;
2936
2937 (*ipSystemStatsHCOutMcastOctets_val_ptr).low =
2938 rowreq_ctx->data->stats.HCOutMcastOctets.low;
2939 (*ipSystemStatsHCOutMcastOctets_val_ptr).high =
2940 rowreq_ctx->data->stats.HCOutMcastOctets.high;
2941
2942 return MFD_SUCCESS;
2943 } /* ipSystemStatsHCOutMcastOctets_get */
2944
2945 /*---------------------------------------------------------------------
2946 * IP-MIB::ipSystemStatsEntry.ipSystemStatsInBcastPkts
2947 * ipSystemStatsInBcastPkts is subid 42 of ipSystemStatsEntry.
2948 * Its status is Current, and its access level is ReadOnly.
2949 * OID: .1.3.6.1.2.1.4.31.1.1.42
2950 * Description:
2951 The number of IP broadcast datagrams received.
2952
2953
2954 Discontinuities in the value of this counter can occur at
2955 re-initialization of the management system, and at other
2956 times as indicated by the value of
2957 ipSystemStatsDiscontinuityTime.
2958 *
2959 * Attributes:
2960 * accessible 1 isscalar 0 enums 0 hasdefval 0
2961 * readable 1 iscolumn 1 ranges 0 hashint 0
2962 * settable 0
2963 *
2964 *
2965 * Its syntax is COUNTER (based on perltype COUNTER)
2966 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
2967 */
2968 /**
2969 * Extract the current value of the ipSystemStatsInBcastPkts data.
2970 *
2971 * Set a value using the data context for the row.
2972 *
2973 * @param rowreq_ctx
2974 * Pointer to the row request context.
2975 * @param ipSystemStatsInBcastPkts_val_ptr
2976 * Pointer to storage for a u_long variable
2977 *
2978 * @retval MFD_SUCCESS : success
2979 * @retval MFD_SKIP : skip this node (no value for now)
2980 * @retval MFD_ERROR : Any other error
2981 */
2982 int
2983 ipSystemStatsInBcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
2984 u_long * ipSystemStatsInBcastPkts_val_ptr)
2985 {
2986 /** we should have a non-NULL pointer */
2987 netsnmp_assert(NULL != ipSystemStatsInBcastPkts_val_ptr);
2988
2989
2990 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInBcastPkts_get",
2991 "called\n"));
2992
2993 netsnmp_assert(NULL != rowreq_ctx);
2994
2995 /*
2996 * TODO:231:o: |-> Extract the current value of the ipSystemStatsInBcastPkts data.
2997 * copy (* ipSystemStatsInBcastPkts_val_ptr ) from rowreq_ctx->data
2998 */
2999 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINBCASTPKTS])
3000 return MFD_SKIP;
3001
3002 (*ipSystemStatsInBcastPkts_val_ptr) =
3003 rowreq_ctx->data->stats.HCInBcastPkts.low;
3004
3005 return MFD_SUCCESS;
3006 } /* ipSystemStatsInBcastPkts_get */
3007
3008 /*---------------------------------------------------------------------
3009 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCInBcastPkts
3010 * ipSystemStatsHCInBcastPkts is subid 43 of ipSystemStatsEntry.
3011 * Its status is Current, and its access level is ReadOnly.
3012 * OID: .1.3.6.1.2.1.4.31.1.1.43
3013 * Description:
3014 The number of IP broadcast datagrams received. This object
3015 counts the same datagrams as ipSystemStatsInBcastPkts but
3016 allows for larger values.
3017
3018
3019 Discontinuities in the value of this counter can occur at
3020 re-initialization of the management system, and at other
3021 times as indicated by the value of
3022 ipSystemStatsDiscontinuityTime.
3023 *
3024 * Attributes:
3025 * accessible 1 isscalar 0 enums 0 hasdefval 0
3026 * readable 1 iscolumn 1 ranges 0 hashint 0
3027 * settable 0
3028 *
3029 *
3030 * Its syntax is COUNTER64 (based on perltype COUNTER64)
3031 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
3032 */
3033 /**
3034 * Extract the current value of the ipSystemStatsHCInBcastPkts data.
3035 *
3036 * Set a value using the data context for the row.
3037 *
3038 * @param rowreq_ctx
3039 * Pointer to the row request context.
3040 * @param ipSystemStatsHCInBcastPkts_val_ptr
3041 * Pointer to storage for a struct counter64 variable
3042 *
3043 * @retval MFD_SUCCESS : success
3044 * @retval MFD_SKIP : skip this node (no value for now)
3045 * @retval MFD_ERROR : Any other error
3046 */
3047 int
3048 ipSystemStatsHCInBcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
3049 struct counter64 *ipSystemStatsHCInBcastPkts_val_ptr)
3050 {
3051 /** we should have a non-NULL pointer */
3052 netsnmp_assert(NULL != ipSystemStatsHCInBcastPkts_val_ptr);
3053
3054 /*
3055 * TODO:231:o: |-> copy ipSystemStatsHCInBcastPkts data.
3056 * get (* ipSystemStatsHCInBcastPkts_val_ptr ).low and (* ipSystemStatsHCInBcastPkts_val_ptr ).high from rowreq_ctx->data
3057 */
3058 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINBCASTPKTS])
3059 return MFD_SKIP;
3060
3061 (*ipSystemStatsHCInBcastPkts_val_ptr).low =
3062 rowreq_ctx->data->stats.HCInBcastPkts.low;
3063 (*ipSystemStatsHCInBcastPkts_val_ptr).high =
3064 rowreq_ctx->data->stats.HCInBcastPkts.high;
3065
3066 return MFD_SUCCESS;
3067 } /* ipSystemStatsHCInBcastPkts_get */
3068
3069 /*---------------------------------------------------------------------
3070 * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutBcastPkts
3071 * ipSystemStatsOutBcastPkts is subid 44 of ipSystemStatsEntry.
3072 * Its status is Current, and its access level is ReadOnly.
3073 * OID: .1.3.6.1.2.1.4.31.1.1.44
3074 * Description:
3075 The number of IP broadcast datagrams transmitted.
3076
3077
3078 Discontinuities in the value of this counter can occur at
3079 re-initialization of the management system, and at other
3080 times as indicated by the value of
3081 ipSystemStatsDiscontinuityTime.
3082 *
3083 * Attributes:
3084 * accessible 1 isscalar 0 enums 0 hasdefval 0
3085 * readable 1 iscolumn 1 ranges 0 hashint 0
3086 * settable 0
3087 *
3088 *
3089 * Its syntax is COUNTER (based on perltype COUNTER)
3090 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
3091 */
3092 /**
3093 * Extract the current value of the ipSystemStatsOutBcastPkts data.
3094 *
3095 * Set a value using the data context for the row.
3096 *
3097 * @param rowreq_ctx
3098 * Pointer to the row request context.
3099 * @param ipSystemStatsOutBcastPkts_val_ptr
3100 * Pointer to storage for a u_long variable
3101 *
3102 * @retval MFD_SUCCESS : success
3103 * @retval MFD_SKIP : skip this node (no value for now)
3104 * @retval MFD_ERROR : Any other error
3105 */
3106 int
3107 ipSystemStatsOutBcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
3108 u_long * ipSystemStatsOutBcastPkts_val_ptr)
3109 {
3110 /** we should have a non-NULL pointer */
3111 netsnmp_assert(NULL != ipSystemStatsOutBcastPkts_val_ptr);
3112
3113
3114 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutBcastPkts_get",
3115 "called\n"));
3116
3117 netsnmp_assert(NULL != rowreq_ctx);
3118
3119 /*
3120 * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutBcastPkts data.
3121 * copy (* ipSystemStatsOutBcastPkts_val_ptr ) from rowreq_ctx->data
3122 */
3123 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTBCASTPKTS])
3124 return MFD_SKIP;
3125
3126 (*ipSystemStatsOutBcastPkts_val_ptr) =
3127 rowreq_ctx->data->stats.HCOutBcastPkts.low;
3128
3129 return MFD_SUCCESS;
3130 } /* ipSystemStatsOutBcastPkts_get */
3131
3132 /*---------------------------------------------------------------------
3133 * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCOutBcastPkts
3134 * ipSystemStatsHCOutBcastPkts is subid 45 of ipSystemStatsEntry.
3135 * Its status is Current, and its access level is ReadOnly.
3136 * OID: .1.3.6.1.2.1.4.31.1.1.45
3137 * Description:
3138 The number of IP broadcast datagrams transmitted. This
3139 object counts the same datagrams as
3140 ipSystemStatsOutBcastPkts but allows for larger values.
3141
3142
3143 Discontinuities in the value of this counter can occur at
3144 re-initialization of the management system, and at other
3145 times as indicated by the value of
3146 ipSystemStatsDiscontinuityTime.
3147 *
3148 * Attributes:
3149 * accessible 1 isscalar 0 enums 0 hasdefval 0
3150 * readable 1 iscolumn 1 ranges 0 hashint 0
3151 * settable 0
3152 *
3153 *
3154 * Its syntax is COUNTER64 (based on perltype COUNTER64)
3155 * The net-snmp type is ASN_COUNTER64. The C type is struct counter64.
3156 */
3157 /**
3158 * Extract the current value of the ipSystemStatsHCOutBcastPkts data.
3159 *
3160 * Set a value using the data context for the row.
3161 *
3162 * @param rowreq_ctx
3163 * Pointer to the row request context.
3164 * @param ipSystemStatsHCOutBcastPkts_val_ptr
3165 * Pointer to storage for a struct counter64 variable
3166 *
3167 * @retval MFD_SUCCESS : success
3168 * @retval MFD_SKIP : skip this node (no value for now)
3169 * @retval MFD_ERROR : Any other error
3170 */
3171 int
3172 ipSystemStatsHCOutBcastPkts_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
3173 struct counter64 *ipSystemStatsHCOutBcastPkts_val_ptr)
3174 {
3175 /** we should have a non-NULL pointer */
3176 netsnmp_assert(NULL != ipSystemStatsHCOutBcastPkts_val_ptr);
3177
3178 /*
3179 * TODO:231:o: |-> copy ipSystemStatsHCOutBcastPkts data.
3180 * get (* ipSystemStatsHCOutBcastPkts_val_ptr ).low and (* ipSystemStatsHCOutBcastPkts_val_ptr ).high from rowreq_ctx->data
3181 */
3182 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_HCOUTBCASTPKTS])
3183 return MFD_SKIP;
3184
3185 (*ipSystemStatsHCOutBcastPkts_val_ptr).low =
3186 rowreq_ctx->data->stats.HCOutBcastPkts.low;
3187 (*ipSystemStatsHCOutBcastPkts_val_ptr).high =
3188 rowreq_ctx->data->stats.HCOutBcastPkts.high;
3189
3190 return MFD_SUCCESS;
3191 } /* ipSystemStatsHCOutBcastPkts_get */
3192
3193 /*---------------------------------------------------------------------
3194 * IP-MIB::ipSystemStatsEntry.ipSystemStatsDiscontinuityTime
3195 * ipSystemStatsDiscontinuityTime is subid 46 of ipSystemStatsEntry.
3196 * Its status is Current, and its access level is ReadOnly.
3197 * OID: .1.3.6.1.2.1.4.31.1.1.46
3198 * Description:
3199 The value of sysUpTime on the most recent occasion at which
3200 any one or more of this entry's counters suffered a
3201 discontinuity.
3202
3203
3204 If no such discontinuities have occurred since the last re-
3205 initialization of the local management subsystem, then this
3206 object contains a zero value.
3207 *
3208 * Attributes:
3209 * accessible 1 isscalar 0 enums 0 hasdefval 0
3210 * readable 1 iscolumn 1 ranges 0 hashint 0
3211 * settable 0
3212 *
3213 *
3214 * Its syntax is TimeStamp (based on perltype TICKS)
3215 * The net-snmp type is ASN_TIMETICKS. The C type decl is u_long (u_long)
3216 */
3217 /**
3218 * Extract the current value of the ipSystemStatsDiscontinuityTime data.
3219 *
3220 * Set a value using the data context for the row.
3221 *
3222 * @param rowreq_ctx
3223 * Pointer to the row request context.
3224 * @param ipSystemStatsDiscontinuityTime_val_ptr
3225 * Pointer to storage for a u_long variable
3226 *
3227 * @retval MFD_SUCCESS : success
3228 * @retval MFD_SKIP : skip this node (no value for now)
3229 * @retval MFD_ERROR : Any other error
3230 */
3231 int
3232 ipSystemStatsDiscontinuityTime_get(ipSystemStatsTable_rowreq_ctx *
3233 rowreq_ctx,
3234 u_long *
3235 ipSystemStatsDiscontinuityTime_val_ptr)
3236 {
3237 /** we should have a non-NULL pointer */
3238 netsnmp_assert(NULL != ipSystemStatsDiscontinuityTime_val_ptr);
3239
3240
3241 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsDiscontinuityTime_get", "called\n"));
3242
3243 netsnmp_assert(NULL != rowreq_ctx);
3244
3245 /*
3246 * TODO:231:o: |-> Extract the current value of the ipSystemStatsDiscontinuityTime data.
3247 * copy (* ipSystemStatsDiscontinuityTime_val_ptr ) from rowreq_ctx->data
3248 */
3249 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_DISCONTINUITYTIME])
3250 return MFD_SKIP;
3251
3252 (*ipSystemStatsDiscontinuityTime_val_ptr) =
3253 rowreq_ctx->ipSystemStatsDiscontinuityTime;
3254
3255 return MFD_SUCCESS;
3256 } /* ipSystemStatsDiscontinuityTime_get */
3257
3258 /*---------------------------------------------------------------------
3259 * IP-MIB::ipSystemStatsEntry.ipSystemStatsRefreshRate
3260 * ipSystemStatsRefreshRate is subid 47 of ipSystemStatsEntry.
3261 * Its status is Current, and its access level is ReadOnly.
3262 * OID: .1.3.6.1.2.1.4.31.1.1.47
3263 * Description:
3264 The minimum reasonable polling interval for this entry.
3265 This object provides an indication of the minimum amount of
3266 time required to update the counters in this entry.
3267 *
3268 * Attributes:
3269 * accessible 1 isscalar 0 enums 0 hasdefval 0
3270 * readable 1 iscolumn 1 ranges 0 hashint 0
3271 * settable 0
3272 *
3273 *
3274 * Its syntax is UNSIGNED32 (based on perltype UNSIGNED32)
3275 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
3276 */
3277 /**
3278 * Extract the current value of the ipSystemStatsRefreshRate data.
3279 *
3280 * Set a value using the data context for the row.
3281 *
3282 * @param rowreq_ctx
3283 * Pointer to the row request context.
3284 * @param ipSystemStatsRefreshRate_val_ptr
3285 * Pointer to storage for a u_long variable
3286 *
3287 * @retval MFD_SUCCESS : success
3288 * @retval MFD_SKIP : skip this node (no value for now)
3289 * @retval MFD_ERROR : Any other error
3290 */
3291 int
3292 ipSystemStatsRefreshRate_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,
3293 u_long * ipSystemStatsRefreshRate_val_ptr)
3294 {
3295 /** we should have a non-NULL pointer */
3296 netsnmp_assert(NULL != ipSystemStatsRefreshRate_val_ptr);
3297
3298
3299 DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsRefreshRate_get",
3300 "called\n"));
3301
3302 netsnmp_assert(NULL != rowreq_ctx);
3303
3304 /*
3305 * TODO:231:o: |-> Extract the current value of the ipSystemStatsRefreshRate data.
3306 * copy (* ipSystemStatsRefreshRate_val_ptr ) from rowreq_ctx->data
3307 */
3308 if (!rowreq_ctx->data->stats.columnAvail[IPSYSTEMSTATSTABLE_REFRESHRATE])
3309 return MFD_SKIP;
3310
3311 (*ipSystemStatsRefreshRate_val_ptr) =
3312 rowreq_ctx->ipSystemStatsRefreshRate;
3313
3314 return MFD_SUCCESS;
3315 } /* ipSystemStatsRefreshRate_get */
3316
3317
3318
3319 /** @} */
3320 /** @} */
3321 /** @{ */