… | |
… | |
505 | | | SEQUENCE |
505 | | | SEQUENCE |
506 | | | | SEQUENCE |
506 | | | | SEQUENCE |
507 | | | | | OID oid 1.3.6.1.2.1.1.3.0 |
507 | | | | | OID oid 1.3.6.1.2.1.1.3.0 |
508 | | | | | TIMETICKS int 638085796 |
508 | | | | | TIMETICKS int 638085796 |
509 | |
509 | |
|
|
510 | =back |
|
|
511 | |
510 | =cut |
512 | =cut |
511 | |
513 | |
512 | # reverse enum, very slow and ugly hack |
514 | # reverse enum, very slow and ugly hack |
513 | sub _re { |
515 | sub _re { |
514 | my ($export_tag, $value) = @_; |
516 | my ($export_tag, $value) = @_; |
… | |
… | |
639 | |
641 | |
640 | Returns the BER type mapped to the given C<$class>/C<$tag> combination. |
642 | Returns the BER type mapped to the given C<$class>/C<$tag> combination. |
641 | |
643 | |
642 | =back |
644 | =back |
643 | |
645 | |
644 | =head2 BER TYPES |
646 | =head2 BER Types |
645 | |
647 | |
646 | This lists the predefined BER types - you can map any C<CLASS>/C<TAG> |
648 | This lists the predefined BER types. BER types are formatters used |
647 | combination to any C<BER_TYPE_*>. |
649 | internally to format and encode BER values. You can assign any C<BER_TYPE> |
|
|
650 | to any C<CLASS>/C<TAG> combination tgo change how that tag is decoded or |
|
|
651 | encoded. |
648 | |
652 | |
649 | =over |
653 | =over |
650 | |
654 | |
651 | =item C<BER_TYPE_BYTES> |
655 | =item C<BER_TYPE_BYTES> |
652 | |
656 | |
… | |
… | |
735 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_COUNTER64 , BER_TYPE_INT); |
739 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_COUNTER64 , BER_TYPE_INT); |
736 | |
740 | |
737 | =head2 LIMITATIONS/NOTES |
741 | =head2 LIMITATIONS/NOTES |
738 | |
742 | |
739 | This module can only en-/decode 64 bit signed and unsigned integers, and |
743 | This module can only en-/decode 64 bit signed and unsigned integers, and |
740 | only when your perl supports those. |
744 | only when your perl supports those. So no UUID OIDs for now. |
741 | |
745 | |
742 | This module does not generally care about ranges, i.e. it will happily |
746 | This module does not generally care about ranges, i.e. it will happily |
743 | de-/encode 64 bit integers into an C<ASN_INTEGER> value, or a negative |
747 | de-/encode 64 bit integers into an C<ASN_INTEGER> value, or a negative |
744 | number into an C<SNMP_COUNTER64>. |
748 | number into an C<SNMP_COUNTER64>. |
745 | |
749 | |