[AGENT++] Minimum footprint
michael.carr at bt.com
michael.carr at bt.com
Thu May 17 18:55:16 CEST 2007
All,
I've been looking through the code to see if there's any other way I can
reduce the footprint by excluding classes that I'm not using when v3 is
disabled and I noticed that perhaps a couple of #ifdef _SNMPv3's are
missing and could be added. The agentx_request.h and agentx_request.cpp
files contain the NoVacm class which could be a candidate for this.
Similarly the whole contents of the vacm.h and vacm.cpp files.
Worth including in the next release?
Mike
-----Original Message-----
From: agentpp-bounces at agentpp.org [mailto:agentpp-bounces at agentpp.org]
On Behalf Of Jochen Katz
Sent: Friday, May 11, 2007 10:24 PM
To: agentpp at agentpp.org
Subject: Re: [AGENT++] Minimum footprint
Hi,
> michael.carr at bt.com wrote:
>> Thanks Henning, any further thoughts on what the other flag(s) were?
>> There is one to disable SNMPv3 support - _NO_SNMPv3 - but I'd rather
>> try to keep that in if possible.
you can do the following (all from config_snmp_pp.h):
#define MAX_SNMP_PACKET 1500
Limit the packet size to a smaller value will reduce memory usage at
runtime. You have to check, what size you need.
//#define SNMP_PP_IPv6
Disable IPv6 code.
// #define _NO_SNMPv3
If you want to keep SNMPv3, try which crypto lib is smallest (libtom,
openssl or libdes)
// #define _USE_IDEA
Keep it disabled, as it is not a standard.
#define _NO_THREADS
Disable thread safety!
#define _NO_LOGGING
You saw it already.
//#define _IPX_ADDRESS
//#define _MAC_ADDRESS
Not needed.
//#define SNMP_BROADCAST
Will save about 20 bytes ;-)
Regards,
Jochen
_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://lists.agentpp.org/mailman/listinfo/agentpp
More information about the AGENTPP
mailing list