Dave Shield wrote:
> On 23/10/06, Thomas Anders <[EMAIL PROTECTED]> wrote:
>> Dave has promised to post a provisional patch shortly. Assumed it
>> works as
>> described, please vote whether this change should go into 5.4.
>
> See attached.
I don't think this patch is complete yet. Attached please find the
additional changes needed for Perl. Once the rename is agreed upon,
documentation will be adjusted, too, of course.
After all, I think it's a small and straightforward set of changes and
passes build testing for me, so it gets my vote.
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
Index: perl/OID/OID.xs
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/perl/OID/OID.xs,v
retrieving revision 1.24
diff -u -r1.24 OID.xs
--- perl/OID/OID.xs 1 Sep 2006 00:15:34 -0000 1.24
+++ perl/OID/OID.xs 24 Oct 2006 09:12:08 -0000
@@ -179,7 +179,7 @@
char *initstring
CODE:
if (get_tree_head() == NULL)
- init_mib();
+ netsnmp_init_mib();
RETVAL = SNMP_MALLOC_TYPEDEF(netsnmp_oid);
RETVAL->name = RETVAL->namebuf;
RETVAL->len = sizeof(RETVAL->namebuf)/sizeof(RETVAL->namebuf[0]);
Index: perl/SNMP/README
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/perl/SNMP/README,v
retrieving revision 5.12
diff -u -r5.12 README
--- perl/SNMP/README 9 Aug 2006 16:46:49 -0000 5.12
+++ perl/SNMP/README 24 Oct 2006 09:12:08 -0000
@@ -722,9 +722,9 @@
(Note: second arg not working since freeing previous
Mib is more involved than before).
- &SNMP::initMib() - calls library init_mib function if Mib not already
- loaded - does nothing if Mib already loaded. will
- parse directories and load modules according to
+ &SNMP::initMib() - calls library netsnmp_init_mib function if MIB not
+ already loaded - does nothing if MIB already loaded.
+ Will parse directories and load modules according to
environment variables described in Net-SNMP
documentations.
(see man mib_api, MIBDIRS, MIBS, MIBFILE(S), etc.)
Index: perl/SNMP/SNMP.xs
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/perl/SNMP/SNMP.xs,v
retrieving revision 5.68
diff -u -r5.68 SNMP.xs
--- perl/SNMP/SNMP.xs 18 Oct 2006 01:51:37 -0000 5.68
+++ perl/SNMP/SNMP.xs 24 Oct 2006 09:12:09 -0000
@@ -2976,7 +2976,7 @@
if ((mib_file == NULL) || (*mib_file == '\0')) {
if (get_tree_head() == NULL) {
if (verbose) warn("snmp_read_mib: initializing MIB\n");
- init_mib();
+ netsnmp_init_mib();
if (get_tree_head()) {
if (verbose) warn("done\n");
} else {
Index: perl/agent/agent.xs
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/perl/agent/agent.xs,v
retrieving revision 5.18
diff -u -r5.18 agent.xs
--- perl/agent/agent.xs 1 Sep 2006 12:41:42 -0000 5.18
+++ perl/agent/agent.xs 24 Oct 2006 09:12:09 -0000
@@ -448,6 +448,10 @@
void
init_mib()
+ CODE:
+ {
+ netsnmp_init_mib();
+ }
int
init_agent(name)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders