… | |
… | |
393 | use Exporter qw(import); |
393 | use Exporter qw(import); |
394 | |
394 | |
395 | our $VERSION; |
395 | our $VERSION; |
396 | |
396 | |
397 | BEGIN { |
397 | BEGIN { |
398 | $VERSION = 0.8; |
398 | $VERSION = 0.9; |
399 | XSLoader::load __PACKAGE__, $VERSION; |
399 | XSLoader::load __PACKAGE__, $VERSION; |
400 | } |
400 | } |
401 | |
401 | |
402 | our %EXPORT_TAGS = ( |
402 | our %EXPORT_TAGS = ( |
403 | const_index => [qw( |
403 | const_index => [qw( |
… | |
… | |
604 | |
604 | |
605 | $DEFAULT_PROFILE->_set_default; |
605 | $DEFAULT_PROFILE->_set_default; |
606 | |
606 | |
607 | # additional SNMP application types |
607 | # additional SNMP application types |
608 | our $SNMP_PROFILE = new Convert::BER::XS::Profile; |
608 | our $SNMP_PROFILE = new Convert::BER::XS::Profile; |
|
|
609 | |
609 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_IPADDRESS , BER_TYPE_IPADDRESS); |
610 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_IPADDRESS , BER_TYPE_IPADDRESS); |
610 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_COUNTER32 , BER_TYPE_INT); |
611 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_COUNTER32 , BER_TYPE_INT); |
611 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_UNSIGNED32, BER_TYPE_INT); |
612 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_UNSIGNED32, BER_TYPE_INT); |
612 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_TIMETICKS , BER_TYPE_INT); |
613 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_TIMETICKS , BER_TYPE_INT); |
613 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_OPAQUE , BER_TYPE_IPADDRESS); |
614 | $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_OPAQUE , BER_TYPE_IPADDRESS); |
… | |
… | |
633 | Constructed strings are decoded just fine, but there should be a way to |
634 | Constructed strings are decoded just fine, but there should be a way to |
634 | join them for convenience. |
635 | join them for convenience. |
635 | |
636 | |
636 | REAL values are not supported and will currently croak. |
637 | REAL values are not supported and will currently croak. |
637 | |
638 | |
|
|
639 | The encoder and decoder tend to accept more formats than should be |
|
|
640 | strictly supported. |
|
|
641 | |
638 | This module has undergone little to no testing so far. |
642 | This module has undergone little to no testing so far. |
639 | |
643 | |
640 | =head2 ITHREADS SUPPORT |
644 | =head2 ITHREADS SUPPORT |
641 | |
645 | |
642 | This module is unlikely to work when the (officially discouraged) ithreads |
646 | This module is unlikely to work when the (officially discouraged) ithreads |