Debian Codegraph @

agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_data_get.c

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