pax_global_header00006660000000000000000000000064137356531460014527gustar00rootroot0000000000000052 comment=0deddedbac7275d9c642bbc34668486ed4166863 snmp-session-0deddedbac7275d9c642bbc34668486ed4166863/000077500000000000000000000000001373565314600212665ustar00rootroot00000000000000snmp-session-0deddedbac7275d9c642bbc34668486ed4166863/Artistic000066400000000000000000000207221373565314600227760ustar00rootroot00000000000000 Artistic License 2.0 Copyright (c) 2000-2006, The Perl Foundation. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software. You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement. Definitions "Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package. "Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures. "You" and "your" means any person who would like to copy, distribute, or modify the Package. "Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version. "Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization. "Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees. "Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder. "Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder. "Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future. "Source" form means the source code, documentation source, and configuration files for the Package. "Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form. Permission for Use and Modification Without Distribution (1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version. Permissions for Redistribution of the Standard Version (2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package. (3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License. Distribution of Modified Versions of the Package as Source (4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following: (a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version. (b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version. (c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under (i) the Original License or (ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed. Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source (5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license. (6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version. Aggregating or Linking the Package (7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation. (8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package. Items That are Not Considered Part of a Modified Version (9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license. General Provisions (10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license. (11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license. (12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder. (13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed. (14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. snmp-session-0deddedbac7275d9c642bbc34668486ed4166863/ChangeLog000066400000000000000000002137121373565314600230460ustar00rootroot000000000000002008-03-19 Simon Leinen * lib/SNMP_Session.pm: Improved initialization of the flags for non-blocking behavior in receive_response_3(). The __DIE__ and __WARN__ signal handlers should be bound to the defaults, because the caller might be binding those and get in our way. Also, we only want to compute the flags once, on initialization. 2007-12-22 Simon Leinen * lib/SNMP_util.pm, lib/SNMP_Session.pm, lib/BER.pm: Upgraded to Artistic License 2.0. Copyright notice updated for 2008. * Artistic: Upgraded to Artistic License 2.0, from http://svn.perl.org/viewcvs/parrot/trunk/LICENSE?view=markup&rev=19096 2007-11-01 Simon Leinen * lib/SNMP_util.pm: New MIB parsing code from Mike Mitchell. 2007-10-13 Simon Leinen * lib/SNMP_Session.pm ($VERSION): Upgraded to 1.11, to pick up change to SNMP_util.pm. * changes.html: Document loop detection fix in SNMP_util.pm. * faq.html, index.html: Updated my e-mail address. * README, README.SNMP_util, lib/SNMP_Session.pm, lib/SNMP_util.pm, changes.html: Changed Tobi Oetiker's mail address. * README, index.html: Changed MRTG URL. * lib/SNMP_util.pm: [All changes from Mike Mitchell] Global replace || => or, && => and, to avoid precedence errors. (snmpwalk_flg): Improved loop detection. 2007-10-13 Simon Leinen * lib/SNMP_Session.pm ($VERSION): Upgraded to 1.11, to pick up change to SNMP_util.pm. * README, README.SNMP_util, changes.html, lib/SNMP_Session.pm: Changed Tobi Oetiker's mail address. * lib/SNMP_util.pm: [All changes from Mike Mitchell] Changed Tobi Oetiker's mail address. Global replace || => or, && => and, to avoid precedence errors. (snmpwalk_flg): Improved loop detection. * README: Changed MRTG URL. 2007-05-18 Simon Leinen * README, changes.html, index.html: Updated copyright. * lib/SNMP_util.pm (Check_OID): Fix regexp for qualified OID case (Mike Mitchell). 2007-05-03 Simon Leinen * lib/SNMP_Session.pm: Added Mike Fischer as a contributor. ($VERSION): Incremented to 1.10. (receive_response_3): Added optional "dont_block" argument. If this is present and non-zero, pass MSG_DONTWAIT to the recv() call. MSG_DONTWAIT is wrapped in an eval, to avoid breaking the code on systems that don't have the flag. (request_response_5): Pass dont_block=1 to receive_response_3. According to Mike Fisher, Linux sometimes blocks on recv() even though a select() for readability has returned, for example when a checksum fails. 2007-05-03 Simon Leinen * lib/SNMP_Session.pm: Added Mike Fischer as a contributor. ($VERSION): Incremented to 1.10. (receive_response_3): Added optional "dont_block" argument. If this is present and non-zero, pass MSG_DONTWAIT to the recv() call. MSG_DONTWAIT is wrapped in an eval, to avoid breaking the code on systems that don't have the flag. (request_response_5): Pass dont_block=1 to receive_response_3. According to Mike Fisher, Linux sometimes blocks on recv() even though a select() for readability has returned, for example when a checksum fails. 2007-01-06 Simon Leinen * lib/BER.pm: Updated copyright notice. (pretty_print): Use PDU names according to RFC3416. 2006-12-21 Simon Leinen * test/cricket-genconf-sensor: Try to install newly generated configuration, where possible. * test/cricket-genconf-sensor: Added header comment. * test/cricket-genconf-sensor: New script. 2006-12-15 Simon Leinen * test/entls (router_pretty_name): New subroutine, greps RANCID configuration file for `hostname' command. Caches the result so that files are only opened once. (print_physical): Use new forms of per-router defaults. * test/entls: Changed so that `-t' generates a Cricket configuration file to measure all transceivers that support DOM (Digital Optical Monitoring). This involves some structural changes. (print_phys_tree): Implemented in terms of the new `print_phys_tree_1'. (print_phys_tree_1): Maintain a stack of parent nodes when traversing the node tree. This stack is stored in each node's `parent_stack' slot, and can be used by the node class' `tostring' method. * test/entls ($print_vendor_type, $print_ent_physical_index): New variables. (Entity::PhysicalEntry::tostring): Added optional printing of index and entPhysicalVendorType, controlled by the above variables. 2006-10-12 Simon Leinen * lib/SNMP_Session.pm, lib/BER.pm: Updated copyright string. 2006-08-06 Simon Leinen * faq.html: Updated SNMPv3 text, mentioning that SNMPv3 is supported by MRTG 2.13 and up, using Net::SNMP. * lib/SNMP_util.pm (snmpLoad_OID_Cache): Strip single or double quotes around the OID and value. This allows us to read SunNet Manager OID files, which are also distributed by e.g. Cisco (ftp://ftp.cisco.com/pub/mibs/oid). Idea by Jan van Keulen, code cleanup by Mike Mitchell. 2006-07-13 Simon Leinen * lib/SNMP_Session.pm ($VERSION): Incremented to 1.08. * lib/SNMP_Session.pm (BEGIN): Bind the __DIE__ signal handler, so that detection of IPv6 capability works even when someone else has bound that handler. (Patch from Tobi Oetiker.) 2006-04-09 Simon Leinen * lib/SNMP_Table.pm (snmp_row_to_object): Added. 2006-04-05 Simon Leinen * test/trap-listener: Added prettyfication of OIDs. Suppressed less-than-useful output such as the trap community or the source port. 2006-03-16 Simon Leinen * README: Update copyright notice for 2006. 2006-02-17 Simon Leinen * test/entls: New "entls" script. 2006-01-20 Simon Leinen * test/qosls: Slight improvements in output for readability. * README: Credit Jan van Keulen. * lib/SNMP_Session.pm ($VERSION): Incremented to 1.08. * lib/SNMP_util.pm: Some fixes from Mike Mitchell, notably in the area of OID translation. 2006-01-17 Simon Leinen * test/find-admin-up-oper-down.pl: Find interfaces that are admin up but oper down. 2006-01-15 Simon Leinen * index.html: Fixed $session -> $trap_session in trap receipt example. Thanks to rahul shah for noticing this. 2005-12-10 Simon Leinen * lib/SNMP_Session.pm (SNMPv2c_Session::map_table_start_end): Slight reindentation. * lib/SNMP_Session.pm (SNMPv2c_Session::map_table_start_end): Call `SNMP_Session::index_compare' rather than just `index_compare'. 2005-11-05 Simon Leinen * faq.html: Upgraded SNMP URI syntax reference from draft to RFC 4088. 2005-07-12 Simon Leinen * changes.html: Added missing `mailto:'. * index.html, changes.html: README.SNMP_util -> dist/ 2005-07-08 Simon Leinen * lib/SNMP_util.pm (snmpwalk_flg): Bug fix by Laurent Girod. 2005-04-24 Simon Leinen * lib/SNMP_Table.pm: Repository : :ext:diotima:/home/leinen/CVS Module : SNMP_Session/lib Working dir: ~/perl/SNMP_Session/lib/ In directory .: Up-To-Date 1.38 BER.pm Up-To-Date 1.145 SNMP_Session.pm Added SNMP_Table.pm Up-To-Date 1.51 SNMP_util.pm --------------------- End --------------------- -- last cmd: cvs -f status -v -- 2005-03-29 Simon Leinen * test/qosls: *** empty log message *** * test/if-counters.pl: New options: -B to avoid use of get-bulk. -C to avoid use of curses. * test/bgpls: *** empty log message *** 2005-01-21 Simon Leinen * faq.html: Updated. 2004-12-19 Simon Leinen * test/msdpls: Added `-n' option to suppress resolving IP addresses. (usage): Made more readable. * test/msdpls (usage): Explain options. * test/msdpls (usage): Added. 2004-12-07 Simon Leinen * lib/SNMP_Session.pm: Removed strange formatting. 2004-11-05 Simon Leinen * test/sorrento-nest-list (%short_types): Added a few new types. (@nestmasters): Beginning of update. 2004-10-29 Simon Leinen * lib/SNMP_Session.pm: Require BER.pm 1.05. ($VERSION): Incremented to 1.07. * lib/SNMP_Session.pm: context_flag -> context_flag() to fix error message from "use strict subs" with recent Perl versions. Acknowledged Gerry Dalton. * changes.html: Documented 1.06 (SNMPv2 inform parsing) and 1.07 (strict subs bug with newer Perl versions) changes to SNMP_Session.pm. * MANIFEST (META.yml): Added by MakeMaker. * README: Added Gerry Dalton. 2004-09-17 Simon Leinen * test/if-counters.pl: Added `-s' option to look at L3 switching statistics on a Catalyst 6500 and probably some other Cisco L3 switches. (out_switching_engine): New subroutine. 2004-09-15 Simon Leinen * test/msdpls: Added `-d' flag. Added debugging output. 2004-09-04 Simon Leinen * lib/SNMP_Session.pm: Mention Andrew Cornford-Matheson in the header comment. * lib/SNMP_Session.pm ($VERSION): 1.05 -> 1.06. (decode_trap_request): Understand inform requests, too. 2004-09-02 Simon Leinen * README, index.html: CMU SNMP -> Net-SNMP. * index.html (decode_trap_request): Mention that it supports SNMPv2 informs, too. * README (Contributors): Added Andrew Cornford-Matheson. (decode_trap_request): Mention that it supports SNMPv2 informs, too. * changes.html: Upgraded to 1.05. 2004-08-23 Simon Leinen * index.html: New distribution site http://www.switch.ch/misc/leinen/snmp/perl/dist/ Made pointers more absolute. 2004-07-15 Simon Leinen * lib/BER.pm ($VERSION): Upped to 1.05. (BEGIN): Register various pretty printers. (pretty_printer): Simplified because most types are handled by registered pretty printers now. * lib/SNMP_Session.pm ($VERSION): Upped to 1.05. * changes.html: Document 1.04 change (in SNMP_util.pm). * ChangeLog: Updated using C-x v a. * index.html: Updated copyright years. * lib/SNMP_util.pm, lib/SNMP_Session.pm ($VERSION): Upped to 1.04. * lib/SNMP_util.pm (snmpget, snmpgetnext, snmpset): Use wantarray() to determine whether to return an array or just the first value. 2004-07-15 Simon Leinen * lib/SNMP_util.pm, lib/SNMP_Session.pm ($VERSION): Upped to 1.04. * lib/SNMP_util.pm (snmpget, snmpgetnext, snmpset): Use wantarray() to determine whether to return an array or just the first value. 2004-06-22 Simon Leinen * README: Updated copyright years. 2004-03-22 Simon Leinen * lib/SNMP_util.pm: Require recent versions of BER.pm and SNMP_Session.pm. ($VERSION): Incremented to 1.03. * lib/SNMP_Session.pm ($VERSION): Incremented to 1.03. * changes.html (SNMP_util.pm): Documented 1.03 fix. * lib/SNMP_util.pm (snmpwalk_flg): Added missing line from Mike Mitchell's patch. 2004-03-21 Simon Leinen * lib/SNMP_Session.pm ($VERSION): Incremented to 1.02. * changes.html: Document BER.pm 1.01 and 1.02. * lib/SNMP_Session.pm: Require BER.pm 1.01, because previous versions lack support for a variant of integer encoding. ($VERSION): Incremented to 1.01. 2004-02-17 Simon Leinen * BER-1.01-Mike-Mitchell.diff, BER-1.01-02.diff: Applied. * lib/SNMP_util.pm (snmpwalkhash, snmpwalk_flg): Implemented the new hash-reference argument. * changes.html: Documented BER.pm and SNMP_util.pm news in 1.02. * test/ber-test.pl: Use strict. Added function prototypes. * lib/BER.pm (%pretty_printer): New variable. This is a hash of pretty-printers per BER type code. It is manipulated by register_pretty_printer() and unregister_pretty_printer(), and used by pretty_print(). (register_pretty_printer, unregister_pretty_printer): New subroutines, contributed by Mike Mitchell. (pretty_print): If a pretty-printer has been registered for the type code, call it. (encode_intlike): In the Math::BigInt case, copy the integer before taking its bmod(), because bmod() is destructive. * README.SNMP_util: Document additional optional `hash ref' argument to snmpwalkhash(). 2004-02-08 Simon Leinen * lib/BER.pm (decode_intlike_s): Use decode_length(). (decode_length): Accept an optional second argument, specifying the offset into the first argument at which to begin parsing. This eliminates a substr() operation for every object. The callers have been adapted accordingly. * README: Added Milen Pavlov. 2003-12-14 Simon Leinen * lib/SNMP_Session.pm ($VERSION): 0.99 -> 1.00. * changes.html: 0.100 -> 1.00. * test/iftop: Added support for 64-bit counters. * lib/SNMP_Session.pm ($default_use_16bit_request_ids): New variable. (encode_request_3): Obey `use_16bit_request_ids' in request ID generation. * changes.html: Added note on `use_16bit_request_ids'. * README: Added Luc Pauwels as a contributor. 2003-12-04 Simon Leinen * index.html: Added new "Served Individual Item Link" to the "Essential SNMP" book on Amazon, but commented it out because it breaks the formatting. Removed the "NEW" icon from the existing Essential SNMP pointer. 2003-11-26 Simon Leinen * test/iftop: Adding iftop * test/README (iftop): Added URL. * test/README, MANIFEST: Added Dave Plonka's `iftop'. 2003-11-09 Simon Leinen * changes.html: Document Mike Mitchell's snmpset support for all known types. * lib/SNMP_util.pm (snmpset): Encode all known types. 2003-11-07 Simon Leinen * changes.html: Mentioned Christopher J. Tengi. * README, lib/SNMP_util.pm: Added Christopher J. Tengi to contributors list. * changes.html: Document 0.99 changes. * lib/SNMP_util.pm ($VERSION): Incremented to 0.99. * lib/SNMP_util.pm (snmpset): Support Gauge32 values. 2003-10-20 Simon Leinen * lib/SNMP_Session.pm ($VERSION): Incremented to 0.99. * lib/SNMP_Session.pm (SNMPv1_Session::open): Simplify initial request_id generation. * lib/SNMP_Session.pm (encode_request_3): Handle avoid_negative_request_ids in a saner way. Thanks to Mike Mitchell. 2003-09-26 Simon Leinen * test/trap-send: Added forward declarations. Thanks to Bret Allibone for pointing out the problem. 2003-09-09 Simon Leinen * changes.html: Documented 0.98 changes. * lib/SNMP_Session.pm ($VERSION): Incremented to 0.98. * lib/SNMP_Session.pm: Require BER version 0.95. Fixed a portability issue in the IPv6 code. * lib/SNMP_util.pm: Require BER version 0.95. 2003-09-08 Simon Leinen * lib/SNMP_util.pm: Changes from Mike Mitchell: Depend on SNMP_Session.pm 0.97. Fix parsing of OIDs with multiple quoted strings. ($VERSION): Incremented to 0.98. 2003-09-02 Simon Leinen * lib/SNMP_Session.pm: Undid most of the last change. * lib/SNMP_Session.pm: Removed ``use strict "subs"'' in a few places. * README: Added Joerg Kummer to credits. * lib/SNMP_util.pm ($VERSION): Increased to 0.97. (snmpset): Added TimeTicks support, courtesy Joerg Kummer. * changes.html: TimeTicks support in snmpset. * changes.html: Added IPv6; $default_avoid_negative_request_ids notes. * contrib/SNMP_util.pm, test/util-trap.pl, test/v6-list-prefixes, test/vc-counters.pl, test/verio-problem.pl: Initial import of the essential parts of SNMP_Session * contrib/SNMP_util.pm, test/util-trap.pl, test/v6-list-prefixes, test/vc-counters.pl, test/verio-problem.pl: New file. * faq.html, p2.htm, security.html, test/atol-test.c, test/bad-trap.pl, test/bay-atm-test.pl, test/bgp-check-routes, test/bulkwalkbug.pl, test/cammer, test/capturetest.pl, test/counter64-test.pl, test/d.pl, test/digital-bug, test/fore-test.pl, test/inexist.pl, test/list-bgp4-table, test/mcount.pl, test/mdebug, test/negative-counter.pl, test/sequence-bug.pl, test/set-test.pl, test/shipmr, test/snmptrap.note, test/snmptrap.pl: Initial import of the essential parts of SNMP_Session * faq.html, p2.htm, security.html, test/atol-test.c, test/bad-trap.pl, test/bay-atm-test.pl, test/bgp-check-routes, test/bulkwalkbug.pl, test/cammer, test/capturetest.pl, test/counter64-test.pl, test/d.pl, test/digital-bug, test/fore-test.pl, test/inexist.pl, test/list-bgp4-table, test/mcount.pl, test/mdebug, test/negative-counter.pl, test/sequence-bug.pl, test/set-test.pl, test/shipmr, test/snmptrap.note, test/snmptrap.pl: New file. 2003-06-30 Simon Leinen * README: Updated Philippe Simonet's e-mail. Added Valerio Bontempi and Lorenzo Colitti. * lib/SNMP_Session.pm ($SNMP_Session::default_avoid_negative_request_ids): Exported. 2003-06-04 Simon Leinen * lib/SNMP_Session.pm: Changes from Lorenzo Colitti: Avoid eval() in some places to make code more robust. 2003-05-29 Simon Leinen * test/wwwtest: Also use CGI.pm to generate HTML. * test/wwwtest (snmp_get, write_query_form): Use CGI.pm methods. * test/wwwtest: Use CGI.pm for query parsing. Open SNMPv2c_Session. (parse_query): Deleted. ($ipv4_only_p): New variable. * test/test.pl: Parse option arguments: `-4', `-v (1|2)'. * test/test.pl: Add subroutine prototypes; use strict. Use additional arguments to SNMP_Session->open to activate IPv6 code. * lib/SNMP_Session.pm (SNMPv1_Session::open): Create an IO::Socket::INET object, rather than an IO::Socket::INET6 object, whenever sockfamily is AF_INET. (SNMPv2c_Session::open): Avoid trying to bless() an undefined object, to improve error diagnostics. * test/wwwtest: Added subroutine prototypes. ($community_file_name): New variable. (write_query_form): Compute