David,
You stated:
"If you configure things correctly, none of these should ever be called"
Will you please help me out and explain what you mean by this statement?
It was a long time ago in which I updated code with Net-SNMP. I do not believe
I changed any of the Net-SNMP 5.4.1 specificcode at that time, but rather only
generated subagent code with the mib2c tool using the MFD config.. I then
placed the "master agentx" statement in the "snmpd.conf" file.
Based on the information you provided previously, it sounds like you might be
indicating:
1) I need to update base master agent code to stop the exit( ) routines from
executing
OR
2) I do not need to do anything since the exit( ) routines should not get
executed.
Thanks for any help you can lend.
--- On Thu, 6/11/09, Dave Shield <[email protected]> wrote:
From: Dave Shield <[email protected]>
Subject: Re: Removing "Exit()" routine calls
To: "Need Help" <[email protected]>
Cc: "net-snmp Coders" <[email protected]>
Date: Thursday, June 11, 2009, 12:44 AM
2009/6/10 Need Help <[email protected]>:
> However, I just noticed there are many calls to the "exit( )"
> routine used throughout the master agent code.
If you look more closely, these "exit()" routines only occur
in three files:
- auto_nlist.c
- kernel.c
- snmpd.c
The third of these is the wrapper structure for the Net-SNMP
standalone agent application. The code for the core of the
master agent is in the file 'snmp_agent.c' - which doesn't
call 'exit()' at all.
If you are embedding the master agent within another
application, you shouldn't be using the 'snmpd.c' code at all.
As for the other two files, all of the occurances of 'exit()' are
already protected by suitable tests - either the run-time boolean
flag NETSNMP_DS_AGENT_NO_ROOT_ACCESS, or the
compile-time definition NETSNMP_EXIT_ON_BAD_KLREAD
If you configure things correctly, none of these should ever be
called - regardless of whether the kernel information is accessible
or not.
Dave
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders