snmpCounters
Lei Zhang
LeiZ____wytecinc.com
Thu Jun 29 23:31:28 CEST 2000
Frank,
I'm not sure if I'm reading the latest definitions for the SNMP
counters, but request.cpp: why is MibIIsnmpCounters::incInBadVersions()
enclosed inside the (#ifdef _SNMPv3, #endif)? Does this mean an agent that
only supports v1 and v2 does not count snmpInBadVersions? Are there any
other counters that Agent++ does not count?
Best regards,
Lei
-----Original Message-----
From: McWilliams, Gary [mailto:gmcwilliams____cccnetsys.com]
Sent: Tuesday, June 27, 2000 8:39 AM
To: agentpp-dl____fock.de
Subject: Bug fix ?
Frank,
I informed you of a bug in log.h some time ago. I have just checked the 3.4c
code and see that it has not been applied.
void set_filter(int logclass, unsigned char filter)
{ if (filter<16) logfilter[(logclass/16)-1] = filter; }
Needs to be changed to
void set_filter(int logclass, unsigned char filter)
//{ if (filter<16) logfilter[logclass] = filter; }
{
if ( filter < 16 )
{
int idx = (logclass / 16) - 1 ;
if ( idx >= 0 && idx < LOG_TYPES )
{
logfilter[idx] = filter ;
}
}
}
--
Gary McWilliams
Principal Engineer
CCC Network Systems Ltd, R&D facility Belfast
http://www.cccnetsys.com
More information about the AGENTPP
mailing list