Debian Codegraph @

agent/mibgroup/etherlike-mib/dot3StatsTable/dot3StatsTable_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 "dot3StatsTable.h"
18
19
20 /** @defgroup data_get data_get: Routines to get data
21 *
22 * TODO:230:M: Implement dot3StatsTable get routines.
23 * TODO:240:M: Implement dot3StatsTable 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 dot3StatsTable
35 ***
36 **********************************************************************
37 **********************************************************************/
38 /*
39 * EtherLike-MIB::dot3StatsTable is subid 2 of dot3.
40 * Its status is Current.
41 * OID: .1.3.6.1.2.1.10.7.2, length: 9
42 */
43
44 /*
45 * ---------------------------------------------------------------------
46 * * TODO:200:r: Implement dot3StatsTable data context functions.
47 */
48
49
50 /**
51 * set mib index(es)
52 *
53 * @param tbl_idx mib index structure
54 * @param dot3StatsIndex_val
55 *
56 * @retval MFD_SUCCESS : success.
57 * @retval MFD_ERROR : other error.
58 *
59 * @remark
60 * This convenience function is useful for setting all the MIB index
61 * components with a single function call. It is assume that the C values
62 * have already been mapped from their native/rawformat to the MIB format.
63 */
64 int
65 dot3StatsTable_indexes_set_tbl_idx(dot3StatsTable_mib_index * tbl_idx,
66 long dot3StatsIndex_val)
67 {
68 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsTable_indexes_set_tbl_idx", "called\n"));
69
70 /*
71 * dot3StatsIndex(1)/InterfaceIndex/ASN_INTEGER/long(long)//l/A/w/e/R/d/H
72 */
73 tbl_idx->dot3StatsIndex = dot3StatsIndex_val;
74
75
76 return MFD_SUCCESS;
77 } /* dot3StatsTable_indexes_set_tbl_idx */
78
79 /**
80 * @internal
81 * set row context indexes
82 *
83 * @param reqreq_ctx the row context that needs updated indexes
84 *
85 * @retval MFD_SUCCESS : success.
86 * @retval MFD_ERROR : other error.
87 *
88 * @remark
89 * This function sets the mib indexs, then updates the oid indexs
90 * from the mib index.
91 */
92 int
93 dot3StatsTable_indexes_set(dot3StatsTable_rowreq_ctx * rowreq_ctx,
94 long dot3StatsIndex_val)
95 {
96 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsTable_indexes_set",
97 "called\n"));
98
99 if (MFD_SUCCESS !=
100 dot3StatsTable_indexes_set_tbl_idx(&rowreq_ctx->tbl_idx,
101 dot3StatsIndex_val))
102 return MFD_ERROR;
103
104 /*
105 * convert mib index to oid index
106 */
107 rowreq_ctx->oid_idx.len = sizeof(rowreq_ctx->oid_tmp) / sizeof(oid);
108 if (0 != dot3StatsTable_index_to_oid(&rowreq_ctx->oid_idx,
109 &rowreq_ctx->tbl_idx)) {
110 return MFD_ERROR;
111 }
112
113 return MFD_SUCCESS;
114 } /* dot3StatsTable_indexes_set */
115
116
117 /*---------------------------------------------------------------------
118 * EtherLike-MIB::dot3StatsEntry.dot3StatsAlignmentErrors
119 * dot3StatsAlignmentErrors is subid 2 of dot3StatsEntry.
120 * Its status is Current, and its access level is ReadOnly.
121 * OID: .1.3.6.1.2.1.10.7.2.1.2
122 * Description:
123 A count of frames received on a particular
124 interface that are not an integral number of
125 octets in length and do not pass the FCS check.
126
127 The count represented by an instance of this
128 object is incremented when the alignmentError
129 status is returned by the MAC service to the
130 LLC (or other MAC user). Received frames for
131 which multiple error conditions pertain are,
132 according to the conventions of IEEE 802.3
133 Layer Management, counted exclusively according
134
135 to the error status presented to the LLC.
136
137 This counter does not increment for group
138 encoding schemes greater than 4 bits per group.
139
140 For interfaces operating at 10 Gb/s, this
141 counter can roll over in less than 5 minutes if
142 it is incrementing at its maximum rate. Since
143 that amount of time could be less than a
144 management station's poll cycle time, in order
145 to avoid a loss of information, a management
146 station is advised to poll the
147 dot3HCStatsAlignmentErrors object for 10 Gb/s
148 or faster interfaces.
149
150 Discontinuities in the value of this counter can
151 occur at re-initialization of the management
152 system, and at other times as indicated by the
153 value of ifCounterDiscontinuityTime.
154 *
155 * Attributes:
156 * accessible 1 isscalar 0 enums 0 hasdefval 0
157 * readable 1 iscolumn 1 ranges 0 hashint 0
158 * settable 0
159 *
160 *
161 * Its syntax is COUNTER (based on perltype COUNTER)
162 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
163 */
164 /**
165 * Extract the current value of the dot3StatsAlignmentErrors data.
166 *
167 * Set a value using the data context for the row.
168 *
169 * @param rowreq_ctx
170 * Pointer to the row request context.
171 * @param dot3StatsAlignmentErrors_val_ptr
172 * Pointer to storage for a u_long variable
173 *
174 * @retval MFD_SUCCESS : success
175 * @retval MFD_SKIP : skip this node (no value for now)
176 * @retval MFD_ERROR : Any other error
177 */
178 int
179 dot3StatsAlignmentErrors_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
180 u_long * dot3StatsAlignmentErrors_val_ptr)
181 {
182 /** we should have a non-NULL pointer */
183 netsnmp_assert(NULL != dot3StatsAlignmentErrors_val_ptr);
184
185
186 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsAlignmentErrors_get",
187 "called\n"));
188
189 netsnmp_assert(NULL != rowreq_ctx);
190
191 /*
192 * TODO:231:o: |-> Extract the current value of the dot3StatsAlignmentErrors data.
193 * copy (* dot3StatsAlignmentErrors_val_ptr ) from rowreq_ctx->data
194 */
195 (*dot3StatsAlignmentErrors_val_ptr) =
196 rowreq_ctx->data.dot3StatsAlignmentErrors;
197
198 return MFD_SUCCESS;
199 } /* dot3StatsAlignmentErrors_get */
200
201 /*---------------------------------------------------------------------
202 * EtherLike-MIB::dot3StatsEntry.dot3StatsFCSErrors
203 * dot3StatsFCSErrors is subid 3 of dot3StatsEntry.
204 * Its status is Current, and its access level is ReadOnly.
205 * OID: .1.3.6.1.2.1.10.7.2.1.3
206 * Description:
207 A count of frames received on a particular
208 interface that are an integral number of octets
209 in length but do not pass the FCS check. This
210 count does not include frames received with
211 frame-too-long or frame-too-short error.
212
213 The count represented by an instance of this
214 object is incremented when the frameCheckError
215 status is returned by the MAC service to the
216 LLC (or other MAC user). Received frames for
217 which multiple error conditions pertain are,
218 according to the conventions of IEEE 802.3
219 Layer Management, counted exclusively according
220 to the error status presented to the LLC.
221
222 Note: Coding errors detected by the physical
223 layer for speeds above 10 Mb/s will cause the
224 frame to fail the FCS check.
225
226 For interfaces operating at 10 Gb/s, this
227 counter can roll over in less than 5 minutes if
228
229 it is incrementing at its maximum rate. Since
230 that amount of time could be less than a
231 management station's poll cycle time, in order
232 to avoid a loss of information, a management
233 station is advised to poll the
234 dot3HCStatsFCSErrors object for 10 Gb/s or
235 faster interfaces.
236
237 Discontinuities in the value of this counter can
238 occur at re-initialization of the management
239 system, and at other times as indicated by the
240 value of ifCounterDiscontinuityTime.
241 *
242 * Attributes:
243 * accessible 1 isscalar 0 enums 0 hasdefval 0
244 * readable 1 iscolumn 1 ranges 0 hashint 0
245 * settable 0
246 *
247 *
248 * Its syntax is COUNTER (based on perltype COUNTER)
249 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
250 */
251 /**
252 * Extract the current value of the dot3StatsFCSErrors data.
253 *
254 * Set a value using the data context for the row.
255 *
256 * @param rowreq_ctx
257 * Pointer to the row request context.
258 * @param dot3StatsFCSErrors_val_ptr
259 * Pointer to storage for a u_long variable
260 *
261 * @retval MFD_SUCCESS : success
262 * @retval MFD_SKIP : skip this node (no value for now)
263 * @retval MFD_ERROR : Any other error
264 */
265 int
266 dot3StatsFCSErrors_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
267 u_long * dot3StatsFCSErrors_val_ptr)
268 {
269 /** we should have a non-NULL pointer */
270 netsnmp_assert(NULL != dot3StatsFCSErrors_val_ptr);
271
272
273 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsFCSErrors_get",
274 "called\n"));
275
276 netsnmp_assert(NULL != rowreq_ctx);
277
278 /*
279 * TODO:231:o: |-> Extract the current value of the dot3StatsFCSErrors data.
280 * copy (* dot3StatsFCSErrors_val_ptr ) from rowreq_ctx->data
281 */
282 (*dot3StatsFCSErrors_val_ptr) = rowreq_ctx->data.dot3StatsFCSErrors;
283
284 return MFD_SUCCESS;
285 } /* dot3StatsFCSErrors_get */
286
287 /*---------------------------------------------------------------------
288 * EtherLike-MIB::dot3StatsEntry.dot3StatsSingleCollisionFrames
289 * dot3StatsSingleCollisionFrames is subid 4 of dot3StatsEntry.
290 * Its status is Current, and its access level is ReadOnly.
291 * OID: .1.3.6.1.2.1.10.7.2.1.4
292 * Description:
293 A count of frames that are involved in a single
294 collision, and are subsequently transmitted
295 successfully.
296
297 A frame that is counted by an instance of this
298 object is also counted by the corresponding
299 instance of either the ifOutUcastPkts,
300 ifOutMulticastPkts, or ifOutBroadcastPkts,
301 and is not counted by the corresponding
302 instance of the dot3StatsMultipleCollisionFrames
303 object.
304
305 This counter does not increment when the
306 interface is operating in full-duplex mode.
307
308 Discontinuities in the value of this counter can
309 occur at re-initialization of the management
310 system, and at other times as indicated by the
311 value of ifCounterDiscontinuityTime.
312 *
313 * Attributes:
314 * accessible 1 isscalar 0 enums 0 hasdefval 0
315 * readable 1 iscolumn 1 ranges 0 hashint 0
316 * settable 0
317 *
318 *
319 * Its syntax is COUNTER (based on perltype COUNTER)
320 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
321 */
322 /**
323 * Extract the current value of the dot3StatsSingleCollisionFrames data.
324 *
325 * Set a value using the data context for the row.
326 *
327 * @param rowreq_ctx
328 * Pointer to the row request context.
329 * @param dot3StatsSingleCollisionFrames_val_ptr
330 * Pointer to storage for a u_long variable
331 *
332 * @retval MFD_SUCCESS : success
333 * @retval MFD_SKIP : skip this node (no value for now)
334 * @retval MFD_ERROR : Any other error
335 */
336 int
337 dot3StatsSingleCollisionFrames_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
338 u_long *
339 dot3StatsSingleCollisionFrames_val_ptr)
340 {
341 /** we should have a non-NULL pointer */
342 netsnmp_assert(NULL != dot3StatsSingleCollisionFrames_val_ptr);
343
344
345 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsSingleCollisionFrames_get", "called\n"));
346
347 netsnmp_assert(NULL != rowreq_ctx);
348
349 /*
350 * TODO:231:o: |-> Extract the current value of the dot3StatsSingleCollisionFrames data.
351 * copy (* dot3StatsSingleCollisionFrames_val_ptr ) from rowreq_ctx->data
352 */
353 (*dot3StatsSingleCollisionFrames_val_ptr) =
354 rowreq_ctx->data.dot3StatsSingleCollisionFrames;
355
356 return MFD_SUCCESS;
357 } /* dot3StatsSingleCollisionFrames_get */
358
359 /*---------------------------------------------------------------------
360 * EtherLike-MIB::dot3StatsEntry.dot3StatsMultipleCollisionFrames
361 * dot3StatsMultipleCollisionFrames is subid 5 of dot3StatsEntry.
362 * Its status is Current, and its access level is ReadOnly.
363 * OID: .1.3.6.1.2.1.10.7.2.1.5
364 * Description:
365 A count of frames that are involved in more
366
367 than one collision and are subsequently
368 transmitted successfully.
369
370 A frame that is counted by an instance of this
371 object is also counted by the corresponding
372 instance of either the ifOutUcastPkts,
373 ifOutMulticastPkts, or ifOutBroadcastPkts,
374 and is not counted by the corresponding
375 instance of the dot3StatsSingleCollisionFrames
376 object.
377
378 This counter does not increment when the
379 interface is operating in full-duplex mode.
380
381 Discontinuities in the value of this counter can
382 occur at re-initialization of the management
383 system, and at other times as indicated by the
384 value of ifCounterDiscontinuityTime.
385 *
386 * Attributes:
387 * accessible 1 isscalar 0 enums 0 hasdefval 0
388 * readable 1 iscolumn 1 ranges 0 hashint 0
389 * settable 0
390 *
391 *
392 * Its syntax is COUNTER (based on perltype COUNTER)
393 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
394 */
395 /**
396 * Extract the current value of the dot3StatsMultipleCollisionFrames data.
397 *
398 * Set a value using the data context for the row.
399 *
400 * @param rowreq_ctx
401 * Pointer to the row request context.
402 * @param dot3StatsMultipleCollisionFrames_val_ptr
403 * Pointer to storage for a u_long variable
404 *
405 * @retval MFD_SUCCESS : success
406 * @retval MFD_SKIP : skip this node (no value for now)
407 * @retval MFD_ERROR : Any other error
408 */
409 int
410 dot3StatsMultipleCollisionFrames_get(dot3StatsTable_rowreq_ctx *
411 rowreq_ctx,
412 u_long *
413 dot3StatsMultipleCollisionFrames_val_ptr)
414 {
415 /** we should have a non-NULL pointer */
416 netsnmp_assert(NULL != dot3StatsMultipleCollisionFrames_val_ptr);
417
418
419 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsMultipleCollisionFrames_get", "called\n"));
420
421 netsnmp_assert(NULL != rowreq_ctx);
422
423 /*
424 * TODO:231:o: |-> Extract the current value of the dot3StatsMultipleCollisionFrames data.
425 * copy (* dot3StatsMultipleCollisionFrames_val_ptr ) from rowreq_ctx->data
426 */
427 (*dot3StatsMultipleCollisionFrames_val_ptr) =
428 rowreq_ctx->data.dot3StatsMultipleCollisionFrames;
429
430 return MFD_SUCCESS;
431 } /* dot3StatsMultipleCollisionFrames_get */
432
433 /*---------------------------------------------------------------------
434 * EtherLike-MIB::dot3StatsEntry.dot3StatsSQETestErrors
435 * dot3StatsSQETestErrors is subid 6 of dot3StatsEntry.
436 * Its status is Current, and its access level is ReadOnly.
437 * OID: .1.3.6.1.2.1.10.7.2.1.6
438 * Description:
439 A count of times that the SQE TEST ERROR
440 is received on a particular interface. The
441 SQE TEST ERROR is set in accordance with the
442 rules for verification of the SQE detection
443 mechanism in the PLS Carrier Sense Function as
444 described in IEEE Std. 802.3, 2000 Edition,
445 section 7.2.4.6.
446
447 This counter does not increment on interfaces
448 operating at speeds greater than 10 Mb/s, or on
449 interfaces operating in full-duplex mode.
450
451 Discontinuities in the value of this counter can
452 occur at re-initialization of the management
453 system, and at other times as indicated by the
454 value of ifCounterDiscontinuityTime.
455 *
456 * Attributes:
457 * accessible 1 isscalar 0 enums 0 hasdefval 0
458 * readable 1 iscolumn 1 ranges 0 hashint 0
459 * settable 0
460 *
461 *
462 * Its syntax is COUNTER (based on perltype COUNTER)
463 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
464 */
465 /**
466 * Extract the current value of the dot3StatsSQETestErrors data.
467 *
468 * Set a value using the data context for the row.
469 *
470 * @param rowreq_ctx
471 * Pointer to the row request context.
472 * @param dot3StatsSQETestErrors_val_ptr
473 * Pointer to storage for a u_long variable
474 *
475 * @retval MFD_SUCCESS : success
476 * @retval MFD_SKIP : skip this node (no value for now)
477 * @retval MFD_ERROR : Any other error
478 */
479 int
480 dot3StatsSQETestErrors_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
481 u_long * dot3StatsSQETestErrors_val_ptr)
482 {
483 /** we should have a non-NULL pointer */
484 netsnmp_assert(NULL != dot3StatsSQETestErrors_val_ptr);
485
486
487 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsSQETestErrors_get",
488 "called\n"));
489
490 netsnmp_assert(NULL != rowreq_ctx);
491
492 /*
493 * TODO:231:o: |-> Extract the current value of the dot3StatsSQETestErrors data.
494 * copy (* dot3StatsSQETestErrors_val_ptr ) from rowreq_ctx->data
495 */
496 (*dot3StatsSQETestErrors_val_ptr) =
497 rowreq_ctx->data.dot3StatsSQETestErrors;
498
499 return MFD_SUCCESS;
500 } /* dot3StatsSQETestErrors_get */
501
502 /*---------------------------------------------------------------------
503 * EtherLike-MIB::dot3StatsEntry.dot3StatsDeferredTransmissions
504 * dot3StatsDeferredTransmissions is subid 7 of dot3StatsEntry.
505 * Its status is Current, and its access level is ReadOnly.
506 * OID: .1.3.6.1.2.1.10.7.2.1.7
507 * Description:
508 A count of frames for which the first
509 transmission attempt on a particular interface
510 is delayed because the medium is busy.
511
512 The count represented by an instance of this
513 object does not include frames involved in
514 collisions.
515
516 This counter does not increment when the
517 interface is operating in full-duplex mode.
518
519 Discontinuities in the value of this counter can
520 occur at re-initialization of the management
521 system, and at other times as indicated by the
522 value of ifCounterDiscontinuityTime.
523 *
524 * Attributes:
525 * accessible 1 isscalar 0 enums 0 hasdefval 0
526 * readable 1 iscolumn 1 ranges 0 hashint 0
527 * settable 0
528 *
529 *
530 * Its syntax is COUNTER (based on perltype COUNTER)
531 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
532 */
533 /**
534 * Extract the current value of the dot3StatsDeferredTransmissions data.
535 *
536 * Set a value using the data context for the row.
537 *
538 * @param rowreq_ctx
539 * Pointer to the row request context.
540 * @param dot3StatsDeferredTransmissions_val_ptr
541 * Pointer to storage for a u_long variable
542 *
543 * @retval MFD_SUCCESS : success
544 * @retval MFD_SKIP : skip this node (no value for now)
545 * @retval MFD_ERROR : Any other error
546 */
547 int
548 dot3StatsDeferredTransmissions_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
549 u_long *
550 dot3StatsDeferredTransmissions_val_ptr)
551 {
552 /** we should have a non-NULL pointer */
553 netsnmp_assert(NULL != dot3StatsDeferredTransmissions_val_ptr);
554
555
556 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsDeferredTransmissions_get", "called\n"));
557
558 netsnmp_assert(NULL != rowreq_ctx);
559
560 /*
561 * TODO:231:o: |-> Extract the current value of the dot3StatsDeferredTransmissions data.
562 * copy (* dot3StatsDeferredTransmissions_val_ptr ) from rowreq_ctx->data
563 */
564 (*dot3StatsDeferredTransmissions_val_ptr) =
565 rowreq_ctx->data.dot3StatsDeferredTransmissions;
566
567 return MFD_SUCCESS;
568 } /* dot3StatsDeferredTransmissions_get */
569
570 /*---------------------------------------------------------------------
571 * EtherLike-MIB::dot3StatsEntry.dot3StatsLateCollisions
572 * dot3StatsLateCollisions is subid 8 of dot3StatsEntry.
573 * Its status is Current, and its access level is ReadOnly.
574 * OID: .1.3.6.1.2.1.10.7.2.1.8
575 * Description:
576 The number of times that a collision is
577 detected on a particular interface later than
578 one slotTime into the transmission of a packet.
579
580 A (late) collision included in a count
581 represented by an instance of this object is
582 also considered as a (generic) collision for
583 purposes of other collision-related
584 statistics.
585
586 This counter does not increment when the
587 interface is operating in full-duplex mode.
588
589 Discontinuities in the value of this counter can
590 occur at re-initialization of the management
591 system, and at other times as indicated by the
592 value of ifCounterDiscontinuityTime.
593 *
594 * Attributes:
595 * accessible 1 isscalar 0 enums 0 hasdefval 0
596 * readable 1 iscolumn 1 ranges 0 hashint 0
597 * settable 0
598 *
599 *
600 * Its syntax is COUNTER (based on perltype COUNTER)
601 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
602 */
603 /**
604 * Extract the current value of the dot3StatsLateCollisions data.
605 *
606 * Set a value using the data context for the row.
607 *
608 * @param rowreq_ctx
609 * Pointer to the row request context.
610 * @param dot3StatsLateCollisions_val_ptr
611 * Pointer to storage for a u_long variable
612 *
613 * @retval MFD_SUCCESS : success
614 * @retval MFD_SKIP : skip this node (no value for now)
615 * @retval MFD_ERROR : Any other error
616 */
617 int
618 dot3StatsLateCollisions_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
619 u_long * dot3StatsLateCollisions_val_ptr)
620 {
621 /** we should have a non-NULL pointer */
622 netsnmp_assert(NULL != dot3StatsLateCollisions_val_ptr);
623
624
625 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsLateCollisions_get",
626 "called\n"));
627
628 netsnmp_assert(NULL != rowreq_ctx);
629
630 /*
631 * TODO:231:o: |-> Extract the current value of the dot3StatsLateCollisions data.
632 * copy (* dot3StatsLateCollisions_val_ptr ) from rowreq_ctx->data
633 */
634 (*dot3StatsLateCollisions_val_ptr) =
635 rowreq_ctx->data.dot3StatsLateCollisions;
636
637 return MFD_SUCCESS;
638 } /* dot3StatsLateCollisions_get */
639
640 /*---------------------------------------------------------------------
641 * EtherLike-MIB::dot3StatsEntry.dot3StatsExcessiveCollisions
642 * dot3StatsExcessiveCollisions is subid 9 of dot3StatsEntry.
643 * Its status is Current, and its access level is ReadOnly.
644 * OID: .1.3.6.1.2.1.10.7.2.1.9
645 * Description:
646 A count of frames for which transmission on a
647 particular interface fails due to excessive
648 collisions.
649
650 This counter does not increment when the
651 interface is operating in full-duplex mode.
652
653 Discontinuities in the value of this counter can
654 occur at re-initialization of the management
655 system, and at other times as indicated by the
656 value of ifCounterDiscontinuityTime.
657 *
658 * Attributes:
659 * accessible 1 isscalar 0 enums 0 hasdefval 0
660 * readable 1 iscolumn 1 ranges 0 hashint 0
661 * settable 0
662 *
663 *
664 * Its syntax is COUNTER (based on perltype COUNTER)
665 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
666 */
667 /**
668 * Extract the current value of the dot3StatsExcessiveCollisions data.
669 *
670 * Set a value using the data context for the row.
671 *
672 * @param rowreq_ctx
673 * Pointer to the row request context.
674 * @param dot3StatsExcessiveCollisions_val_ptr
675 * Pointer to storage for a u_long variable
676 *
677 * @retval MFD_SUCCESS : success
678 * @retval MFD_SKIP : skip this node (no value for now)
679 * @retval MFD_ERROR : Any other error
680 */
681 int
682 dot3StatsExcessiveCollisions_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
683 u_long *
684 dot3StatsExcessiveCollisions_val_ptr)
685 {
686 /** we should have a non-NULL pointer */
687 netsnmp_assert(NULL != dot3StatsExcessiveCollisions_val_ptr);
688
689
690 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsExcessiveCollisions_get",
691 "called\n"));
692
693 netsnmp_assert(NULL != rowreq_ctx);
694
695 /*
696 * TODO:231:o: |-> Extract the current value of the dot3StatsExcessiveCollisions data.
697 * copy (* dot3StatsExcessiveCollisions_val_ptr ) from rowreq_ctx->data
698 */
699 (*dot3StatsExcessiveCollisions_val_ptr) =
700 rowreq_ctx->data.dot3StatsExcessiveCollisions;
701
702 return MFD_SUCCESS;
703 } /* dot3StatsExcessiveCollisions_get */
704
705 /*---------------------------------------------------------------------
706 * EtherLike-MIB::dot3StatsEntry.dot3StatsInternalMacTransmitErrors
707 * dot3StatsInternalMacTransmitErrors is subid 10 of dot3StatsEntry.
708 * Its status is Current, and its access level is ReadOnly.
709 * OID: .1.3.6.1.2.1.10.7.2.1.10
710 * Description:
711 A count of frames for which transmission on a
712 particular interface fails due to an internal
713 MAC sublayer transmit error. A frame is only
714 counted by an instance of this object if it is
715 not counted by the corresponding instance of
716 either the dot3StatsLateCollisions object, the
717 dot3StatsExcessiveCollisions object, or the
718 dot3StatsCarrierSenseErrors object.
719
720 The precise meaning of the count represented by
721 an instance of this object is implementation-
722 specific. In particular, an instance of this
723 object may represent a count of transmission
724 errors on a particular interface that are not
725 otherwise counted.
726
727 For interfaces operating at 10 Gb/s, this
728 counter can roll over in less than 5 minutes if
729 it is incrementing at its maximum rate. Since
730 that amount of time could be less than a
731 management station's poll cycle time, in order
732 to avoid a loss of information, a management
733 station is advised to poll the
734 dot3HCStatsInternalMacTransmitErrors object for
735 10 Gb/s or faster interfaces.
736
737 Discontinuities in the value of this counter can
738
739 occur at re-initialization of the management
740 system, and at other times as indicated by the
741 value of ifCounterDiscontinuityTime.
742 *
743 * Attributes:
744 * accessible 1 isscalar 0 enums 0 hasdefval 0
745 * readable 1 iscolumn 1 ranges 0 hashint 0
746 * settable 0
747 *
748 *
749 * Its syntax is COUNTER (based on perltype COUNTER)
750 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
751 */
752 /**
753 * Extract the current value of the dot3StatsInternalMacTransmitErrors data.
754 *
755 * Set a value using the data context for the row.
756 *
757 * @param rowreq_ctx
758 * Pointer to the row request context.
759 * @param dot3StatsInternalMacTransmitErrors_val_ptr
760 * Pointer to storage for a u_long variable
761 *
762 * @retval MFD_SUCCESS : success
763 * @retval MFD_SKIP : skip this node (no value for now)
764 * @retval MFD_ERROR : Any other error
765 */
766 int
767 dot3StatsInternalMacTransmitErrors_get(dot3StatsTable_rowreq_ctx *
768 rowreq_ctx,
769 u_long *
770 dot3StatsInternalMacTransmitErrors_val_ptr)
771 {
772 /** we should have a non-NULL pointer */
773 netsnmp_assert(NULL != dot3StatsInternalMacTransmitErrors_val_ptr);
774
775
776 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsInternalMacTransmitErrors_get", "called\n"));
777
778 netsnmp_assert(NULL != rowreq_ctx);
779
780 /*
781 * TODO:231:o: |-> Extract the current value of the dot3StatsInternalMacTransmitErrors data.
782 * copy (* dot3StatsInternalMacTransmitErrors_val_ptr ) from rowreq_ctx->data
783 */
784 (*dot3StatsInternalMacTransmitErrors_val_ptr) =
785 rowreq_ctx->data.dot3StatsInternalMacTransmitErrors;
786
787 return MFD_SUCCESS;
788 } /* dot3StatsInternalMacTransmitErrors_get */
789
790 /*---------------------------------------------------------------------
791 * EtherLike-MIB::dot3StatsEntry.dot3StatsCarrierSenseErrors
792 * dot3StatsCarrierSenseErrors is subid 11 of dot3StatsEntry.
793 * Its status is Current, and its access level is ReadOnly.
794 * OID: .1.3.6.1.2.1.10.7.2.1.11
795 * Description:
796 The number of times that the carrier sense
797 condition was lost or never asserted when
798 attempting to transmit a frame on a particular
799 interface.
800
801 The count represented by an instance of this
802 object is incremented at most once per
803 transmission attempt, even if the carrier sense
804 condition fluctuates during a transmission
805 attempt.
806
807 This counter does not increment when the
808 interface is operating in full-duplex mode.
809
810 Discontinuities in the value of this counter can
811 occur at re-initialization of the management
812 system, and at other times as indicated by the
813 value of ifCounterDiscontinuityTime.
814 *
815 * Attributes:
816 * accessible 1 isscalar 0 enums 0 hasdefval 0
817 * readable 1 iscolumn 1 ranges 0 hashint 0
818 * settable 0
819 *
820 *
821 * Its syntax is COUNTER (based on perltype COUNTER)
822 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
823 */
824 /**
825 * Extract the current value of the dot3StatsCarrierSenseErrors data.
826 *
827 * Set a value using the data context for the row.
828 *
829 * @param rowreq_ctx
830 * Pointer to the row request context.
831 * @param dot3StatsCarrierSenseErrors_val_ptr
832 * Pointer to storage for a u_long variable
833 *
834 * @retval MFD_SUCCESS : success
835 * @retval MFD_SKIP : skip this node (no value for now)
836 * @retval MFD_ERROR : Any other error
837 */
838 int
839 dot3StatsCarrierSenseErrors_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
840 u_long *
841 dot3StatsCarrierSenseErrors_val_ptr)
842 {
843 /** we should have a non-NULL pointer */
844 netsnmp_assert(NULL != dot3StatsCarrierSenseErrors_val_ptr);
845
846
847 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsCarrierSenseErrors_get",
848 "called\n"));
849
850 netsnmp_assert(NULL != rowreq_ctx);
851
852 /*
853 * TODO:231:o: |-> Extract the current value of the dot3StatsCarrierSenseErrors data.
854 * copy (* dot3StatsCarrierSenseErrors_val_ptr ) from rowreq_ctx->data
855 */
856 (*dot3StatsCarrierSenseErrors_val_ptr) =
857 rowreq_ctx->data.dot3StatsCarrierSenseErrors;
858
859 return MFD_SUCCESS;
860 } /* dot3StatsCarrierSenseErrors_get */
861
862 /*---------------------------------------------------------------------
863 * EtherLike-MIB::dot3StatsEntry.dot3StatsFrameTooLongs
864 * dot3StatsFrameTooLongs is subid 13 of dot3StatsEntry.
865 * Its status is Current, and its access level is ReadOnly.
866 * OID: .1.3.6.1.2.1.10.7.2.1.13
867 * Description:
868 A count of frames received on a particular
869 interface that exceed the maximum permitted
870 frame size.
871
872 The count represented by an instance of this
873 object is incremented when the frameTooLong
874 status is returned by the MAC service to the
875 LLC (or other MAC user). Received frames for
876 which multiple error conditions pertain are,
877 according to the conventions of IEEE 802.3
878 Layer Management, counted exclusively according
879 to the error status presented to the LLC.
880
881 For interfaces operating at 10 Gb/s, this
882 counter can roll over in less than 80 minutes if
883 it is incrementing at its maximum rate. Since
884 that amount of time could be less than a
885 management station's poll cycle time, in order
886 to avoid a loss of information, a management
887 station is advised to poll the
888 dot3HCStatsFrameTooLongs object for 10 Gb/s
889 or faster interfaces.
890
891 Discontinuities in the value of this counter can
892 occur at re-initialization of the management
893 system, and at other times as indicated by the
894 value of ifCounterDiscontinuityTime.
895 *
896 * Attributes:
897 * accessible 1 isscalar 0 enums 0 hasdefval 0
898 * readable 1 iscolumn 1 ranges 0 hashint 0
899 * settable 0
900 *
901 *
902 * Its syntax is COUNTER (based on perltype COUNTER)
903 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
904 */
905 /**
906 * Extract the current value of the dot3StatsFrameTooLongs data.
907 *
908 * Set a value using the data context for the row.
909 *
910 * @param rowreq_ctx
911 * Pointer to the row request context.
912 * @param dot3StatsFrameTooLongs_val_ptr
913 * Pointer to storage for a u_long variable
914 *
915 * @retval MFD_SUCCESS : success
916 * @retval MFD_SKIP : skip this node (no value for now)
917 * @retval MFD_ERROR : Any other error
918 */
919 int
920 dot3StatsFrameTooLongs_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
921 u_long * dot3StatsFrameTooLongs_val_ptr)
922 {
923 /** we should have a non-NULL pointer */
924 netsnmp_assert(NULL != dot3StatsFrameTooLongs_val_ptr);
925
926
927 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsFrameTooLongs_get",
928 "called\n"));
929
930 netsnmp_assert(NULL != rowreq_ctx);
931
932 /*
933 * TODO:231:o: |-> Extract the current value of the dot3StatsFrameTooLongs data.
934 * copy (* dot3StatsFrameTooLongs_val_ptr ) from rowreq_ctx->data
935 */
936 (*dot3StatsFrameTooLongs_val_ptr) =
937 rowreq_ctx->data.dot3StatsFrameTooLongs;
938
939 return MFD_SUCCESS;
940 } /* dot3StatsFrameTooLongs_get */
941
942 /*---------------------------------------------------------------------
943 * EtherLike-MIB::dot3StatsEntry.dot3StatsInternalMacReceiveErrors
944 * dot3StatsInternalMacReceiveErrors is subid 16 of dot3StatsEntry.
945 * Its status is Current, and its access level is ReadOnly.
946 * OID: .1.3.6.1.2.1.10.7.2.1.16
947 * Description:
948 A count of frames for which reception on a
949 particular interface fails due to an internal
950 MAC sublayer receive error. A frame is only
951 counted by an instance of this object if it is
952 not counted by the corresponding instance of
953 either the dot3StatsFrameTooLongs object, the
954 dot3StatsAlignmentErrors object, or the
955 dot3StatsFCSErrors object.
956
957 The precise meaning of the count represented by
958 an instance of this object is implementation-
959 specific. In particular, an instance of this
960 object may represent a count of receive errors
961 on a particular interface that are not
962 otherwise counted.
963
964 For interfaces operating at 10 Gb/s, this
965 counter can roll over in less than 5 minutes if
966
967 it is incrementing at its maximum rate. Since
968 that amount of time could be less than a
969 management station's poll cycle time, in order
970 to avoid a loss of information, a management
971 station is advised to poll the
972 dot3HCStatsInternalMacReceiveErrors object for
973 10 Gb/s or faster interfaces.
974
975 Discontinuities in the value of this counter can
976 occur at re-initialization of the management
977 system, and at other times as indicated by the
978 value of ifCounterDiscontinuityTime.
979 *
980 * Attributes:
981 * accessible 1 isscalar 0 enums 0 hasdefval 0
982 * readable 1 iscolumn 1 ranges 0 hashint 0
983 * settable 0
984 *
985 *
986 * Its syntax is COUNTER (based on perltype COUNTER)
987 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
988 */
989 /**
990 * Extract the current value of the dot3StatsInternalMacReceiveErrors data.
991 *
992 * Set a value using the data context for the row.
993 *
994 * @param rowreq_ctx
995 * Pointer to the row request context.
996 * @param dot3StatsInternalMacReceiveErrors_val_ptr
997 * Pointer to storage for a u_long variable
998 *
999 * @retval MFD_SUCCESS : success
1000 * @retval MFD_SKIP : skip this node (no value for now)
1001 * @retval MFD_ERROR : Any other error
1002 */
1003 int
1004 dot3StatsInternalMacReceiveErrors_get(dot3StatsTable_rowreq_ctx *
1005 rowreq_ctx,
1006 u_long *
1007 dot3StatsInternalMacReceiveErrors_val_ptr)
1008 {
1009 /** we should have a non-NULL pointer */
1010 netsnmp_assert(NULL != dot3StatsInternalMacReceiveErrors_val_ptr);
1011
1012
1013 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsInternalMacReceiveErrors_get", "called\n"));
1014
1015 netsnmp_assert(NULL != rowreq_ctx);
1016
1017 /*
1018 * TODO:231:o: |-> Extract the current value of the dot3StatsInternalMacReceiveErrors data.
1019 * copy (* dot3StatsInternalMacReceiveErrors_val_ptr ) from rowreq_ctx->data
1020 */
1021 (*dot3StatsInternalMacReceiveErrors_val_ptr) =
1022 rowreq_ctx->data.dot3StatsInternalMacReceiveErrors;
1023
1024 return MFD_SUCCESS;
1025 } /* dot3StatsInternalMacReceiveErrors_get */
1026
1027 /*---------------------------------------------------------------------
1028 * EtherLike-MIB::dot3StatsEntry.dot3StatsEtherChipSet
1029 * dot3StatsEtherChipSet is subid 17 of dot3StatsEntry.
1030 * Its status is Deprecated, and its access level is ReadOnly.
1031 * OID: .1.3.6.1.2.1.10.7.2.1.17
1032 * Description:
1033 ******** THIS OBJECT IS DEPRECATED ********
1034
1035 This object contains an OBJECT IDENTIFIER
1036 which identifies the chipset used to
1037 realize the interface. Ethernet-like
1038 interfaces are typically built out of
1039 several different chips. The MIB implementor
1040 is presented with a decision of which chip
1041 to identify via this object. The implementor
1042 should identify the chip which is usually
1043 called the Medium Access Control chip.
1044 If no such chip is easily identifiable,
1045 the implementor should identify the chip
1046 which actually gathers the transmit
1047 and receive statistics and error
1048 indications. This would allow a
1049 manager station to correlate the
1050 statistics and the chip generating
1051 them, giving it the ability to take
1052 into account any known anomalies
1053 in the chip.
1054
1055 This object has been deprecated. Implementation
1056 feedback indicates that it is of limited use for
1057 debugging network problems in the field, and
1058 the administrative overhead involved in
1059 maintaining a registry of chipset OIDs is not
1060 justified.
1061 *
1062 * Attributes:
1063 * accessible 1 isscalar 0 enums 0 hasdefval 0
1064 * readable 1 iscolumn 1 ranges 0 hashint 0
1065 * settable 0
1066 *
1067 *
1068 * Its syntax is OBJECTID (based on perltype OBJECTID)
1069 * The net-snmp type is ASN_OBJECT_ID. The C type decl is oid (oid)
1070 * This data type requires a length.
1071 */
1072 /**
1073 * Extract the current value of the dot3StatsEtherChipSet data.
1074 *
1075 * Set a value using the data context for the row.
1076 *
1077 * @param rowreq_ctx
1078 * Pointer to the row request context.
1079 * @param dot3StatsEtherChipSet_val_ptr_ptr
1080 * Pointer to storage for a oid variable
1081 * @param dot3StatsEtherChipSet_val_ptr_len_ptr
1082 * Pointer to a size_t. On entry, it will contain the size (in bytes)
1083 * pointed to by dot3StatsEtherChipSet.
1084 * On exit, this value should contain the data size (in bytes).
1085 *
1086 * @retval MFD_SUCCESS : success
1087 * @retval MFD_SKIP : skip this node (no value for now)
1088 * @retval MFD_ERROR : Any other error
1089 *
1090 * @note If you need more than (*dot3StatsEtherChipSet_val_ptr_len_ptr) bytes of memory,
1091 * allocate it using malloc() and update dot3StatsEtherChipSet_val_ptr_ptr.
1092 * <b>DO NOT</b> free the previous pointer.
1093 * The MFD helper will release the memory you allocate.
1094 *
1095 * @remark If you call this function yourself, you are responsible
1096 * for checking if the pointer changed, and freeing any
1097 * previously allocated memory. (Not necessary if you pass
1098 * in a pointer to static memory, obviously.)
1099 */
1100 int
1101 dot3StatsEtherChipSet_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
1102 oid ** dot3StatsEtherChipSet_val_ptr_ptr,
1103 size_t *dot3StatsEtherChipSet_val_ptr_len_ptr)
1104 {
1105 /** we should have a non-NULL pointer and enough storage */
1106 netsnmp_assert((NULL != dot3StatsEtherChipSet_val_ptr_ptr)
1107 && (NULL != *dot3StatsEtherChipSet_val_ptr_ptr));
1108 netsnmp_assert(NULL != dot3StatsEtherChipSet_val_ptr_len_ptr);
1109
1110
1111 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsEtherChipSet_get",
1112 "called\n"));
1113
1114 netsnmp_assert(NULL != rowreq_ctx);
1115
1116 /*
1117 * TODO:231:o: |-> Extract the current value of the dot3StatsEtherChipSet data.
1118 * copy (* dot3StatsEtherChipSet_val_ptr_ptr ) data and (* dot3StatsEtherChipSet_val_ptr_len_ptr ) from rowreq_ctx->data
1119 */
1120 /*
1121 * make sure there is enough space for dot3StatsEtherChipSet data
1122 */
1123 if ((NULL == (*dot3StatsEtherChipSet_val_ptr_ptr)) ||
1124 ((*dot3StatsEtherChipSet_val_ptr_len_ptr) <
1125 (rowreq_ctx->data.dot3StatsEtherChipSet_len *
1126 sizeof(rowreq_ctx->data.dot3StatsEtherChipSet[0])))) {
1127 /*
1128 * allocate space for dot3StatsEtherChipSet data
1129 */
1130 (*dot3StatsEtherChipSet_val_ptr_ptr) =
1131 malloc(rowreq_ctx->data.dot3StatsEtherChipSet_len *
1132 sizeof(rowreq_ctx->data.dot3StatsEtherChipSet[0]));
1133 if (NULL == (*dot3StatsEtherChipSet_val_ptr_ptr)) {
1134 snmp_log(LOG_ERR, "could not allocate memory\n");
1135 return MFD_ERROR;
1136 }
1137 }
1138 (*dot3StatsEtherChipSet_val_ptr_len_ptr) =
1139 rowreq_ctx->data.dot3StatsEtherChipSet_len *
1140 sizeof(rowreq_ctx->data.dot3StatsEtherChipSet[0]);
1141 memcpy((*dot3StatsEtherChipSet_val_ptr_ptr),
1142 rowreq_ctx->data.dot3StatsEtherChipSet,
1143 rowreq_ctx->data.dot3StatsEtherChipSet_len *
1144 sizeof(rowreq_ctx->data.dot3StatsEtherChipSet[0]));
1145
1146 return MFD_SUCCESS;
1147 } /* dot3StatsEtherChipSet_get */
1148
1149 /*---------------------------------------------------------------------
1150 * EtherLike-MIB::dot3StatsEntry.dot3StatsSymbolErrors
1151 * dot3StatsSymbolErrors is subid 18 of dot3StatsEntry.
1152 * Its status is Current, and its access level is ReadOnly.
1153 * OID: .1.3.6.1.2.1.10.7.2.1.18
1154 * Description:
1155 For an interface operating at 100 Mb/s, the
1156 number of times there was an invalid data symbol
1157 when a valid carrier was present.
1158
1159 For an interface operating in half-duplex mode
1160 at 1000 Mb/s, the number of times the receiving
1161 media is non-idle (a carrier event) for a period
1162 of time equal to or greater than slotTime, and
1163 during which there was at least one occurrence
1164 of an event that causes the PHY to indicate
1165 'Data reception error' or 'carrier extend error'
1166 on the GMII.
1167
1168 For an interface operating in full-duplex mode
1169 at 1000 Mb/s, the number of times the receiving
1170 media is non-idle (a carrier event) for a period
1171 of time equal to or greater than minFrameSize,
1172 and during which there was at least one
1173 occurrence of an event that causes the PHY to
1174 indicate 'Data reception error' on the GMII.
1175
1176 For an interface operating at 10 Gb/s, the
1177 number of times the receiving media is non-idle
1178 (a carrier event) for a period of time equal to
1179 or greater than minFrameSize, and during which
1180 there was at least one occurrence of an event
1181 that causes the PHY to indicate 'Receive Error'
1182 on the XGMII.
1183
1184 The count represented by an instance of this
1185 object is incremented at most once per carrier
1186 event, even if multiple symbol errors occur
1187 during the carrier event. This count does
1188 not increment if a collision is present.
1189
1190 This counter does not increment when the
1191 interface is operating at 10 Mb/s.
1192
1193 For interfaces operating at 10 Gb/s, this
1194 counter can roll over in less than 5 minutes if
1195 it is incrementing at its maximum rate. Since
1196 that amount of time could be less than a
1197
1198 management station's poll cycle time, in order
1199 to avoid a loss of information, a management
1200 station is advised to poll the
1201 dot3HCStatsSymbolErrors object for 10 Gb/s
1202 or faster interfaces.
1203
1204 Discontinuities in the value of this counter can
1205 occur at re-initialization of the management
1206 system, and at other times as indicated by the
1207 value of ifCounterDiscontinuityTime.
1208 *
1209 * Attributes:
1210 * accessible 1 isscalar 0 enums 0 hasdefval 0
1211 * readable 1 iscolumn 1 ranges 0 hashint 0
1212 * settable 0
1213 *
1214 *
1215 * Its syntax is COUNTER (based on perltype COUNTER)
1216 * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long)
1217 */
1218 /**
1219 * Extract the current value of the dot3StatsSymbolErrors data.
1220 *
1221 * Set a value using the data context for the row.
1222 *
1223 * @param rowreq_ctx
1224 * Pointer to the row request context.
1225 * @param dot3StatsSymbolErrors_val_ptr
1226 * Pointer to storage for a u_long variable
1227 *
1228 * @retval MFD_SUCCESS : success
1229 * @retval MFD_SKIP : skip this node (no value for now)
1230 * @retval MFD_ERROR : Any other error
1231 */
1232 int
1233 dot3StatsSymbolErrors_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
1234 u_long * dot3StatsSymbolErrors_val_ptr)
1235 {
1236 /** we should have a non-NULL pointer */
1237 netsnmp_assert(NULL != dot3StatsSymbolErrors_val_ptr);
1238
1239
1240 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsSymbolErrors_get",
1241 "called\n"));
1242
1243 netsnmp_assert(NULL != rowreq_ctx);
1244
1245 /*
1246 * TODO:231:o: |-> Extract the current value of the dot3StatsSymbolErrors data.
1247 * copy (* dot3StatsSymbolErrors_val_ptr ) from rowreq_ctx->data
1248 */
1249 (*dot3StatsSymbolErrors_val_ptr) =
1250 rowreq_ctx->data.dot3StatsSymbolErrors;
1251
1252 return MFD_SUCCESS;
1253 } /* dot3StatsSymbolErrors_get */
1254
1255 /*---------------------------------------------------------------------
1256 * EtherLike-MIB::dot3StatsEntry.dot3StatsDuplexStatus
1257 * dot3StatsDuplexStatus is subid 19 of dot3StatsEntry.
1258 * Its status is Current, and its access level is ReadOnly.
1259 * OID: .1.3.6.1.2.1.10.7.2.1.19
1260 * Description:
1261 The current mode of operation of the MAC
1262 entity. 'unknown' indicates that the current
1263 duplex mode could not be determined.
1264
1265 Management control of the duplex mode is
1266 accomplished through the MAU MIB. When
1267 an interface does not support autonegotiation,
1268 or when autonegotiation is not enabled, the
1269 duplex mode is controlled using
1270 ifMauDefaultType. When autonegotiation is
1271 supported and enabled, duplex mode is controlled
1272 using ifMauAutoNegAdvertisedBits. In either
1273 case, the currently operating duplex mode is
1274 reflected both in this object and in ifMauType.
1275
1276 Note that this object provides redundant
1277 information with ifMauType. Normally, redundant
1278 objects are discouraged. However, in this
1279 instance, it allows a management application to
1280 determine the duplex status of an interface
1281 without having to know every possible value of
1282 ifMauType. This was felt to be sufficiently
1283 valuable to justify the redundancy.
1284 *
1285 * Attributes:
1286 * accessible 1 isscalar 0 enums 1 hasdefval 0
1287 * readable 1 iscolumn 1 ranges 0 hashint 0
1288 * settable 0
1289 *
1290 * Enum range: 3/8. Values: unknown(1), halfDuplex(2), fullDuplex(3)
1291 *
1292 * Its syntax is INTEGER (based on perltype INTEGER)
1293 * The net-snmp type is ASN_INTEGER. The C type decl is long (u_long)
1294 */
1295 /**
1296 * Extract the current value of the dot3StatsDuplexStatus data.
1297 *
1298 * Set a value using the data context for the row.
1299 *
1300 * @param rowreq_ctx
1301 * Pointer to the row request context.
1302 * @param dot3StatsDuplexStatus_val_ptr
1303 * Pointer to storage for a long variable
1304 *
1305 * @retval MFD_SUCCESS : success
1306 * @retval MFD_SKIP : skip this node (no value for now)
1307 * @retval MFD_ERROR : Any other error
1308 */
1309 int
1310 dot3StatsDuplexStatus_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
1311 u_long * dot3StatsDuplexStatus_val_ptr)
1312 {
1313 /** we should have a non-NULL pointer */
1314 netsnmp_assert(NULL != dot3StatsDuplexStatus_val_ptr);
1315
1316
1317 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsDuplexStatus_get",
1318 "called\n"));
1319
1320 netsnmp_assert(NULL != rowreq_ctx);
1321
1322 /*
1323 * TODO:231:o: |-> Extract the current value of the dot3StatsDuplexStatus data.
1324 * copy (* dot3StatsDuplexStatus_val_ptr ) from rowreq_ctx->data
1325 */
1326 (*dot3StatsDuplexStatus_val_ptr) =
1327 rowreq_ctx->data.dot3StatsDuplexStatus;
1328
1329 return MFD_SUCCESS;
1330 } /* dot3StatsDuplexStatus_get */
1331
1332 /*---------------------------------------------------------------------
1333 * EtherLike-MIB::dot3StatsEntry.dot3StatsRateControlAbility
1334 * dot3StatsRateControlAbility is subid 20 of dot3StatsEntry.
1335 * Its status is Current, and its access level is ReadOnly.
1336 * OID: .1.3.6.1.2.1.10.7.2.1.20
1337 * Description:
1338 'true' for interfaces operating at speeds above
1339 1000 Mb/s that support Rate Control through
1340 lowering the average data rate of the MAC
1341 sublayer, with frame granularity, and 'false'
1342 otherwise.
1343 *
1344 * Attributes:
1345 * accessible 1 isscalar 0 enums 1 hasdefval 0
1346 * readable 1 iscolumn 1 ranges 0 hashint 0
1347 * settable 0
1348 *
1349 * Enum range: 2/8. Values: true(1), false(2)
1350 *
1351 * Its syntax is TruthValue (based on perltype INTEGER)
1352 * The net-snmp type is ASN_INTEGER. The C type decl is long (u_long)
1353 */
1354 /**
1355 * Extract the current value of the dot3StatsRateControlAbility data.
1356 *
1357 * Set a value using the data context for the row.
1358 *
1359 * @param rowreq_ctx
1360 * Pointer to the row request context.
1361 * @param dot3StatsRateControlAbility_val_ptr
1362 * Pointer to storage for a long variable
1363 *
1364 * @retval MFD_SUCCESS : success
1365 * @retval MFD_SKIP : skip this node (no value for now)
1366 * @retval MFD_ERROR : Any other error
1367 */
1368 int
1369 dot3StatsRateControlAbility_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
1370 u_long *
1371 dot3StatsRateControlAbility_val_ptr)
1372 {
1373 /** we should have a non-NULL pointer */
1374 netsnmp_assert(NULL != dot3StatsRateControlAbility_val_ptr);
1375
1376
1377 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsRateControlAbility_get",
1378 "called\n"));
1379
1380 netsnmp_assert(NULL != rowreq_ctx);
1381
1382 /*
1383 * TODO:231:o: |-> Extract the current value of the dot3StatsRateControlAbility data.
1384 * copy (* dot3StatsRateControlAbility_val_ptr ) from rowreq_ctx->data
1385 */
1386 (*dot3StatsRateControlAbility_val_ptr) =
1387 rowreq_ctx->data.dot3StatsRateControlAbility;
1388
1389 return MFD_SUCCESS;
1390 } /* dot3StatsRateControlAbility_get */
1391
1392 /*---------------------------------------------------------------------
1393 * EtherLike-MIB::dot3StatsEntry.dot3StatsRateControlStatus
1394 * dot3StatsRateControlStatus is subid 21 of dot3StatsEntry.
1395 * Its status is Current, and its access level is ReadOnly.
1396 * OID: .1.3.6.1.2.1.10.7.2.1.21
1397 * Description:
1398 The current Rate Control mode of operation of
1399 the MAC sublayer of this interface.
1400 *
1401 * Attributes:
1402 * accessible 1 isscalar 0 enums 1 hasdefval 0
1403 * readable 1 iscolumn 1 ranges 0 hashint 0
1404 * settable 0
1405 *
1406 * Enum range: 3/8. Values: rateControlOff(1), rateControlOn(2), unknown(3)
1407 *
1408 * Its syntax is INTEGER (based on perltype INTEGER)
1409 * The net-snmp type is ASN_INTEGER. The C type decl is long (u_long)
1410 */
1411 /**
1412 * Extract the current value of the dot3StatsRateControlStatus data.
1413 *
1414 * Set a value using the data context for the row.
1415 *
1416 * @param rowreq_ctx
1417 * Pointer to the row request context.
1418 * @param dot3StatsRateControlStatus_val_ptr
1419 * Pointer to storage for a long variable
1420 *
1421 * @retval MFD_SUCCESS : success
1422 * @retval MFD_SKIP : skip this node (no value for now)
1423 * @retval MFD_ERROR : Any other error
1424 */
1425 int
1426 dot3StatsRateControlStatus_get(dot3StatsTable_rowreq_ctx * rowreq_ctx,
1427 u_long * dot3StatsRateControlStatus_val_ptr)
1428 {
1429 /** we should have a non-NULL pointer */
1430 netsnmp_assert(NULL != dot3StatsRateControlStatus_val_ptr);
1431
1432
1433 DEBUGMSGTL(("verbose:dot3StatsTable:dot3StatsRateControlStatus_get",
1434 "called\n"));
1435
1436 netsnmp_assert(NULL != rowreq_ctx);
1437
1438 /*
1439 * TODO:231:o: |-> Extract the current value of the dot3StatsRateControlStatus data.
1440 * copy (* dot3StatsRateControlStatus_val_ptr ) from rowreq_ctx->data
1441 */
1442 (*dot3StatsRateControlStatus_val_ptr) =
1443 rowreq_ctx->data.dot3StatsRateControlStatus;
1444
1445 return MFD_SUCCESS;
1446 } /* dot3StatsRateControlStatus_get */
1447
1448
1449
1450 /** @} */